mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 02:08:12 +08:00
fix(components): [cascader] fix warning when clear (#11335)
closed #11226
This commit is contained in:
parent
f95ed1ede6
commit
b7fd75f75a
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user