更换组件注册方式

master
chenjiajian 2023-03-21 17:06:31 +08:00
parent ddc6fb0ca4
commit 21cb347354
3 changed files with 3 additions and 3 deletions

View File

@ -385,4 +385,4 @@ class Input extends Component {
} }
} }
customElements.define('wc-input', Input) Input.reg('input')

View File

@ -327,4 +327,4 @@ class WcNumber extends Component {
} }
} }
customElements.define('wc-number', WcNumber) WcNumber.reg('number')

View File

@ -217,4 +217,4 @@ class TextArea extends Component {
} }
} }
customElements.define('wc-textarea', TextArea) TextArea.reg('textarea')