🐛(component): 修复 select-option 组件 hover 状态丢失

This commit is contained in:
就眠儀式 2022-10-08 08:28:07 +08:00
parent e586ea0030
commit 47bc300712
2 changed files with 5 additions and 1 deletions

View File

@ -58,6 +58,10 @@
font-weight: 700;
}
.layui-select-content .layui-select-option:hover {
background-color: var(--global-neutral-color-2);
}
.layui-select-content .layui-select-option .layui-checkbox{
margin-right: 10px;
}

View File

@ -39,7 +39,7 @@ const multiple: ComputedRef = inject("multiple") as ComputedRef;
const handleSelect = () => {
if (!multiple.value && !props.disabled) {
// @ts-ignore
selectRef.value.hide()
selectRef.value.hide();
selectedValue.value = props.value;
select();
}