2.0.3 • Published 6 years ago

ux-checkbox-zhangjunqiu v2.0.3

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
6 years ago

API

interface IProps {
  options: Array<IOption>;
  value: Array<string>; // 选中的复选框的value的数组
  disableValue?: Array<string>; // 禁用的复选框的value的数组
  onChange: (value: Array<string>, disableValue: Array<string>) => void;
  style?: object; // 每个复选框的样式,默认为横排,间距xx,字体xx,字号xx
  showAllCheck?: boolean; // 是否显示全选,默认为false
}
interface IOption {
  label: string;
  value: string;
}