Skip to content

Checkbox 多选组 ​

基于 Element Plus el-checkbox-group 封装,支持 options 驱动渲染、远程数据源和禁用状态。

基础用法 ​

基础 / 禁用状态

基础 options

值: ["sing","code"]

禁用状态

值: ["sing"]

远程数据 ​

传入 remote 配置自动请求远端接口获取 options。

静态 / 远程请求

API ​

Props ​

参数说明类型默认值
v-model绑定值(数组)string[][]
options静态选项列表(优先级高于 remote)OptionItem[]-
remote远程数据获取配置RemoteConfig-
disabled是否禁用booleanfalse

OptionItem ​

ts
interface OptionItem {
  label: string
  value: string | number
  disabled?: boolean
}

Released under the MIT License.