passwd组件补充change事件
parent
c297a98773
commit
aeeef6be27
|
@ -213,6 +213,10 @@ class Passwd extends Component {
|
||||||
this.value = ev.target.value
|
this.value = ev.target.value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleChange() {
|
||||||
|
this.$emit('change')
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return html`
|
return html`
|
||||||
<div class="label">
|
<div class="label">
|
||||||
|
@ -221,6 +225,7 @@ class Passwd extends Component {
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
ref="input"
|
ref="input"
|
||||||
@input=${this.handleInput}
|
@input=${this.handleInput}
|
||||||
|
@change=${this.handleChange}
|
||||||
:readOnly=${this.readOnly}
|
:readOnly=${this.readOnly}
|
||||||
:disabled=${this.disabled}
|
:disabled=${this.disabled}
|
||||||
:type=${this._type}
|
:type=${this._type}
|
||||||
|
|
Loading…
Reference in New Issue