@quiteer/naive-extra 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +86 -0
- package/dist/components/breadcrumb/index.d.ts +0 -0
- package/dist/components/breadcrumb/index.vue.d.ts +3 -0
- package/dist/components/breadcrumb/props.d.ts +0 -0
- package/dist/components/button/action/index.d.ts +3 -0
- package/dist/components/button/action/index.vue.d.ts +118 -0
- package/dist/components/button/action/props.d.ts +63 -0
- package/dist/components/button/action/utils.d.ts +8 -0
- package/dist/components/button/base/index.d.ts +3 -0
- package/dist/components/button/base/index.vue.d.ts +36 -0
- package/dist/components/button/base/props.d.ts +27 -0
- package/dist/components/button/index.d.ts +4 -0
- package/dist/components/button/types.d.ts +2 -0
- package/dist/components/form/helper.d.ts +11 -0
- package/dist/components/form/index.d.ts +3 -0
- package/dist/components/form/index.vue.d.ts +642 -0
- package/dist/components/form/props.d.ts +34 -0
- package/dist/components/icon/IconPicker.vue.d.ts +13 -0
- package/dist/components/icon/iconify.d.ts +25 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/icon/index.vue.d.ts +12 -0
- package/dist/components/layout/const.d.ts +22 -0
- package/dist/components/layout/context.d.ts +77 -0
- package/dist/components/layout/index.d.ts +5 -0
- package/dist/components/layout/index.vue.d.ts +80 -0
- package/dist/components/layout/layout-parts/AppBreadcrumb.vue.d.ts +3 -0
- package/dist/components/layout/layout-parts/AppFooter.vue.d.ts +18 -0
- package/dist/components/layout/layout-parts/AppHeader.vue.d.ts +18 -0
- package/dist/components/layout/layout-parts/AppLeftLogoInfo.vue.d.ts +3 -0
- package/dist/components/layout/layout-parts/AppMain.vue.d.ts +18 -0
- package/dist/components/layout/layout-parts/AppSidebar.vue.d.ts +4067 -0
- package/dist/components/layout/layout-parts/LayoutTransition.vue.d.ts +58 -0
- package/dist/components/layout/mode.d.ts +0 -0
- package/dist/components/layout/props.d.ts +35 -0
- package/dist/components/layout/types.d.ts +59 -0
- package/dist/components/layout/utils.d.ts +97 -0
- package/dist/components/provider/index.d.ts +3 -0
- package/dist/components/provider/index.vue.d.ts +19 -0
- package/dist/components/provider/props.d.ts +33 -0
- package/dist/components/search-bar/index.d.ts +3 -0
- package/dist/components/search-bar/index.vue.d.ts +1288 -0
- package/dist/components/search-bar/props.d.ts +15 -0
- package/dist/components/table/TableSetting.vue.d.ts +15 -0
- package/dist/components/table/index.d.ts +4 -0
- package/dist/components/table/index.vue.d.ts +17246 -0
- package/dist/components/table/props.d.ts +26 -0
- package/dist/components/table/useColumn.d.ts +15 -0
- package/dist/components/upload/enum.d.ts +18 -0
- package/dist/components/upload/index.d.ts +4 -0
- package/dist/components/upload/index.vue.d.ts +17 -0
- package/dist/components/upload/props.d.ts +7 -0
- package/dist/const/defaults.d.ts +7 -0
- package/dist/const/index.d.ts +2 -0
- package/dist/const/types.d.ts +134 -0
- package/dist/context/color.d.ts +13 -0
- package/dist/context/common.d.ts +117 -0
- package/dist/context/index.d.ts +41 -0
- package/dist/context/layout.d.ts +52 -0
- package/dist/context/loading-bar.d.ts +14 -0
- package/dist/context/locale.d.ts +143 -0
- package/dist/context/menu.d.ts +212 -0
- package/dist/context/message.d.ts +14 -0
- package/dist/context/notification.d.ts +14 -0
- package/dist/context/table.d.ts +917 -0
- package/dist/context/theme.d.ts +20 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/useAdmin.d.ts +0 -0
- package/dist/hooks/useForm.d.ts +54 -0
- package/dist/hooks/useLayout.d.ts +116 -0
- package/dist/hooks/useProviderContext.d.ts +17 -0
- package/dist/hooks/useTable.d.ts +66 -0
- package/dist/hooks/useThemeOverrides.d.ts +8 -0
- package/dist/hooks/useUpload.d.ts +22 -0
- package/dist/index.css +36 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +6771 -0
- package/dist/share/compact.d.ts +16 -0
- package/dist/share/index.d.ts +2 -0
- package/dist/share/menu.d.ts +0 -0
- package/dist/share/route.d.ts +0 -0
- package/dist/share/slot.d.ts +6 -0
- package/dist/utils/form.d.ts +0 -0
- package/dist/utils/index.d.ts +0 -0
- package/dist/utils/transformRoutes.d.ts +67 -0
- package/dist/utils/tree.d.ts +6 -0
- package/package.json +53 -0
- package/src/auto-imports.d.ts +73 -0
- package/src/components/breadcrumb/index.ts +0 -0
- package/src/components/breadcrumb/index.vue +0 -0
- package/src/components/breadcrumb/props.ts +0 -0
- package/src/components/button/action/index.ts +4 -0
- package/src/components/button/action/index.vue +313 -0
- package/src/components/button/action/props.ts +78 -0
- package/src/components/button/action/utils.ts +122 -0
- package/src/components/button/base/index.ts +4 -0
- package/src/components/button/base/index.vue +156 -0
- package/src/components/button/base/props.ts +29 -0
- package/src/components/button/index.ts +4 -0
- package/src/components/button/types.ts +2 -0
- package/src/components/form/helper.ts +73 -0
- package/src/components/form/index.ts +5 -0
- package/src/components/form/index.vue +243 -0
- package/src/components/form/props.ts +75 -0
- package/src/components/icon/IconPicker.vue +255 -0
- package/src/components/icon/iconify.ts +80 -0
- package/src/components/icon/index.ts +7 -0
- package/src/components/icon/index.vue +23 -0
- package/src/components/layout/const.ts +102 -0
- package/src/components/layout/context.ts +189 -0
- package/src/components/layout/index.ts +8 -0
- package/src/components/layout/index.vue +64 -0
- package/src/components/layout/layout-parts/AppBreadcrumb.vue +108 -0
- package/src/components/layout/layout-parts/AppFooter.vue +26 -0
- package/src/components/layout/layout-parts/AppHeader.vue +112 -0
- package/src/components/layout/layout-parts/AppLeftLogoInfo.vue +30 -0
- package/src/components/layout/layout-parts/AppMain.vue +34 -0
- package/src/components/layout/layout-parts/AppSidebar.vue +174 -0
- package/src/components/layout/layout-parts/LayoutTransition.vue +366 -0
- package/src/components/layout/mode.ts +0 -0
- package/src/components/layout/props.ts +36 -0
- package/src/components/layout/types.ts +79 -0
- package/src/components/layout/utils.ts +201 -0
- package/src/components/provider/index.ts +5 -0
- package/src/components/provider/index.vue +69 -0
- package/src/components/provider/props.ts +45 -0
- package/src/components/search-bar/index.ts +5 -0
- package/src/components/search-bar/index.vue +282 -0
- package/src/components/search-bar/props.ts +26 -0
- package/src/components/table/TableSetting.vue +253 -0
- package/src/components/table/index.ts +14 -0
- package/src/components/table/index.vue +179 -0
- package/src/components/table/props.ts +29 -0
- package/src/components/table/useColumn.ts +104 -0
- package/src/components/upload/enum.ts +21 -0
- package/src/components/upload/index.ts +9 -0
- package/src/components/upload/index.vue +267 -0
- package/src/components/upload/props.ts +8 -0
- package/src/components.d.ts +154 -0
- package/src/const/defaults.ts +94 -0
- package/src/const/index.ts +2 -0
- package/src/const/types.ts +139 -0
- package/src/context/color.ts +53 -0
- package/src/context/common.ts +27 -0
- package/src/context/index.ts +141 -0
- package/src/context/layout.ts +34 -0
- package/src/context/loading-bar.ts +26 -0
- package/src/context/locale.ts +22 -0
- package/src/context/menu.ts +26 -0
- package/src/context/message.ts +30 -0
- package/src/context/notification.ts +29 -0
- package/src/context/table.ts +32 -0
- package/src/context/theme.ts +35 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/useAdmin.ts +0 -0
- package/src/hooks/useForm.ts +272 -0
- package/src/hooks/useLayout.ts +300 -0
- package/src/hooks/useProviderContext.ts +47 -0
- package/src/hooks/useTable.ts +241 -0
- package/src/hooks/useThemeOverrides.ts +18 -0
- package/src/hooks/useUpload.ts +82 -0
- package/src/index.ts +59 -0
- package/src/share/compact.ts +35 -0
- package/src/share/index.ts +2 -0
- package/src/share/menu.ts +0 -0
- package/src/share/route.ts +0 -0
- package/src/share/slot.ts +29 -0
- package/src/utils/form.ts +0 -0
- package/src/utils/index.ts +0 -0
- package/src/utils/transformRoutes.ts +163 -0
- package/src/utils/tree.ts +31 -0
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
import { FormRules, GridProps, FormInst } from 'naive-ui';
|
|
2
|
+
import { Recordable } from '../../const';
|
|
3
|
+
import { Props } from './props';
|
|
4
|
+
import { CreateComponentPublicInstanceWithMixins, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
5
|
+
import { LabelAlign, LabelPlacement, Size, FormValidateMessages } from 'naive-ui/es/form/src/interface';
|
|
6
|
+
import { Theme } from 'naive-ui/es/_mixins';
|
|
7
|
+
import { ExtractThemeOverrides } from 'naive-ui/es/_mixins/use-theme';
|
|
8
|
+
/**
|
|
9
|
+
* 表单校验函数:
|
|
10
|
+
* 统一返回 Promise<void>,避免类型推断依赖 async-validator 的内部路径。
|
|
11
|
+
*/
|
|
12
|
+
declare function validate(): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* 清空校验状态:
|
|
15
|
+
* 当表单未挂载时直接返回已完成的 Promise,保证返回类型稳定。
|
|
16
|
+
*/
|
|
17
|
+
declare function clearValidate(): Promise<void>;
|
|
18
|
+
declare function resetFields(): Promise<void>;
|
|
19
|
+
declare function getFieldsValue(): Recordable;
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
attrs: Partial<{}>;
|
|
22
|
+
slots: Partial<Record<string, (_: {
|
|
23
|
+
model: Recordable;
|
|
24
|
+
field: string;
|
|
25
|
+
value: any;
|
|
26
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
27
|
+
model: Recordable;
|
|
28
|
+
field: string;
|
|
29
|
+
value: any;
|
|
30
|
+
}) => any>> & {
|
|
31
|
+
'action-button'?(_: {
|
|
32
|
+
model: Recordable;
|
|
33
|
+
}): any;
|
|
34
|
+
};
|
|
35
|
+
refs: {
|
|
36
|
+
formElRef: CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
37
|
+
readonly inline: BooleanConstructor;
|
|
38
|
+
readonly labelWidth: PropType<number | string>;
|
|
39
|
+
readonly labelAlign: PropType< LabelAlign>;
|
|
40
|
+
readonly labelPlacement: {
|
|
41
|
+
readonly type: PropType< LabelPlacement>;
|
|
42
|
+
readonly default: "top";
|
|
43
|
+
};
|
|
44
|
+
readonly model: {
|
|
45
|
+
readonly type: PropType<Record<string, any>>;
|
|
46
|
+
readonly default: () => void;
|
|
47
|
+
};
|
|
48
|
+
readonly rules: PropType<FormRules>;
|
|
49
|
+
readonly disabled: BooleanConstructor;
|
|
50
|
+
readonly size: PropType< Size>;
|
|
51
|
+
readonly showRequireMark: {
|
|
52
|
+
readonly type: PropType<boolean | undefined>;
|
|
53
|
+
readonly default: undefined;
|
|
54
|
+
};
|
|
55
|
+
readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
|
|
56
|
+
readonly showFeedback: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: true;
|
|
59
|
+
};
|
|
60
|
+
readonly onSubmit: {
|
|
61
|
+
readonly type: PropType<(e: Event) => void>;
|
|
62
|
+
readonly default: (e: Event) => void;
|
|
63
|
+
};
|
|
64
|
+
readonly showLabel: {
|
|
65
|
+
readonly type: PropType<boolean | undefined>;
|
|
66
|
+
readonly default: undefined;
|
|
67
|
+
};
|
|
68
|
+
readonly validateMessages: PropType<Partial< FormValidateMessages>>;
|
|
69
|
+
readonly theme: PropType< Theme<"Form", {
|
|
70
|
+
blankHeightSmall: string;
|
|
71
|
+
blankHeightMedium: string;
|
|
72
|
+
blankHeightLarge: string;
|
|
73
|
+
lineHeight: string;
|
|
74
|
+
labelTextColor: string;
|
|
75
|
+
asteriskColor: string;
|
|
76
|
+
feedbackTextColorError: string;
|
|
77
|
+
feedbackTextColorWarning: string;
|
|
78
|
+
feedbackTextColor: string;
|
|
79
|
+
feedbackPadding: string;
|
|
80
|
+
feedbackHeightSmall: string;
|
|
81
|
+
feedbackHeightMedium: string;
|
|
82
|
+
feedbackHeightLarge: string;
|
|
83
|
+
feedbackFontSizeSmall: string;
|
|
84
|
+
feedbackFontSizeMedium: string;
|
|
85
|
+
feedbackFontSizeLarge: string;
|
|
86
|
+
labelFontSizeLeftSmall: string;
|
|
87
|
+
labelFontSizeLeftMedium: string;
|
|
88
|
+
labelFontSizeLeftLarge: string;
|
|
89
|
+
labelFontSizeTopSmall: string;
|
|
90
|
+
labelFontSizeTopMedium: string;
|
|
91
|
+
labelFontSizeTopLarge: string;
|
|
92
|
+
labelHeightSmall: string;
|
|
93
|
+
labelHeightMedium: string;
|
|
94
|
+
labelHeightLarge: string;
|
|
95
|
+
labelPaddingVertical: string;
|
|
96
|
+
labelPaddingHorizontal: string;
|
|
97
|
+
labelTextAlignVertical: string;
|
|
98
|
+
labelTextAlignHorizontal: string;
|
|
99
|
+
labelFontWeight: string;
|
|
100
|
+
}, any>>;
|
|
101
|
+
readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
|
|
102
|
+
blankHeightSmall: string;
|
|
103
|
+
blankHeightMedium: string;
|
|
104
|
+
blankHeightLarge: string;
|
|
105
|
+
lineHeight: string;
|
|
106
|
+
labelTextColor: string;
|
|
107
|
+
asteriskColor: string;
|
|
108
|
+
feedbackTextColorError: string;
|
|
109
|
+
feedbackTextColorWarning: string;
|
|
110
|
+
feedbackTextColor: string;
|
|
111
|
+
feedbackPadding: string;
|
|
112
|
+
feedbackHeightSmall: string;
|
|
113
|
+
feedbackHeightMedium: string;
|
|
114
|
+
feedbackHeightLarge: string;
|
|
115
|
+
feedbackFontSizeSmall: string;
|
|
116
|
+
feedbackFontSizeMedium: string;
|
|
117
|
+
feedbackFontSizeLarge: string;
|
|
118
|
+
labelFontSizeLeftSmall: string;
|
|
119
|
+
labelFontSizeLeftMedium: string;
|
|
120
|
+
labelFontSizeLeftLarge: string;
|
|
121
|
+
labelFontSizeTopSmall: string;
|
|
122
|
+
labelFontSizeTopMedium: string;
|
|
123
|
+
labelFontSizeTopLarge: string;
|
|
124
|
+
labelHeightSmall: string;
|
|
125
|
+
labelHeightMedium: string;
|
|
126
|
+
labelHeightLarge: string;
|
|
127
|
+
labelPaddingVertical: string;
|
|
128
|
+
labelPaddingHorizontal: string;
|
|
129
|
+
labelTextAlignVertical: string;
|
|
130
|
+
labelTextAlignHorizontal: string;
|
|
131
|
+
labelFontWeight: string;
|
|
132
|
+
}, any>>>;
|
|
133
|
+
readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
|
|
134
|
+
blankHeightSmall: string;
|
|
135
|
+
blankHeightMedium: string;
|
|
136
|
+
blankHeightLarge: string;
|
|
137
|
+
lineHeight: string;
|
|
138
|
+
labelTextColor: string;
|
|
139
|
+
asteriskColor: string;
|
|
140
|
+
feedbackTextColorError: string;
|
|
141
|
+
feedbackTextColorWarning: string;
|
|
142
|
+
feedbackTextColor: string;
|
|
143
|
+
feedbackPadding: string;
|
|
144
|
+
feedbackHeightSmall: string;
|
|
145
|
+
feedbackHeightMedium: string;
|
|
146
|
+
feedbackHeightLarge: string;
|
|
147
|
+
feedbackFontSizeSmall: string;
|
|
148
|
+
feedbackFontSizeMedium: string;
|
|
149
|
+
feedbackFontSizeLarge: string;
|
|
150
|
+
labelFontSizeLeftSmall: string;
|
|
151
|
+
labelFontSizeLeftMedium: string;
|
|
152
|
+
labelFontSizeLeftLarge: string;
|
|
153
|
+
labelFontSizeTopSmall: string;
|
|
154
|
+
labelFontSizeTopMedium: string;
|
|
155
|
+
labelFontSizeTopLarge: string;
|
|
156
|
+
labelHeightSmall: string;
|
|
157
|
+
labelHeightMedium: string;
|
|
158
|
+
labelHeightLarge: string;
|
|
159
|
+
labelPaddingVertical: string;
|
|
160
|
+
labelPaddingHorizontal: string;
|
|
161
|
+
labelTextAlignVertical: string;
|
|
162
|
+
labelTextAlignHorizontal: string;
|
|
163
|
+
labelFontWeight: string;
|
|
164
|
+
}, any>>>;
|
|
165
|
+
}>> & Readonly<{}>, FormInst & {
|
|
166
|
+
mergedClsPrefix: Ref<string, string>;
|
|
167
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
168
|
+
readonly inline: boolean;
|
|
169
|
+
readonly disabled: boolean;
|
|
170
|
+
readonly onSubmit: (e: Event) => void;
|
|
171
|
+
readonly labelPlacement: LabelPlacement;
|
|
172
|
+
readonly model: Record<string, any>;
|
|
173
|
+
readonly showRequireMark: boolean | undefined;
|
|
174
|
+
readonly showFeedback: boolean;
|
|
175
|
+
readonly showLabel: boolean | undefined;
|
|
176
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
177
|
+
P: {};
|
|
178
|
+
B: {};
|
|
179
|
+
D: {};
|
|
180
|
+
C: {};
|
|
181
|
+
M: {};
|
|
182
|
+
Defaults: {};
|
|
183
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
184
|
+
readonly inline: BooleanConstructor;
|
|
185
|
+
readonly labelWidth: PropType<number | string>;
|
|
186
|
+
readonly labelAlign: PropType< LabelAlign>;
|
|
187
|
+
readonly labelPlacement: {
|
|
188
|
+
readonly type: PropType< LabelPlacement>;
|
|
189
|
+
readonly default: "top";
|
|
190
|
+
};
|
|
191
|
+
readonly model: {
|
|
192
|
+
readonly type: PropType<Record<string, any>>;
|
|
193
|
+
readonly default: () => void;
|
|
194
|
+
};
|
|
195
|
+
readonly rules: PropType<FormRules>;
|
|
196
|
+
readonly disabled: BooleanConstructor;
|
|
197
|
+
readonly size: PropType< Size>;
|
|
198
|
+
readonly showRequireMark: {
|
|
199
|
+
readonly type: PropType<boolean | undefined>;
|
|
200
|
+
readonly default: undefined;
|
|
201
|
+
};
|
|
202
|
+
readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
|
|
203
|
+
readonly showFeedback: {
|
|
204
|
+
readonly type: BooleanConstructor;
|
|
205
|
+
readonly default: true;
|
|
206
|
+
};
|
|
207
|
+
readonly onSubmit: {
|
|
208
|
+
readonly type: PropType<(e: Event) => void>;
|
|
209
|
+
readonly default: (e: Event) => void;
|
|
210
|
+
};
|
|
211
|
+
readonly showLabel: {
|
|
212
|
+
readonly type: PropType<boolean | undefined>;
|
|
213
|
+
readonly default: undefined;
|
|
214
|
+
};
|
|
215
|
+
readonly validateMessages: PropType<Partial< FormValidateMessages>>;
|
|
216
|
+
readonly theme: PropType< Theme<"Form", {
|
|
217
|
+
blankHeightSmall: string;
|
|
218
|
+
blankHeightMedium: string;
|
|
219
|
+
blankHeightLarge: string;
|
|
220
|
+
lineHeight: string;
|
|
221
|
+
labelTextColor: string;
|
|
222
|
+
asteriskColor: string;
|
|
223
|
+
feedbackTextColorError: string;
|
|
224
|
+
feedbackTextColorWarning: string;
|
|
225
|
+
feedbackTextColor: string;
|
|
226
|
+
feedbackPadding: string;
|
|
227
|
+
feedbackHeightSmall: string;
|
|
228
|
+
feedbackHeightMedium: string;
|
|
229
|
+
feedbackHeightLarge: string;
|
|
230
|
+
feedbackFontSizeSmall: string;
|
|
231
|
+
feedbackFontSizeMedium: string;
|
|
232
|
+
feedbackFontSizeLarge: string;
|
|
233
|
+
labelFontSizeLeftSmall: string;
|
|
234
|
+
labelFontSizeLeftMedium: string;
|
|
235
|
+
labelFontSizeLeftLarge: string;
|
|
236
|
+
labelFontSizeTopSmall: string;
|
|
237
|
+
labelFontSizeTopMedium: string;
|
|
238
|
+
labelFontSizeTopLarge: string;
|
|
239
|
+
labelHeightSmall: string;
|
|
240
|
+
labelHeightMedium: string;
|
|
241
|
+
labelHeightLarge: string;
|
|
242
|
+
labelPaddingVertical: string;
|
|
243
|
+
labelPaddingHorizontal: string;
|
|
244
|
+
labelTextAlignVertical: string;
|
|
245
|
+
labelTextAlignHorizontal: string;
|
|
246
|
+
labelFontWeight: string;
|
|
247
|
+
}, any>>;
|
|
248
|
+
readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
|
|
249
|
+
blankHeightSmall: string;
|
|
250
|
+
blankHeightMedium: string;
|
|
251
|
+
blankHeightLarge: string;
|
|
252
|
+
lineHeight: string;
|
|
253
|
+
labelTextColor: string;
|
|
254
|
+
asteriskColor: string;
|
|
255
|
+
feedbackTextColorError: string;
|
|
256
|
+
feedbackTextColorWarning: string;
|
|
257
|
+
feedbackTextColor: string;
|
|
258
|
+
feedbackPadding: string;
|
|
259
|
+
feedbackHeightSmall: string;
|
|
260
|
+
feedbackHeightMedium: string;
|
|
261
|
+
feedbackHeightLarge: string;
|
|
262
|
+
feedbackFontSizeSmall: string;
|
|
263
|
+
feedbackFontSizeMedium: string;
|
|
264
|
+
feedbackFontSizeLarge: string;
|
|
265
|
+
labelFontSizeLeftSmall: string;
|
|
266
|
+
labelFontSizeLeftMedium: string;
|
|
267
|
+
labelFontSizeLeftLarge: string;
|
|
268
|
+
labelFontSizeTopSmall: string;
|
|
269
|
+
labelFontSizeTopMedium: string;
|
|
270
|
+
labelFontSizeTopLarge: string;
|
|
271
|
+
labelHeightSmall: string;
|
|
272
|
+
labelHeightMedium: string;
|
|
273
|
+
labelHeightLarge: string;
|
|
274
|
+
labelPaddingVertical: string;
|
|
275
|
+
labelPaddingHorizontal: string;
|
|
276
|
+
labelTextAlignVertical: string;
|
|
277
|
+
labelTextAlignHorizontal: string;
|
|
278
|
+
labelFontWeight: string;
|
|
279
|
+
}, any>>>;
|
|
280
|
+
readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
|
|
281
|
+
blankHeightSmall: string;
|
|
282
|
+
blankHeightMedium: string;
|
|
283
|
+
blankHeightLarge: string;
|
|
284
|
+
lineHeight: string;
|
|
285
|
+
labelTextColor: string;
|
|
286
|
+
asteriskColor: string;
|
|
287
|
+
feedbackTextColorError: string;
|
|
288
|
+
feedbackTextColorWarning: string;
|
|
289
|
+
feedbackTextColor: string;
|
|
290
|
+
feedbackPadding: string;
|
|
291
|
+
feedbackHeightSmall: string;
|
|
292
|
+
feedbackHeightMedium: string;
|
|
293
|
+
feedbackHeightLarge: string;
|
|
294
|
+
feedbackFontSizeSmall: string;
|
|
295
|
+
feedbackFontSizeMedium: string;
|
|
296
|
+
feedbackFontSizeLarge: string;
|
|
297
|
+
labelFontSizeLeftSmall: string;
|
|
298
|
+
labelFontSizeLeftMedium: string;
|
|
299
|
+
labelFontSizeLeftLarge: string;
|
|
300
|
+
labelFontSizeTopSmall: string;
|
|
301
|
+
labelFontSizeTopMedium: string;
|
|
302
|
+
labelFontSizeTopLarge: string;
|
|
303
|
+
labelHeightSmall: string;
|
|
304
|
+
labelHeightMedium: string;
|
|
305
|
+
labelHeightLarge: string;
|
|
306
|
+
labelPaddingVertical: string;
|
|
307
|
+
labelPaddingHorizontal: string;
|
|
308
|
+
labelTextAlignVertical: string;
|
|
309
|
+
labelTextAlignHorizontal: string;
|
|
310
|
+
labelFontWeight: string;
|
|
311
|
+
}, any>>>;
|
|
312
|
+
}>> & Readonly<{}>, FormInst & {
|
|
313
|
+
mergedClsPrefix: Ref<string, string>;
|
|
314
|
+
}, {}, {}, {}, {
|
|
315
|
+
readonly inline: boolean;
|
|
316
|
+
readonly disabled: boolean;
|
|
317
|
+
readonly onSubmit: (e: Event) => void;
|
|
318
|
+
readonly labelPlacement: LabelPlacement;
|
|
319
|
+
readonly model: Record<string, any>;
|
|
320
|
+
readonly showRequireMark: boolean | undefined;
|
|
321
|
+
readonly showFeedback: boolean;
|
|
322
|
+
readonly showLabel: boolean | undefined;
|
|
323
|
+
}> | null;
|
|
324
|
+
};
|
|
325
|
+
rootEl: any;
|
|
326
|
+
};
|
|
327
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
328
|
+
declare const __VLS_component: DefineComponent<Props, {
|
|
329
|
+
validate: typeof validate;
|
|
330
|
+
resetFields: typeof resetFields;
|
|
331
|
+
clearValidate: typeof clearValidate;
|
|
332
|
+
getFieldsValue: typeof getFieldsValue;
|
|
333
|
+
setFieldsValue(values: Recordable): void;
|
|
334
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
335
|
+
reset: () => any;
|
|
336
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
337
|
+
onReset?: (() => any) | undefined;
|
|
338
|
+
}>, {
|
|
339
|
+
disabled: boolean;
|
|
340
|
+
size: "small" | "medium" | "large";
|
|
341
|
+
inline: boolean;
|
|
342
|
+
labelWidth: number | string;
|
|
343
|
+
labelPlacement: "top" | "left";
|
|
344
|
+
isFull: boolean;
|
|
345
|
+
gridProps: GridProps;
|
|
346
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
347
|
+
formElRef: CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
348
|
+
readonly inline: BooleanConstructor;
|
|
349
|
+
readonly labelWidth: PropType<number | string>;
|
|
350
|
+
readonly labelAlign: PropType< LabelAlign>;
|
|
351
|
+
readonly labelPlacement: {
|
|
352
|
+
readonly type: PropType< LabelPlacement>;
|
|
353
|
+
readonly default: "top";
|
|
354
|
+
};
|
|
355
|
+
readonly model: {
|
|
356
|
+
readonly type: PropType<Record<string, any>>;
|
|
357
|
+
readonly default: () => void;
|
|
358
|
+
};
|
|
359
|
+
readonly rules: PropType<FormRules>;
|
|
360
|
+
readonly disabled: BooleanConstructor;
|
|
361
|
+
readonly size: PropType< Size>;
|
|
362
|
+
readonly showRequireMark: {
|
|
363
|
+
readonly type: PropType<boolean | undefined>;
|
|
364
|
+
readonly default: undefined;
|
|
365
|
+
};
|
|
366
|
+
readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
|
|
367
|
+
readonly showFeedback: {
|
|
368
|
+
readonly type: BooleanConstructor;
|
|
369
|
+
readonly default: true;
|
|
370
|
+
};
|
|
371
|
+
readonly onSubmit: {
|
|
372
|
+
readonly type: PropType<(e: Event) => void>;
|
|
373
|
+
readonly default: (e: Event) => void;
|
|
374
|
+
};
|
|
375
|
+
readonly showLabel: {
|
|
376
|
+
readonly type: PropType<boolean | undefined>;
|
|
377
|
+
readonly default: undefined;
|
|
378
|
+
};
|
|
379
|
+
readonly validateMessages: PropType<Partial< FormValidateMessages>>;
|
|
380
|
+
readonly theme: PropType< Theme<"Form", {
|
|
381
|
+
blankHeightSmall: string;
|
|
382
|
+
blankHeightMedium: string;
|
|
383
|
+
blankHeightLarge: string;
|
|
384
|
+
lineHeight: string;
|
|
385
|
+
labelTextColor: string;
|
|
386
|
+
asteriskColor: string;
|
|
387
|
+
feedbackTextColorError: string;
|
|
388
|
+
feedbackTextColorWarning: string;
|
|
389
|
+
feedbackTextColor: string;
|
|
390
|
+
feedbackPadding: string;
|
|
391
|
+
feedbackHeightSmall: string;
|
|
392
|
+
feedbackHeightMedium: string;
|
|
393
|
+
feedbackHeightLarge: string;
|
|
394
|
+
feedbackFontSizeSmall: string;
|
|
395
|
+
feedbackFontSizeMedium: string;
|
|
396
|
+
feedbackFontSizeLarge: string;
|
|
397
|
+
labelFontSizeLeftSmall: string;
|
|
398
|
+
labelFontSizeLeftMedium: string;
|
|
399
|
+
labelFontSizeLeftLarge: string;
|
|
400
|
+
labelFontSizeTopSmall: string;
|
|
401
|
+
labelFontSizeTopMedium: string;
|
|
402
|
+
labelFontSizeTopLarge: string;
|
|
403
|
+
labelHeightSmall: string;
|
|
404
|
+
labelHeightMedium: string;
|
|
405
|
+
labelHeightLarge: string;
|
|
406
|
+
labelPaddingVertical: string;
|
|
407
|
+
labelPaddingHorizontal: string;
|
|
408
|
+
labelTextAlignVertical: string;
|
|
409
|
+
labelTextAlignHorizontal: string;
|
|
410
|
+
labelFontWeight: string;
|
|
411
|
+
}, any>>;
|
|
412
|
+
readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
|
|
413
|
+
blankHeightSmall: string;
|
|
414
|
+
blankHeightMedium: string;
|
|
415
|
+
blankHeightLarge: string;
|
|
416
|
+
lineHeight: string;
|
|
417
|
+
labelTextColor: string;
|
|
418
|
+
asteriskColor: string;
|
|
419
|
+
feedbackTextColorError: string;
|
|
420
|
+
feedbackTextColorWarning: string;
|
|
421
|
+
feedbackTextColor: string;
|
|
422
|
+
feedbackPadding: string;
|
|
423
|
+
feedbackHeightSmall: string;
|
|
424
|
+
feedbackHeightMedium: string;
|
|
425
|
+
feedbackHeightLarge: string;
|
|
426
|
+
feedbackFontSizeSmall: string;
|
|
427
|
+
feedbackFontSizeMedium: string;
|
|
428
|
+
feedbackFontSizeLarge: string;
|
|
429
|
+
labelFontSizeLeftSmall: string;
|
|
430
|
+
labelFontSizeLeftMedium: string;
|
|
431
|
+
labelFontSizeLeftLarge: string;
|
|
432
|
+
labelFontSizeTopSmall: string;
|
|
433
|
+
labelFontSizeTopMedium: string;
|
|
434
|
+
labelFontSizeTopLarge: string;
|
|
435
|
+
labelHeightSmall: string;
|
|
436
|
+
labelHeightMedium: string;
|
|
437
|
+
labelHeightLarge: string;
|
|
438
|
+
labelPaddingVertical: string;
|
|
439
|
+
labelPaddingHorizontal: string;
|
|
440
|
+
labelTextAlignVertical: string;
|
|
441
|
+
labelTextAlignHorizontal: string;
|
|
442
|
+
labelFontWeight: string;
|
|
443
|
+
}, any>>>;
|
|
444
|
+
readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
|
|
445
|
+
blankHeightSmall: string;
|
|
446
|
+
blankHeightMedium: string;
|
|
447
|
+
blankHeightLarge: string;
|
|
448
|
+
lineHeight: string;
|
|
449
|
+
labelTextColor: string;
|
|
450
|
+
asteriskColor: string;
|
|
451
|
+
feedbackTextColorError: string;
|
|
452
|
+
feedbackTextColorWarning: string;
|
|
453
|
+
feedbackTextColor: string;
|
|
454
|
+
feedbackPadding: string;
|
|
455
|
+
feedbackHeightSmall: string;
|
|
456
|
+
feedbackHeightMedium: string;
|
|
457
|
+
feedbackHeightLarge: string;
|
|
458
|
+
feedbackFontSizeSmall: string;
|
|
459
|
+
feedbackFontSizeMedium: string;
|
|
460
|
+
feedbackFontSizeLarge: string;
|
|
461
|
+
labelFontSizeLeftSmall: string;
|
|
462
|
+
labelFontSizeLeftMedium: string;
|
|
463
|
+
labelFontSizeLeftLarge: string;
|
|
464
|
+
labelFontSizeTopSmall: string;
|
|
465
|
+
labelFontSizeTopMedium: string;
|
|
466
|
+
labelFontSizeTopLarge: string;
|
|
467
|
+
labelHeightSmall: string;
|
|
468
|
+
labelHeightMedium: string;
|
|
469
|
+
labelHeightLarge: string;
|
|
470
|
+
labelPaddingVertical: string;
|
|
471
|
+
labelPaddingHorizontal: string;
|
|
472
|
+
labelTextAlignVertical: string;
|
|
473
|
+
labelTextAlignHorizontal: string;
|
|
474
|
+
labelFontWeight: string;
|
|
475
|
+
}, any>>>;
|
|
476
|
+
}>> & Readonly<{}>, FormInst & {
|
|
477
|
+
mergedClsPrefix: Ref<string, string>;
|
|
478
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
479
|
+
readonly inline: boolean;
|
|
480
|
+
readonly disabled: boolean;
|
|
481
|
+
readonly onSubmit: (e: Event) => void;
|
|
482
|
+
readonly labelPlacement: LabelPlacement;
|
|
483
|
+
readonly model: Record<string, any>;
|
|
484
|
+
readonly showRequireMark: boolean | undefined;
|
|
485
|
+
readonly showFeedback: boolean;
|
|
486
|
+
readonly showLabel: boolean | undefined;
|
|
487
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
488
|
+
P: {};
|
|
489
|
+
B: {};
|
|
490
|
+
D: {};
|
|
491
|
+
C: {};
|
|
492
|
+
M: {};
|
|
493
|
+
Defaults: {};
|
|
494
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
495
|
+
readonly inline: BooleanConstructor;
|
|
496
|
+
readonly labelWidth: PropType<number | string>;
|
|
497
|
+
readonly labelAlign: PropType< LabelAlign>;
|
|
498
|
+
readonly labelPlacement: {
|
|
499
|
+
readonly type: PropType< LabelPlacement>;
|
|
500
|
+
readonly default: "top";
|
|
501
|
+
};
|
|
502
|
+
readonly model: {
|
|
503
|
+
readonly type: PropType<Record<string, any>>;
|
|
504
|
+
readonly default: () => void;
|
|
505
|
+
};
|
|
506
|
+
readonly rules: PropType<FormRules>;
|
|
507
|
+
readonly disabled: BooleanConstructor;
|
|
508
|
+
readonly size: PropType< Size>;
|
|
509
|
+
readonly showRequireMark: {
|
|
510
|
+
readonly type: PropType<boolean | undefined>;
|
|
511
|
+
readonly default: undefined;
|
|
512
|
+
};
|
|
513
|
+
readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
|
|
514
|
+
readonly showFeedback: {
|
|
515
|
+
readonly type: BooleanConstructor;
|
|
516
|
+
readonly default: true;
|
|
517
|
+
};
|
|
518
|
+
readonly onSubmit: {
|
|
519
|
+
readonly type: PropType<(e: Event) => void>;
|
|
520
|
+
readonly default: (e: Event) => void;
|
|
521
|
+
};
|
|
522
|
+
readonly showLabel: {
|
|
523
|
+
readonly type: PropType<boolean | undefined>;
|
|
524
|
+
readonly default: undefined;
|
|
525
|
+
};
|
|
526
|
+
readonly validateMessages: PropType<Partial< FormValidateMessages>>;
|
|
527
|
+
readonly theme: PropType< Theme<"Form", {
|
|
528
|
+
blankHeightSmall: string;
|
|
529
|
+
blankHeightMedium: string;
|
|
530
|
+
blankHeightLarge: string;
|
|
531
|
+
lineHeight: string;
|
|
532
|
+
labelTextColor: string;
|
|
533
|
+
asteriskColor: string;
|
|
534
|
+
feedbackTextColorError: string;
|
|
535
|
+
feedbackTextColorWarning: string;
|
|
536
|
+
feedbackTextColor: string;
|
|
537
|
+
feedbackPadding: string;
|
|
538
|
+
feedbackHeightSmall: string;
|
|
539
|
+
feedbackHeightMedium: string;
|
|
540
|
+
feedbackHeightLarge: string;
|
|
541
|
+
feedbackFontSizeSmall: string;
|
|
542
|
+
feedbackFontSizeMedium: string;
|
|
543
|
+
feedbackFontSizeLarge: string;
|
|
544
|
+
labelFontSizeLeftSmall: string;
|
|
545
|
+
labelFontSizeLeftMedium: string;
|
|
546
|
+
labelFontSizeLeftLarge: string;
|
|
547
|
+
labelFontSizeTopSmall: string;
|
|
548
|
+
labelFontSizeTopMedium: string;
|
|
549
|
+
labelFontSizeTopLarge: string;
|
|
550
|
+
labelHeightSmall: string;
|
|
551
|
+
labelHeightMedium: string;
|
|
552
|
+
labelHeightLarge: string;
|
|
553
|
+
labelPaddingVertical: string;
|
|
554
|
+
labelPaddingHorizontal: string;
|
|
555
|
+
labelTextAlignVertical: string;
|
|
556
|
+
labelTextAlignHorizontal: string;
|
|
557
|
+
labelFontWeight: string;
|
|
558
|
+
}, any>>;
|
|
559
|
+
readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
|
|
560
|
+
blankHeightSmall: string;
|
|
561
|
+
blankHeightMedium: string;
|
|
562
|
+
blankHeightLarge: string;
|
|
563
|
+
lineHeight: string;
|
|
564
|
+
labelTextColor: string;
|
|
565
|
+
asteriskColor: string;
|
|
566
|
+
feedbackTextColorError: string;
|
|
567
|
+
feedbackTextColorWarning: string;
|
|
568
|
+
feedbackTextColor: string;
|
|
569
|
+
feedbackPadding: string;
|
|
570
|
+
feedbackHeightSmall: string;
|
|
571
|
+
feedbackHeightMedium: string;
|
|
572
|
+
feedbackHeightLarge: string;
|
|
573
|
+
feedbackFontSizeSmall: string;
|
|
574
|
+
feedbackFontSizeMedium: string;
|
|
575
|
+
feedbackFontSizeLarge: string;
|
|
576
|
+
labelFontSizeLeftSmall: string;
|
|
577
|
+
labelFontSizeLeftMedium: string;
|
|
578
|
+
labelFontSizeLeftLarge: string;
|
|
579
|
+
labelFontSizeTopSmall: string;
|
|
580
|
+
labelFontSizeTopMedium: string;
|
|
581
|
+
labelFontSizeTopLarge: string;
|
|
582
|
+
labelHeightSmall: string;
|
|
583
|
+
labelHeightMedium: string;
|
|
584
|
+
labelHeightLarge: string;
|
|
585
|
+
labelPaddingVertical: string;
|
|
586
|
+
labelPaddingHorizontal: string;
|
|
587
|
+
labelTextAlignVertical: string;
|
|
588
|
+
labelTextAlignHorizontal: string;
|
|
589
|
+
labelFontWeight: string;
|
|
590
|
+
}, any>>>;
|
|
591
|
+
readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
|
|
592
|
+
blankHeightSmall: string;
|
|
593
|
+
blankHeightMedium: string;
|
|
594
|
+
blankHeightLarge: string;
|
|
595
|
+
lineHeight: string;
|
|
596
|
+
labelTextColor: string;
|
|
597
|
+
asteriskColor: string;
|
|
598
|
+
feedbackTextColorError: string;
|
|
599
|
+
feedbackTextColorWarning: string;
|
|
600
|
+
feedbackTextColor: string;
|
|
601
|
+
feedbackPadding: string;
|
|
602
|
+
feedbackHeightSmall: string;
|
|
603
|
+
feedbackHeightMedium: string;
|
|
604
|
+
feedbackHeightLarge: string;
|
|
605
|
+
feedbackFontSizeSmall: string;
|
|
606
|
+
feedbackFontSizeMedium: string;
|
|
607
|
+
feedbackFontSizeLarge: string;
|
|
608
|
+
labelFontSizeLeftSmall: string;
|
|
609
|
+
labelFontSizeLeftMedium: string;
|
|
610
|
+
labelFontSizeLeftLarge: string;
|
|
611
|
+
labelFontSizeTopSmall: string;
|
|
612
|
+
labelFontSizeTopMedium: string;
|
|
613
|
+
labelFontSizeTopLarge: string;
|
|
614
|
+
labelHeightSmall: string;
|
|
615
|
+
labelHeightMedium: string;
|
|
616
|
+
labelHeightLarge: string;
|
|
617
|
+
labelPaddingVertical: string;
|
|
618
|
+
labelPaddingHorizontal: string;
|
|
619
|
+
labelTextAlignVertical: string;
|
|
620
|
+
labelTextAlignHorizontal: string;
|
|
621
|
+
labelFontWeight: string;
|
|
622
|
+
}, any>>>;
|
|
623
|
+
}>> & Readonly<{}>, FormInst & {
|
|
624
|
+
mergedClsPrefix: Ref<string, string>;
|
|
625
|
+
}, {}, {}, {}, {
|
|
626
|
+
readonly inline: boolean;
|
|
627
|
+
readonly disabled: boolean;
|
|
628
|
+
readonly onSubmit: (e: Event) => void;
|
|
629
|
+
readonly labelPlacement: LabelPlacement;
|
|
630
|
+
readonly model: Record<string, any>;
|
|
631
|
+
readonly showRequireMark: boolean | undefined;
|
|
632
|
+
readonly showFeedback: boolean;
|
|
633
|
+
readonly showLabel: boolean | undefined;
|
|
634
|
+
}> | null;
|
|
635
|
+
}, any>;
|
|
636
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
637
|
+
export default _default;
|
|
638
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
639
|
+
new (): {
|
|
640
|
+
$slots: S;
|
|
641
|
+
};
|
|
642
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GridItemProps, GridProps, SwitchProps } from 'naive-ui';
|
|
2
|
+
import { CSSProperties } from 'vue';
|
|
3
|
+
import { Recordable } from '../../const';
|
|
4
|
+
export type ComponentType = 'NInput' | 'NInputGroup' | 'NInputPassword' | 'NInputSearch' | 'NInputTextArea' | 'NInputNumber' | 'NInputCountDown' | 'NDynamicInput' | 'NSelect' | 'NTreeSelect' | 'NRadioButtonGroup' | 'NRadioGroup' | 'NCheckbox' | 'NCheckboxGroup' | 'NAutoComplete' | 'NCascader' | 'NDatePicker' | 'NMonthPicker' | 'NRangePicker' | 'NWeekPicker' | 'NTimePicker' | 'NSwitch' | 'NStrengthMeter' | 'NUpload' | 'NIconPicker' | 'NRender' | 'NSlider' | 'NRate' | 'NDynamicTags' | 'NImage';
|
|
5
|
+
export interface FormSchema<T = Recordable<string>> {
|
|
6
|
+
field: keyof T;
|
|
7
|
+
label: string;
|
|
8
|
+
labelMessage?: string;
|
|
9
|
+
labelMessageStyle?: object | string;
|
|
10
|
+
defaultValue?: any;
|
|
11
|
+
component?: ComponentType;
|
|
12
|
+
componentProps?: Record<string, any>;
|
|
13
|
+
slot?: string;
|
|
14
|
+
rules?: object[];
|
|
15
|
+
giProps?: GridItemProps;
|
|
16
|
+
isFull?: boolean;
|
|
17
|
+
suffix?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface Props {
|
|
20
|
+
schemas: FormSchema<Recordable<string>>[];
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
labelWidth?: number | string;
|
|
23
|
+
labelPlacement?: 'top' | 'left';
|
|
24
|
+
inline?: boolean;
|
|
25
|
+
size?: 'small' | 'medium' | 'large';
|
|
26
|
+
isFull?: boolean;
|
|
27
|
+
gridProps?: GridProps;
|
|
28
|
+
gridStyle?: CSSProperties;
|
|
29
|
+
giProps?: GridItemProps;
|
|
30
|
+
}
|
|
31
|
+
export interface CustomSwitchProps extends SwitchProps {
|
|
32
|
+
checkedText: string;
|
|
33
|
+
uncheckedText: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
pageSize?: number;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
select: (value: string) => any;
|
|
9
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
onSelect?: ((value: string) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|