fix(components): [splitter] runtime validation failed for update:size (#22957)

This commit is contained in:
rzzf
2025-11-29 18:14:07 +08:00
committed by GitHub
parent 5c978f42ad
commit f25ef834dd

View File

@@ -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