Skip to content
Looseleaf Uni
Search
⌘
Ctrl
K
Main Navigation
开始使用
组件
迁移进度
Appearance
Menu
Return to top
On this page
Switch 开关
使用端侧开关承载布尔状态和原生表单语义。
vue
<
ll-switch
v-model
=
"
enabled
"
aria-label
=
"启用提醒"
/>
嵌入 H5 示例
单独打开示例 ↗
Attributes
参数
说明
类型
可选值
默认值
model-value
开关状态
boolean
必填
—
disabled
禁止切换
boolean
—
false
name
原生表单字段名
string
—
—
aria-label
可读名称
string
—
—
Events
事件名称
说明
update:modelValue
原生开关变化后回写布尔值