mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-08 19:57:30 +08:00
feat(frontend): migrate BaseInput to IconPark
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="base-input">
|
||||
<i v-if="icon" :class="['base-input-icon', icon]" />
|
||||
<component v-if="icon" :is="icon" class="base-input-icon" size="14" />
|
||||
|
||||
<!-- 普通输入框 -->
|
||||
<input
|
||||
@@ -29,7 +29,7 @@ export default {
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
modelValue: { type: [String, Number], default: '' },
|
||||
icon: { type: String, default: '' },
|
||||
icon: { type: [String, Object], default: '' },
|
||||
type: { type: String, default: 'text' },
|
||||
textarea: { type: Boolean, default: false },
|
||||
},
|
||||
@@ -66,7 +66,6 @@ export default {
|
||||
|
||||
.base-input-icon {
|
||||
opacity: 0.5;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.base-input-text {
|
||||
|
||||
Reference in New Issue
Block a user