fix(components): [color-picker] exposed show method wrong behavior (#14064)

fix(components): [color-picker] fix show method wrong behavior
This commit is contained in:
wonderl17 2023-10-09 19:51:47 +08:00 committed by GitHub
parent fd7f4df020
commit 0a46c24da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,7 +215,7 @@ function setShowPicker(value: boolean) {
showPicker.value = value
}
const debounceSetShowPicker = debounce(setShowPicker, 100)
const debounceSetShowPicker = debounce(setShowPicker, 100, { leading: true })
function show() {
if (colorDisabled.value) return