From aeeef6be27cdf00aef589a4cc82baf4c7216b98f Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 21 Mar 2023 16:03:59 +0800 Subject: [PATCH] =?UTF-8?q?passwd=E7=BB=84=E4=BB=B6=E8=A1=A5=E5=85=85chang?= =?UTF-8?q?e=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/passwd.js | 5 +++++ src/form/radio.js | 0 2 files changed, 5 insertions(+) create mode 100644 src/form/radio.js diff --git a/src/form/passwd.js b/src/form/passwd.js index 4156317..508d365 100644 --- a/src/form/passwd.js +++ b/src/form/passwd.js @@ -213,6 +213,10 @@ class Passwd extends Component { this.value = ev.target.value } + handleChange() { + this.$emit('change') + } + render() { return html`
@@ -221,6 +225,7 @@ class Passwd extends Component { spellcheck="false" ref="input" @input=${this.handleInput} + @change=${this.handleChange} :readOnly=${this.readOnly} :disabled=${this.disabled} :type=${this._type} diff --git a/src/form/radio.js b/src/form/radio.js new file mode 100644 index 0000000..e69de29