0.0.1-alpha.2 • Published 3 years ago
@belleui/belle-switch v0.0.1-alpha.2
@belleui/belle-switch
Preview
Install
npm install @belleui/belle-switch
Useage
<belle-switch>Switch</belle-switch>
<belle-switch disabled>Disabled</belle-switch>
<belle-switch checked>Checked</belle-switch>
Properties
Property | Attribute | Type | Default | Description |
---|---|---|---|---|
checked | checked | boolean | false | 默认是否选中 |
disabled | disabled | boolean | false | 是否禁用 |
Methods
Method | Type |
---|---|
handleChange | (): void |
Events
Event | Type |
---|---|
change | CustomEvent<{ checked: boolean; }> |