更新input组件
parent
9cdfd3d952
commit
ee1c91bfa0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue