passwd组件补充change事件

master
yutent 2023-03-21 16:03:59 +08:00
parent c297a98773
commit aeeef6be27
2 changed files with 5 additions and 0 deletions

View File

@ -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}

0
src/form/radio.js Normal file
View File