Blame view

src/components/Generator/render/slots/el-radio-group.js 494 Bytes
5330d757   monkeyhouyi   公司信息管理完成
1
2
3
4
5
6
7
8
9
10
11
12
13
  export default {
    options(h, conf, key) {
      const list = []
      conf.__slot__.options.forEach(item => {
        if (conf.__config__.optionType === 'button') {
          list.push(<el-radio-button label={item[conf.__config__.props.value]}>{item[conf.__config__.props.label]}</el-radio-button>)
        } else {
          list.push(<el-radio label={item[conf.__config__.props.value]} border={conf.__config__.border}>{item[conf.__config__.props.label]}</el-radio>)
        }
      })
      return list
    }
  }