Files
xjsaas-ui/src/components/render/slots/el-checkbox-group.js
T

14 lines
403 B
JavaScript
Raw Normal View History

2024-09-05 15:44:36 +08:00
export default {
options(h, conf, key) {
const list = []
conf.__slot__.options.forEach(item => {
if (conf.__config__.optionType === 'button') {
list.push(<el-checkbox-button label={item.value}>{item.label}</el-checkbox-button>)
} else {
list.push(<el-checkbox label={item.value} border={conf.border}>{item.label}</el-checkbox>)
}
})
return list
}
}