mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(Checkbox): activeStyle boxShadow error (#1829)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user