style(dropdown-item): when disabled its mouse style should be disabled (#1603)

This commit is contained in:
Vgbire 2021-03-10 21:13:33 +08:00 committed by GitHub
parent 598b798555
commit 8e653df457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,8 @@ export default defineComponent({
const _instance = getCurrentInstance()
function handleClick(e: UIEvent) {
// if disabled don't collapse the drop-down list
if(props.disabled) return
if (elDropdown.hideOnClick.value) {
elDropdown.handleClick?.()
}

View File

@ -137,9 +137,8 @@
}
@include when(disabled) {
cursor: default;
cursor: not-allowed;
color: $--font-color-disabled-base;
pointer-events: none;
}
}