el-checkbox-group.js 403 B

1234567891011121314
  1. export default {
  2. options(h, conf, key) {
  3. const list = []
  4. conf.__slot__.options.forEach(item => {
  5. if (conf.__config__.optionType === 'button') {
  6. list.push(<el-checkbox-button label={item.value}>{item.label}</el-checkbox-button>)
  7. } else {
  8. list.push(<el-checkbox label={item.value} border={conf.border}>{item.label}</el-checkbox>)
  9. }
  10. })
  11. return list
  12. }
  13. }