mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
16 lines
394 B
Markdown
16 lines
394 B
Markdown
# 开关 Switch
|
||
我有一个 Switch,不过没时间玩。每每这个时候,我都会回忆起童年玩 NDS 的快乐时光。
|
||
## 演示
|
||
```demo
|
||
basic
|
||
event
|
||
```
|
||
|
||
## Props
|
||
|名称|类型|默认值|说明|
|
||
|-|-|-|-|
|
||
|disabled|`boolean`|`false`||
|
||
|modelValue|`boolean`|`false`||
|
||
|theme|`'light' \| 'dark' \| null \| string`|`null`||
|
||
|onUpdate:modelValue|`(value: boolean) => any`|`() => {}`||
|