From 21cb347354af8505ab47f78a1794ccef37047c53 Mon Sep 17 00:00:00 2001 From: chenjiajian <770230504@qq.com> Date: Tue, 21 Mar 2023 17:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E7=BB=84=E4=BB=B6=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/input.js | 2 +- src/form/number.js | 2 +- src/form/textarea.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/form/input.js b/src/form/input.js index 416361e..37de94c 100644 --- a/src/form/input.js +++ b/src/form/input.js @@ -385,4 +385,4 @@ class Input extends Component { } } -customElements.define('wc-input', Input) +Input.reg('input') diff --git a/src/form/number.js b/src/form/number.js index 7efacf0..cc731dd 100644 --- a/src/form/number.js +++ b/src/form/number.js @@ -327,4 +327,4 @@ class WcNumber extends Component { } } -customElements.define('wc-number', WcNumber) +WcNumber.reg('number') diff --git a/src/form/textarea.js b/src/form/textarea.js index 27ada78..538f9f7 100644 --- a/src/form/textarea.js +++ b/src/form/textarea.js @@ -217,4 +217,4 @@ class TextArea extends Component { } } -customElements.define('wc-textarea', TextArea) +TextArea.reg('textarea')