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>

Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
valueBooleanNo[empty]Checkbox value
foregroundStringNoN/ACheckbox foreground
borderColorStringNoN/ACheckbox borderColor
backgroundStringNoN/ACheckbox background
boxSide['start', 'end']NostartCheckBox text font weight
disabledBooleanNofalseDisabled checkbox
borderWidthNumberNo1Checkbox border width
themeStringNosystem主题样式, 包含light, dark, system, custom几种样式

Events


事件名(Name)参数类型(args)说明(statement)
clickvalueCheckbox onclick

MIT Licensed