style(checkbox): optimize code

This commit is contained in:
zouhang 2020-09-04 10:15:53 +08:00 committed by jeremywu
parent cdaa5199e2
commit 21382d2ee0

View File

@ -89,10 +89,10 @@ export default defineComponent({
const activeStyle = computed(() => {
return {
backgroundColor: checkboxGroup.fill?.value || '',
borderColor: checkboxGroup.fill?.value || '',
color: checkboxGroup.textColor?.value || '',
boxShadow: '-1px 0 0 0 ' + checkboxGroup.fill?.value,
backgroundColor: checkboxGroup?.fill?.value ?? '',
borderColor: checkboxGroup?.fill?.value ?? '',
color: checkboxGroup?.textColor?.value ?? '',
boxShadow: '-1px 0 0 0 ' + checkboxGroup?.fill?.value ?? '',
}
})