fix(components): [cascader] fix warning when clear (#11335)

closed #11226
This commit is contained in:
sleepyShen1989 2023-02-01 22:14:53 +08:00 committed by GitHub
parent f95ed1ede6
commit b7fd75f75a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,8 @@ export const cascaderProps = buildProps({
}) })
export const cascaderEmits = { export const cascaderEmits = {
[UPDATE_MODEL_EVENT]: (val: CascaderValue) => !!val, [UPDATE_MODEL_EVENT]: (val: CascaderValue) => !!val || val === null,
[CHANGE_EVENT]: (val: CascaderValue) => !!val, [CHANGE_EVENT]: (val: CascaderValue) => !!val || val === null,
focus: (evt: FocusEvent) => evt instanceof FocusEvent, focus: (evt: FocusEvent) => evt instanceof FocusEvent,
blur: (evt: FocusEvent) => evt instanceof FocusEvent, blur: (evt: FocusEvent) => evt instanceof FocusEvent,
visibleChange: (val: boolean) => isBoolean(val), visibleChange: (val: boolean) => isBoolean(val),