fix(Checkbox): activeStyle boxShadow error (#1829)

This commit is contained in:
xiejiahe
2021-04-14 15:49:00 +08:00
committed by GitHub
parent 2647dfe296
commit f3bf10cffa

View File

@@ -88,11 +88,12 @@ export default defineComponent({
const { checkboxGroup } = useCheckboxGroup()
const activeStyle = computed(() => {
const fillValue = checkboxGroup?.fill?.value ?? ''
return {
backgroundColor: checkboxGroup?.fill?.value ?? '',
borderColor: checkboxGroup?.fill?.value ?? '',
backgroundColor: fillValue,
borderColor: fillValue,
color: checkboxGroup?.textColor?.value ?? '',
boxShadow: '-1px 0 0 0 ' + checkboxGroup?.fill?.value ?? '',
boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : null,
}
})