🐛(component): 修复 select-option 组件 hover 状态丢失
This commit is contained in:
parent
e586ea0030
commit
47bc300712
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user