fix: checkbox checked color

This commit is contained in:
就眠儀式
2022-03-17 14:29:50 +08:00
parent 8d766be166
commit da1e07a9be
3 changed files with 14 additions and 1 deletions

View File

@@ -95,12 +95,21 @@
color: @global-checked-color;
}
.layui-form-checked span,
.layui-form-checked:hover span {
background-color: @global-checked-color;
}
.layui-form-checked[lay-skin="primary"] i {
border-color: @global-checked-color !important;
background-color: @global-checked-color;
color: #fff;
}
.layui-form-checked[lay-skin="primary"] span {
background: 0 0 !important;
}
.layui-checkbox-disabled[lay-skin="primary"] span {
background: 0 0 !important;
color: @global-neutral-color-8 !important;

View File

@@ -47,7 +47,10 @@ onMounted(() => {
});
watch([red, green, blue], (newValue) => {
emit("update:modelValue",rgba2hex(red.value, green.value, blue.value, alpha.value));
emit(
"update:modelValue",
rgba2hex(red.value, green.value, blue.value, alpha.value)
);
let { h, s, v } = rgb2hsv(red.value, green.value, blue.value);
hue.value = h;
saturation.value = s;