14 changed files with 1293 additions and 1126 deletions
@ -1,13 +1,21 @@ |
|||
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 |
|||
} |
|||
options(h, conf, key, that) { |
|||
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 { |
|||
if (item.value == 0) { |
|||
list.push(<el-checkbox label={item.value} |
|||
border={conf.border}>{item.label} |
|||
<input class='item-other-input' onChange={event => { |
|||
that.$emit('selectOtherChange', event.target.value, conf) |
|||
}}/></el-checkbox>) |
|||
} else { |
|||
list.push(<el-checkbox label={item.value} border={conf.border}>{item.label}</el-checkbox>) |
|||
} |
|||
} |
|||
}) |
|||
return list |
|||
} |
|||
} |
|||
|
|||
@ -1,13 +1,21 @@ |
|||
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.value}>{item.label}</el-radio-button>) |
|||
} else { |
|||
list.push(<el-radio label={item.value} border={conf.border}>{item.label}</el-radio>) |
|||
} |
|||
}) |
|||
return list |
|||
} |
|||
options(h, conf, key, that) { |
|||
const list = [] |
|||
conf.__slot__.options.forEach(item => { |
|||
if (conf.__config__.optionType === 'button') { |
|||
list.push(<el-radio-button label={item.value}>{item.label}</el-radio-button>) |
|||
} else { |
|||
if (item.value == 0) { |
|||
list.push(<el-radio label={item.value} border={conf.border} > |
|||
{item.label}<input class='item-other-input' onChange={event => { |
|||
that.$emit('selectOtherChange', event.target.value,conf) |
|||
}}/> |
|||
</el-radio>) |
|||
} else { |
|||
list.push(<el-radio label={item.value} border={conf.border}>{item.label}</el-radio>) |
|||
} |
|||
} |
|||
}) |
|||
return list |
|||
} |
|||
} |
|||
|
|||
File diff suppressed because it is too large
Loading…
Reference in new issue