Files
his/openhis-ui/src/components/render/slots/el-checkbox-group.js
guorui dad6d41cbc 1
2025-02-19 10:29:04 +08:00

14 lines
403 B
JavaScript

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