更新input组件

master
chenjiajian 2023-03-18 13:14:42 +08:00
parent 9cdfd3d952
commit ee1c91bfa0
1 changed files with 2 additions and 6 deletions

View File

@ -20,12 +20,7 @@ class Input extends Component {
value: { value: {
type: String, type: String,
default: '', default: '',
attribute: false, attribute: false
observer(val) {
if (this.$refs) {
this.$refs.input.value = val
}
}
}, },
lazy: 0 // 并发拦截时间, 单位毫秒 lazy: 0 // 并发拦截时间, 单位毫秒
} }
@ -365,6 +360,7 @@ class Input extends Component {
disabled=${this.disabled} disabled=${this.disabled}
readonly=${this.readOnly} readonly=${this.readOnly}
autofocus=${this.autofocus} autofocus=${this.autofocus}
:value=${this.value}
/> />
${this.closeable && this.value ? this.renderClose() : ''} ${this.closeable && this.value ? this.renderClose() : ''}
${this.icon ${this.icon