mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [splitter] runtime validation failed for update:size (#22957)
This commit is contained in:
@@ -27,7 +27,8 @@ export type SplitterPanelPropsPublic = __ExtractPublicPropTypes<
|
||||
export type SplitterPanelInstance = InstanceType<typeof SplitterPanel> & unknown
|
||||
|
||||
export const splitterPanelEmits = {
|
||||
'update:size': (value: number) => typeof value === 'number',
|
||||
'update:size': (value: number | string) =>
|
||||
typeof value === 'number' || typeof value === 'string',
|
||||
}
|
||||
|
||||
export type SplitterPanelEmits = typeof splitterPanelEmits
|
||||
|
||||
Reference in New Issue
Block a user