From ee1c91bfa0e7810d812c9761339782d477dfe642 Mon Sep 17 00:00:00 2001 From: chenjiajian <770230504@qq.com> Date: Sat, 18 Mar 2023 13:14:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0input=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/input.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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