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