Skip to content

Update switch.md #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/component/switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
**属性说明**

|属性名|类型|默认值|说明|平台差异说明|
|:-|:-|:-|:-|:-|:-|
|:-|:-|:-|:-|:-|
|checked|Boolean|false|是否选中||
|disabled|Boolean|false|是否禁用|抖音小程序与飞书小程序不支持|
|type|String|switch|样式,有效值:switch, checkbox||
|color|Color||switch 的颜色,同 css 的 color| |
|@change|EventHandle||checked 改变时触发 change 事件,event.detail={ value:checked}||
|color|Color|switch 的颜色,同 css 的 color|||
|@change|EventHandle|checked 改变时触发 change 事件,event.detail={ value:checked}|||

<!-- UNIAPPCOMJSON.swiper.attribute -->

Expand Down