ux-checkbox-zhangjunqiu

``` interface IProps { options: Array<IOption>; value: Array<string>; // 选中的复选框的value的数组 disableValue?: Array<string>; // 禁用的复选框的value的数组 onChange: (value: Array<string>, disableValue: Array<string>) => void; style?: object; // 每个复选框的样式,默认为横排,间距

Usage no npm install needed!

<script type="module">
  import uxCheckboxZhangjunqiu from 'https://cdn.skypack.dev/ux-checkbox-zhangjunqiu';
</script>

README

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;
}