fix: 优化代码格式,合并类型声明

This commit is contained in:
xingyu4j
2026-07-13 18:30:19 +08:00
parent 819ddd4ebb
commit 91a2e80be8
8 changed files with 11 additions and 26 deletions

View File

@@ -66,10 +66,7 @@ export type PromptProps<T = any> = {
component?: Component;
componentProps?: Recordable<any>;
componentSlots?:
| (() => any)
| Recordable<unknown>
| VNode
| VNodeArrayChildren;
(() => any) | Recordable<unknown> | VNode | VNodeArrayChildren;
defaultValue?: T;
modelPropName?: string;
} & Omit<AlertProps, 'beforeClose'>;

View File

@@ -341,12 +341,7 @@ interface RouteMeta {
* Badge color
*/
badgeVariants?:
| 'default'
| 'destructive'
| 'primary'
| 'success'
| 'warning'
| string;
'default' | 'destructive' | 'primary' | 'success' | 'warning' | string;
/**
* The children of the current route are not displayed in the menu
* @default false