Skip to content

CheckBox-DEMO ​


vue
<fv-checkBox>Indeterminate checkbox</fv-checkBox>

CheckBox-Disabled ​


vue
<fv-checkBox disabled>Disabled checkbox</fv-checkBox>

CheckBox-Disabled ​


vue
<fv-checkBox boxSide="end">Checkbox rendered with boxSide "end"</fv-checkBox>

CheckBox-Custom ​


  1. Set border width.
vue
<fv-checkBox v-model="value" :borderWidth="2">Checkbox rendered with borderWidth "2"</fv-checkBox>
  1. Set background and border color.
vue
<fv-checkBox v-model="value" borderColor="rgba(0,204,153,1)" foreground="rgba(0,204,153,1)" background="rgba(0,204,153,1)">Checkbox</fv-checkBox>

属性 ​


属性类型必填默认值说明
modelValuestring否''Checkbox value
foregroundstring否''Checkbox foreground
borderColorstring否''Checkbox borderColor
backgroundstring否'rgba(0, 90, 158, 1)'Checkbox background
boxSidestring否'start'CheckBox text font weight
disabledboolean否falseDisabled checkbox
borderWidthnumber否1.5Checkbox border width
themestring否'global'主题样式。支持 global、light、dark、system 和 custom。
langstring否"global"参见组件的 lang 选项。

事件 ​


事件名参数说明
clickvalueCheckbox onclick

MIT Licensed