继承
FieldBase
用法
<div class="fitem">
<Label for="s1">接收邮件:</Label>
<SwitchButton inputId="s1" v-model="received"></SwitchButton>
</div>
<div class="fitem">
<Label for="s2">分享网络:</Label>
<SwitchButton inputId="s2" v-model="shared"></SwitchButton>
</div>
<div class="fitem">
<Label for="s3">订阅:</Label>
<SwitchButton inputId="s3" v-model="subscribed"></SwitchButton>
</div>
属性
名称 | 类型 | 描述 | 默认 |
---|---|---|---|
value | boolean | 绑定到按钮的值。 | null |
onText | string | 按钮状态为on时的文本值。 | ON |
offText | string | 按钮关闭状态时的文本值。 | OFF |
handleText | string | 中心句柄的文本值。 | null |
disabled | boolean | 定义是否为禁用按钮。 | false |
readonly | boolean | 定义按钮是否只读。 | false |
inputId | string | 输入框的id属性值。 | null |