index.js 393 B

1234567891011121314151617181920212223
  1. import { use } from '../utils';
  2. var _use = use('checkbox-group'),
  3. sfc = _use[0],
  4. bem = _use[1];
  5. export default sfc({
  6. props: {
  7. max: Number,
  8. value: Array,
  9. disabled: Boolean
  10. },
  11. watch: {
  12. value: function value(val) {
  13. this.$emit('change', val);
  14. }
  15. },
  16. render: function render(h) {
  17. return h("div", {
  18. "class": bem()
  19. }, [this.slots()]);
  20. }
  21. });