fix(components): supplement the NaiveUI type

This commit is contained in:
tnt group 2024-02-26 10:40:44 +08:00
parent fdf64f71f4
commit ccc2b674db
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ defineOptions({
}); });
interface Props { interface Props {
itemAlign?: 'stretch' | 'baseline' | 'start' | 'end' | 'center' | 'flex-end' | 'flex-start'; itemAlign?: NaiveUI.Align;
disabledDelete?: boolean; disabledDelete?: boolean;
loading?: boolean; loading?: boolean;
} }

View File

@ -1,3 +1,4 @@
declare namespace NaiveUI { declare namespace NaiveUI {
type ThemeColor = 'default' | 'error' | 'primary' | 'info' | 'success' | 'warning'; type ThemeColor = 'default' | 'error' | 'primary' | 'info' | 'success' | 'warning';
type Align = 'stretch' | 'baseline' | 'start' | 'end' | 'center' | 'flex-end' | 'flex-start';
} }