@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.
Files changed (171) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +86 -0
  3. package/dist/components/breadcrumb/index.d.ts +0 -0
  4. package/dist/components/breadcrumb/index.vue.d.ts +3 -0
  5. package/dist/components/breadcrumb/props.d.ts +0 -0
  6. package/dist/components/button/action/index.d.ts +3 -0
  7. package/dist/components/button/action/index.vue.d.ts +118 -0
  8. package/dist/components/button/action/props.d.ts +63 -0
  9. package/dist/components/button/action/utils.d.ts +8 -0
  10. package/dist/components/button/base/index.d.ts +3 -0
  11. package/dist/components/button/base/index.vue.d.ts +36 -0
  12. package/dist/components/button/base/props.d.ts +27 -0
  13. package/dist/components/button/index.d.ts +4 -0
  14. package/dist/components/button/types.d.ts +2 -0
  15. package/dist/components/form/helper.d.ts +11 -0
  16. package/dist/components/form/index.d.ts +3 -0
  17. package/dist/components/form/index.vue.d.ts +642 -0
  18. package/dist/components/form/props.d.ts +34 -0
  19. package/dist/components/icon/IconPicker.vue.d.ts +13 -0
  20. package/dist/components/icon/iconify.d.ts +25 -0
  21. package/dist/components/icon/index.d.ts +3 -0
  22. package/dist/components/icon/index.vue.d.ts +12 -0
  23. package/dist/components/layout/const.d.ts +22 -0
  24. package/dist/components/layout/context.d.ts +77 -0
  25. package/dist/components/layout/index.d.ts +5 -0
  26. package/dist/components/layout/index.vue.d.ts +80 -0
  27. package/dist/components/layout/layout-parts/AppBreadcrumb.vue.d.ts +3 -0
  28. package/dist/components/layout/layout-parts/AppFooter.vue.d.ts +18 -0
  29. package/dist/components/layout/layout-parts/AppHeader.vue.d.ts +18 -0
  30. package/dist/components/layout/layout-parts/AppLeftLogoInfo.vue.d.ts +3 -0
  31. package/dist/components/layout/layout-parts/AppMain.vue.d.ts +18 -0
  32. package/dist/components/layout/layout-parts/AppSidebar.vue.d.ts +4067 -0
  33. package/dist/components/layout/layout-parts/LayoutTransition.vue.d.ts +58 -0
  34. package/dist/components/layout/mode.d.ts +0 -0
  35. package/dist/components/layout/props.d.ts +35 -0
  36. package/dist/components/layout/types.d.ts +59 -0
  37. package/dist/components/layout/utils.d.ts +97 -0
  38. package/dist/components/provider/index.d.ts +3 -0
  39. package/dist/components/provider/index.vue.d.ts +19 -0
  40. package/dist/components/provider/props.d.ts +33 -0
  41. package/dist/components/search-bar/index.d.ts +3 -0
  42. package/dist/components/search-bar/index.vue.d.ts +1288 -0
  43. package/dist/components/search-bar/props.d.ts +15 -0
  44. package/dist/components/table/TableSetting.vue.d.ts +15 -0
  45. package/dist/components/table/index.d.ts +4 -0
  46. package/dist/components/table/index.vue.d.ts +17246 -0
  47. package/dist/components/table/props.d.ts +26 -0
  48. package/dist/components/table/useColumn.d.ts +15 -0
  49. package/dist/components/upload/enum.d.ts +18 -0
  50. package/dist/components/upload/index.d.ts +4 -0
  51. package/dist/components/upload/index.vue.d.ts +17 -0
  52. package/dist/components/upload/props.d.ts +7 -0
  53. package/dist/const/defaults.d.ts +7 -0
  54. package/dist/const/index.d.ts +2 -0
  55. package/dist/const/types.d.ts +134 -0
  56. package/dist/context/color.d.ts +13 -0
  57. package/dist/context/common.d.ts +117 -0
  58. package/dist/context/index.d.ts +41 -0
  59. package/dist/context/layout.d.ts +52 -0
  60. package/dist/context/loading-bar.d.ts +14 -0
  61. package/dist/context/locale.d.ts +143 -0
  62. package/dist/context/menu.d.ts +212 -0
  63. package/dist/context/message.d.ts +14 -0
  64. package/dist/context/notification.d.ts +14 -0
  65. package/dist/context/table.d.ts +917 -0
  66. package/dist/context/theme.d.ts +20 -0
  67. package/dist/hooks/index.d.ts +6 -0
  68. package/dist/hooks/useAdmin.d.ts +0 -0
  69. package/dist/hooks/useForm.d.ts +54 -0
  70. package/dist/hooks/useLayout.d.ts +116 -0
  71. package/dist/hooks/useProviderContext.d.ts +17 -0
  72. package/dist/hooks/useTable.d.ts +66 -0
  73. package/dist/hooks/useThemeOverrides.d.ts +8 -0
  74. package/dist/hooks/useUpload.d.ts +22 -0
  75. package/dist/index.css +36 -0
  76. package/dist/index.d.ts +29 -0
  77. package/dist/index.js +6771 -0
  78. package/dist/share/compact.d.ts +16 -0
  79. package/dist/share/index.d.ts +2 -0
  80. package/dist/share/menu.d.ts +0 -0
  81. package/dist/share/route.d.ts +0 -0
  82. package/dist/share/slot.d.ts +6 -0
  83. package/dist/utils/form.d.ts +0 -0
  84. package/dist/utils/index.d.ts +0 -0
  85. package/dist/utils/transformRoutes.d.ts +67 -0
  86. package/dist/utils/tree.d.ts +6 -0
  87. package/package.json +53 -0
  88. package/src/auto-imports.d.ts +73 -0
  89. package/src/components/breadcrumb/index.ts +0 -0
  90. package/src/components/breadcrumb/index.vue +0 -0
  91. package/src/components/breadcrumb/props.ts +0 -0
  92. package/src/components/button/action/index.ts +4 -0
  93. package/src/components/button/action/index.vue +313 -0
  94. package/src/components/button/action/props.ts +78 -0
  95. package/src/components/button/action/utils.ts +122 -0
  96. package/src/components/button/base/index.ts +4 -0
  97. package/src/components/button/base/index.vue +156 -0
  98. package/src/components/button/base/props.ts +29 -0
  99. package/src/components/button/index.ts +4 -0
  100. package/src/components/button/types.ts +2 -0
  101. package/src/components/form/helper.ts +73 -0
  102. package/src/components/form/index.ts +5 -0
  103. package/src/components/form/index.vue +243 -0
  104. package/src/components/form/props.ts +75 -0
  105. package/src/components/icon/IconPicker.vue +255 -0
  106. package/src/components/icon/iconify.ts +80 -0
  107. package/src/components/icon/index.ts +7 -0
  108. package/src/components/icon/index.vue +23 -0
  109. package/src/components/layout/const.ts +102 -0
  110. package/src/components/layout/context.ts +189 -0
  111. package/src/components/layout/index.ts +8 -0
  112. package/src/components/layout/index.vue +64 -0
  113. package/src/components/layout/layout-parts/AppBreadcrumb.vue +108 -0
  114. package/src/components/layout/layout-parts/AppFooter.vue +26 -0
  115. package/src/components/layout/layout-parts/AppHeader.vue +112 -0
  116. package/src/components/layout/layout-parts/AppLeftLogoInfo.vue +30 -0
  117. package/src/components/layout/layout-parts/AppMain.vue +34 -0
  118. package/src/components/layout/layout-parts/AppSidebar.vue +174 -0
  119. package/src/components/layout/layout-parts/LayoutTransition.vue +366 -0
  120. package/src/components/layout/mode.ts +0 -0
  121. package/src/components/layout/props.ts +36 -0
  122. package/src/components/layout/types.ts +79 -0
  123. package/src/components/layout/utils.ts +201 -0
  124. package/src/components/provider/index.ts +5 -0
  125. package/src/components/provider/index.vue +69 -0
  126. package/src/components/provider/props.ts +45 -0
  127. package/src/components/search-bar/index.ts +5 -0
  128. package/src/components/search-bar/index.vue +282 -0
  129. package/src/components/search-bar/props.ts +26 -0
  130. package/src/components/table/TableSetting.vue +253 -0
  131. package/src/components/table/index.ts +14 -0
  132. package/src/components/table/index.vue +179 -0
  133. package/src/components/table/props.ts +29 -0
  134. package/src/components/table/useColumn.ts +104 -0
  135. package/src/components/upload/enum.ts +21 -0
  136. package/src/components/upload/index.ts +9 -0
  137. package/src/components/upload/index.vue +267 -0
  138. package/src/components/upload/props.ts +8 -0
  139. package/src/components.d.ts +154 -0
  140. package/src/const/defaults.ts +94 -0
  141. package/src/const/index.ts +2 -0
  142. package/src/const/types.ts +139 -0
  143. package/src/context/color.ts +53 -0
  144. package/src/context/common.ts +27 -0
  145. package/src/context/index.ts +141 -0
  146. package/src/context/layout.ts +34 -0
  147. package/src/context/loading-bar.ts +26 -0
  148. package/src/context/locale.ts +22 -0
  149. package/src/context/menu.ts +26 -0
  150. package/src/context/message.ts +30 -0
  151. package/src/context/notification.ts +29 -0
  152. package/src/context/table.ts +32 -0
  153. package/src/context/theme.ts +35 -0
  154. package/src/hooks/index.ts +6 -0
  155. package/src/hooks/useAdmin.ts +0 -0
  156. package/src/hooks/useForm.ts +272 -0
  157. package/src/hooks/useLayout.ts +300 -0
  158. package/src/hooks/useProviderContext.ts +47 -0
  159. package/src/hooks/useTable.ts +241 -0
  160. package/src/hooks/useThemeOverrides.ts +18 -0
  161. package/src/hooks/useUpload.ts +82 -0
  162. package/src/index.ts +59 -0
  163. package/src/share/compact.ts +35 -0
  164. package/src/share/index.ts +2 -0
  165. package/src/share/menu.ts +0 -0
  166. package/src/share/route.ts +0 -0
  167. package/src/share/slot.ts +29 -0
  168. package/src/utils/form.ts +0 -0
  169. package/src/utils/index.ts +0 -0
  170. package/src/utils/transformRoutes.ts +163 -0
  171. package/src/utils/tree.ts +31 -0
@@ -0,0 +1,1288 @@
1
+ import { ButtonProps, GridProps, GridItemProps, FormRules, FormInst } from 'naive-ui';
2
+ import { Recordable } from '../../const';
3
+ import { Props } from './props';
4
+ import { nextTick, ComponentInternalInstance, CSSProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
5
+ import { FormSchema, FormProps } from '../form';
6
+ import { LabelAlign, LabelPlacement, Size, FormValidateMessages } from 'naive-ui/es/form/src/interface';
7
+ import { Theme } from 'naive-ui/es/_mixins';
8
+ import { ExtractThemeOverrides } from 'naive-ui/es/_mixins/use-theme';
9
+ import { OnCleanup } from '@vue/reactivity';
10
+ /**
11
+ * 提交搜索请求
12
+ *
13
+ * 校验内部表单并返回过滤后的字段值,同时触发外部 `submit` 事件。
14
+ *
15
+ * @param e - 原生点击/提交事件
16
+ * @returns 成功时返回过滤后的表单数据对象;失败或未挂载时返回 `false`
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * await handleSubmit()
21
+ * ```
22
+ *
23
+ * @remarks
24
+ * - 内部调用 `QuiForm.validate()` 保证校验一致性
25
+ * - 使用 `loadingSub` 控制提交按钮 loading 状态
26
+ */
27
+ declare function handleSubmit(e?: Event): Promise<object | boolean>;
28
+ /**
29
+ * 重置搜索条件
30
+ *
31
+ * 调用内部表单的重置逻辑,并根据 `submitOnReset` 配置决定是否立即提交一次。
32
+ *
33
+ * @returns 无返回值
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * resetFields()
38
+ * ```
39
+ *
40
+ * @remarks
41
+ * - 当 `submitOnReset` 为 `true` 时,重置后调用 `handleSubmit`
42
+ */
43
+ declare function resetFields(): Promise<void>;
44
+ /**
45
+ * 展开搜索栏
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * expandedBar()
50
+ * ```
51
+ */
52
+ declare function expandedBar(): void;
53
+ /**
54
+ * 收起搜索栏
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * closeBar()
59
+ * ```
60
+ */
61
+ declare function closeBar(): void;
62
+ /**
63
+ * 获取去除空值的表单字段
64
+ *
65
+ * 过滤 `null/undefined` 字段,避免将无效条件提交至后端。
66
+ *
67
+ * @returns 仅包含有效值的表单对象
68
+ */
69
+ declare function getFilteredFieldsValue(): Recordable;
70
+ declare function __VLS_template(): {
71
+ attrs: Partial<{}>;
72
+ slots: Readonly<Record<string, any>> & Record<string, any>;
73
+ refs: {
74
+ formRef: ({
75
+ $: ComponentInternalInstance;
76
+ $data: {};
77
+ $props: {
78
+ readonly schemas: FormSchema<Recordable<string>>[];
79
+ readonly disabled?: boolean | undefined;
80
+ readonly labelWidth?: number | string | undefined;
81
+ readonly labelPlacement?: "top" | "left" | undefined;
82
+ readonly inline?: boolean | undefined;
83
+ readonly size?: "small" | "medium" | "large" | undefined;
84
+ readonly isFull?: boolean | undefined;
85
+ readonly gridProps?: GridProps | undefined;
86
+ readonly gridStyle?: CSSProperties | undefined;
87
+ readonly giProps?: GridItemProps | undefined;
88
+ readonly onReset?: (() => any) | undefined;
89
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
90
+ $attrs: {
91
+ [x: string]: unknown;
92
+ };
93
+ $refs: {
94
+ [x: string]: unknown;
95
+ } & {
96
+ formElRef: CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
97
+ readonly inline: BooleanConstructor;
98
+ readonly labelWidth: PropType<number | string>;
99
+ readonly labelAlign: PropType< LabelAlign>;
100
+ readonly labelPlacement: {
101
+ readonly type: PropType< LabelPlacement>;
102
+ readonly default: "top";
103
+ };
104
+ readonly model: {
105
+ readonly type: PropType<Record<string, any>>;
106
+ readonly default: () => void;
107
+ };
108
+ readonly rules: PropType< FormRules>;
109
+ readonly disabled: BooleanConstructor;
110
+ readonly size: PropType< Size>;
111
+ readonly showRequireMark: {
112
+ readonly type: PropType<boolean | undefined>;
113
+ readonly default: undefined;
114
+ };
115
+ readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
116
+ readonly showFeedback: {
117
+ readonly type: BooleanConstructor;
118
+ readonly default: true;
119
+ };
120
+ readonly onSubmit: {
121
+ readonly type: PropType<(e: Event) => void>;
122
+ readonly default: (e: Event) => void;
123
+ };
124
+ readonly showLabel: {
125
+ readonly type: PropType<boolean | undefined>;
126
+ readonly default: undefined;
127
+ };
128
+ readonly validateMessages: PropType<Partial< FormValidateMessages>>;
129
+ readonly theme: PropType< Theme<"Form", {
130
+ blankHeightSmall: string;
131
+ blankHeightMedium: string;
132
+ blankHeightLarge: string;
133
+ lineHeight: string;
134
+ labelTextColor: string;
135
+ asteriskColor: string;
136
+ feedbackTextColorError: string;
137
+ feedbackTextColorWarning: string;
138
+ feedbackTextColor: string;
139
+ feedbackPadding: string;
140
+ feedbackHeightSmall: string;
141
+ feedbackHeightMedium: string;
142
+ feedbackHeightLarge: string;
143
+ feedbackFontSizeSmall: string;
144
+ feedbackFontSizeMedium: string;
145
+ feedbackFontSizeLarge: string;
146
+ labelFontSizeLeftSmall: string;
147
+ labelFontSizeLeftMedium: string;
148
+ labelFontSizeLeftLarge: string;
149
+ labelFontSizeTopSmall: string;
150
+ labelFontSizeTopMedium: string;
151
+ labelFontSizeTopLarge: string;
152
+ labelHeightSmall: string;
153
+ labelHeightMedium: string;
154
+ labelHeightLarge: string;
155
+ labelPaddingVertical: string;
156
+ labelPaddingHorizontal: string;
157
+ labelTextAlignVertical: string;
158
+ labelTextAlignHorizontal: string;
159
+ labelFontWeight: string;
160
+ }, any>>;
161
+ readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
162
+ blankHeightSmall: string;
163
+ blankHeightMedium: string;
164
+ blankHeightLarge: string;
165
+ lineHeight: string;
166
+ labelTextColor: string;
167
+ asteriskColor: string;
168
+ feedbackTextColorError: string;
169
+ feedbackTextColorWarning: string;
170
+ feedbackTextColor: string;
171
+ feedbackPadding: string;
172
+ feedbackHeightSmall: string;
173
+ feedbackHeightMedium: string;
174
+ feedbackHeightLarge: string;
175
+ feedbackFontSizeSmall: string;
176
+ feedbackFontSizeMedium: string;
177
+ feedbackFontSizeLarge: string;
178
+ labelFontSizeLeftSmall: string;
179
+ labelFontSizeLeftMedium: string;
180
+ labelFontSizeLeftLarge: string;
181
+ labelFontSizeTopSmall: string;
182
+ labelFontSizeTopMedium: string;
183
+ labelFontSizeTopLarge: string;
184
+ labelHeightSmall: string;
185
+ labelHeightMedium: string;
186
+ labelHeightLarge: string;
187
+ labelPaddingVertical: string;
188
+ labelPaddingHorizontal: string;
189
+ labelTextAlignVertical: string;
190
+ labelTextAlignHorizontal: string;
191
+ labelFontWeight: string;
192
+ }, any>>>;
193
+ readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
194
+ blankHeightSmall: string;
195
+ blankHeightMedium: string;
196
+ blankHeightLarge: string;
197
+ lineHeight: string;
198
+ labelTextColor: string;
199
+ asteriskColor: string;
200
+ feedbackTextColorError: string;
201
+ feedbackTextColorWarning: string;
202
+ feedbackTextColor: string;
203
+ feedbackPadding: string;
204
+ feedbackHeightSmall: string;
205
+ feedbackHeightMedium: string;
206
+ feedbackHeightLarge: string;
207
+ feedbackFontSizeSmall: string;
208
+ feedbackFontSizeMedium: string;
209
+ feedbackFontSizeLarge: string;
210
+ labelFontSizeLeftSmall: string;
211
+ labelFontSizeLeftMedium: string;
212
+ labelFontSizeLeftLarge: string;
213
+ labelFontSizeTopSmall: string;
214
+ labelFontSizeTopMedium: string;
215
+ labelFontSizeTopLarge: string;
216
+ labelHeightSmall: string;
217
+ labelHeightMedium: string;
218
+ labelHeightLarge: string;
219
+ labelPaddingVertical: string;
220
+ labelPaddingHorizontal: string;
221
+ labelTextAlignVertical: string;
222
+ labelTextAlignHorizontal: string;
223
+ labelFontWeight: string;
224
+ }, any>>>;
225
+ }>> & Readonly<{}>, FormInst & {
226
+ mergedClsPrefix: Ref<string, string>;
227
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
228
+ readonly inline: boolean;
229
+ readonly disabled: boolean;
230
+ readonly onSubmit: (e: Event) => void;
231
+ readonly labelPlacement: LabelPlacement;
232
+ readonly model: Record<string, any>;
233
+ readonly showRequireMark: boolean | undefined;
234
+ readonly showFeedback: boolean;
235
+ readonly showLabel: boolean | undefined;
236
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
237
+ P: {};
238
+ B: {};
239
+ D: {};
240
+ C: {};
241
+ M: {};
242
+ Defaults: {};
243
+ }, Readonly<globalThis.ExtractPropTypes<{
244
+ readonly inline: BooleanConstructor;
245
+ readonly labelWidth: PropType<number | string>;
246
+ readonly labelAlign: PropType< LabelAlign>;
247
+ readonly labelPlacement: {
248
+ readonly type: PropType< LabelPlacement>;
249
+ readonly default: "top";
250
+ };
251
+ readonly model: {
252
+ readonly type: PropType<Record<string, any>>;
253
+ readonly default: () => void;
254
+ };
255
+ readonly rules: PropType< FormRules>;
256
+ readonly disabled: BooleanConstructor;
257
+ readonly size: PropType< Size>;
258
+ readonly showRequireMark: {
259
+ readonly type: PropType<boolean | undefined>;
260
+ readonly default: undefined;
261
+ };
262
+ readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
263
+ readonly showFeedback: {
264
+ readonly type: BooleanConstructor;
265
+ readonly default: true;
266
+ };
267
+ readonly onSubmit: {
268
+ readonly type: PropType<(e: Event) => void>;
269
+ readonly default: (e: Event) => void;
270
+ };
271
+ readonly showLabel: {
272
+ readonly type: PropType<boolean | undefined>;
273
+ readonly default: undefined;
274
+ };
275
+ readonly validateMessages: PropType<Partial< FormValidateMessages>>;
276
+ readonly theme: PropType< Theme<"Form", {
277
+ blankHeightSmall: string;
278
+ blankHeightMedium: string;
279
+ blankHeightLarge: string;
280
+ lineHeight: string;
281
+ labelTextColor: string;
282
+ asteriskColor: string;
283
+ feedbackTextColorError: string;
284
+ feedbackTextColorWarning: string;
285
+ feedbackTextColor: string;
286
+ feedbackPadding: string;
287
+ feedbackHeightSmall: string;
288
+ feedbackHeightMedium: string;
289
+ feedbackHeightLarge: string;
290
+ feedbackFontSizeSmall: string;
291
+ feedbackFontSizeMedium: string;
292
+ feedbackFontSizeLarge: string;
293
+ labelFontSizeLeftSmall: string;
294
+ labelFontSizeLeftMedium: string;
295
+ labelFontSizeLeftLarge: string;
296
+ labelFontSizeTopSmall: string;
297
+ labelFontSizeTopMedium: string;
298
+ labelFontSizeTopLarge: string;
299
+ labelHeightSmall: string;
300
+ labelHeightMedium: string;
301
+ labelHeightLarge: string;
302
+ labelPaddingVertical: string;
303
+ labelPaddingHorizontal: string;
304
+ labelTextAlignVertical: string;
305
+ labelTextAlignHorizontal: string;
306
+ labelFontWeight: string;
307
+ }, any>>;
308
+ readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
309
+ blankHeightSmall: string;
310
+ blankHeightMedium: string;
311
+ blankHeightLarge: string;
312
+ lineHeight: string;
313
+ labelTextColor: string;
314
+ asteriskColor: string;
315
+ feedbackTextColorError: string;
316
+ feedbackTextColorWarning: string;
317
+ feedbackTextColor: string;
318
+ feedbackPadding: string;
319
+ feedbackHeightSmall: string;
320
+ feedbackHeightMedium: string;
321
+ feedbackHeightLarge: string;
322
+ feedbackFontSizeSmall: string;
323
+ feedbackFontSizeMedium: string;
324
+ feedbackFontSizeLarge: string;
325
+ labelFontSizeLeftSmall: string;
326
+ labelFontSizeLeftMedium: string;
327
+ labelFontSizeLeftLarge: string;
328
+ labelFontSizeTopSmall: string;
329
+ labelFontSizeTopMedium: string;
330
+ labelFontSizeTopLarge: string;
331
+ labelHeightSmall: string;
332
+ labelHeightMedium: string;
333
+ labelHeightLarge: string;
334
+ labelPaddingVertical: string;
335
+ labelPaddingHorizontal: string;
336
+ labelTextAlignVertical: string;
337
+ labelTextAlignHorizontal: string;
338
+ labelFontWeight: string;
339
+ }, any>>>;
340
+ readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
341
+ blankHeightSmall: string;
342
+ blankHeightMedium: string;
343
+ blankHeightLarge: string;
344
+ lineHeight: string;
345
+ labelTextColor: string;
346
+ asteriskColor: string;
347
+ feedbackTextColorError: string;
348
+ feedbackTextColorWarning: string;
349
+ feedbackTextColor: string;
350
+ feedbackPadding: string;
351
+ feedbackHeightSmall: string;
352
+ feedbackHeightMedium: string;
353
+ feedbackHeightLarge: string;
354
+ feedbackFontSizeSmall: string;
355
+ feedbackFontSizeMedium: string;
356
+ feedbackFontSizeLarge: string;
357
+ labelFontSizeLeftSmall: string;
358
+ labelFontSizeLeftMedium: string;
359
+ labelFontSizeLeftLarge: string;
360
+ labelFontSizeTopSmall: string;
361
+ labelFontSizeTopMedium: string;
362
+ labelFontSizeTopLarge: string;
363
+ labelHeightSmall: string;
364
+ labelHeightMedium: string;
365
+ labelHeightLarge: string;
366
+ labelPaddingVertical: string;
367
+ labelPaddingHorizontal: string;
368
+ labelTextAlignVertical: string;
369
+ labelTextAlignHorizontal: string;
370
+ labelFontWeight: string;
371
+ }, any>>>;
372
+ }>> & Readonly<{}>, FormInst & {
373
+ mergedClsPrefix: Ref<string, string>;
374
+ }, {}, {}, {}, {
375
+ readonly inline: boolean;
376
+ readonly disabled: boolean;
377
+ readonly onSubmit: (e: Event) => void;
378
+ readonly labelPlacement: LabelPlacement;
379
+ readonly model: Record<string, any>;
380
+ readonly showRequireMark: boolean | undefined;
381
+ readonly showFeedback: boolean;
382
+ readonly showLabel: boolean | undefined;
383
+ }> | null;
384
+ };
385
+ $slots: Readonly<{
386
+ [name: string]: globalThis.Slot | undefined;
387
+ }>;
388
+ $root: ComponentPublicInstance | null;
389
+ $parent: ComponentPublicInstance | null;
390
+ $host: Element | null;
391
+ $emit: (event: "reset") => void;
392
+ $el: any;
393
+ $options: ComponentOptionsBase<Readonly< FormProps> & Readonly<{
394
+ onReset?: (() => any) | undefined;
395
+ }>, {
396
+ validate: () => Promise<void>;
397
+ resetFields: () => Promise<void>;
398
+ clearValidate: () => Promise<void>;
399
+ getFieldsValue: () => Recordable;
400
+ setFieldsValue(values: Recordable): void;
401
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
402
+ reset: () => any;
403
+ }, string, {
404
+ disabled: boolean;
405
+ size: "small" | "medium" | "large";
406
+ inline: boolean;
407
+ labelWidth: number | string;
408
+ labelPlacement: "top" | "left";
409
+ isFull: boolean;
410
+ gridProps: GridProps;
411
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
412
+ beforeCreate?: (() => void) | (() => void)[];
413
+ created?: (() => void) | (() => void)[];
414
+ beforeMount?: (() => void) | (() => void)[];
415
+ mounted?: (() => void) | (() => void)[];
416
+ beforeUpdate?: (() => void) | (() => void)[];
417
+ updated?: (() => void) | (() => void)[];
418
+ activated?: (() => void) | (() => void)[];
419
+ deactivated?: (() => void) | (() => void)[];
420
+ beforeDestroy?: (() => void) | (() => void)[];
421
+ beforeUnmount?: (() => void) | (() => void)[];
422
+ destroyed?: (() => void) | (() => void)[];
423
+ unmounted?: (() => void) | (() => void)[];
424
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
425
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
426
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
427
+ };
428
+ $forceUpdate: () => void;
429
+ $nextTick: typeof nextTick;
430
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
431
+ } & Readonly<{
432
+ disabled: boolean;
433
+ size: "small" | "medium" | "large";
434
+ inline: boolean;
435
+ labelWidth: number | string;
436
+ labelPlacement: "top" | "left";
437
+ isFull: boolean;
438
+ gridProps: GridProps;
439
+ }> & Omit<Readonly< FormProps> & Readonly<{
440
+ onReset?: (() => any) | undefined;
441
+ }>, "validate" | "resetFields" | "clearValidate" | "getFieldsValue" | "setFieldsValue" | ("disabled" | "size" | "inline" | "labelWidth" | "labelPlacement" | "isFull" | "gridProps")> & ShallowUnwrapRef<{
442
+ validate: () => Promise<void>;
443
+ resetFields: () => Promise<void>;
444
+ clearValidate: () => Promise<void>;
445
+ getFieldsValue: () => Recordable;
446
+ setFieldsValue(values: Recordable): void;
447
+ }> & {} & ComponentCustomProperties & {} & {
448
+ $slots: Partial<Record<string, (_: {
449
+ model: Recordable;
450
+ field: string;
451
+ value: any;
452
+ }) => any>> & Partial<Record<string, (_: {
453
+ model: Recordable;
454
+ field: string;
455
+ value: any;
456
+ }) => any>> & {
457
+ 'action-button'?(_: {
458
+ model: Recordable;
459
+ }): any;
460
+ };
461
+ }) | null;
462
+ };
463
+ rootEl: any;
464
+ };
465
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
466
+ declare const __VLS_component: DefineComponent<Props, {
467
+ getFormRef: () => ({
468
+ $: ComponentInternalInstance;
469
+ $data: {};
470
+ $props: {
471
+ readonly schemas: FormSchema<Recordable<string>>[];
472
+ readonly disabled?: boolean | undefined;
473
+ readonly labelWidth?: number | string | undefined;
474
+ readonly labelPlacement?: "top" | "left" | undefined;
475
+ readonly inline?: boolean | undefined;
476
+ readonly size?: "small" | "medium" | "large" | undefined;
477
+ readonly isFull?: boolean | undefined;
478
+ readonly gridProps?: GridProps | undefined;
479
+ readonly gridStyle?: CSSProperties | undefined;
480
+ readonly giProps?: GridItemProps | undefined;
481
+ readonly onReset?: (() => any) | undefined;
482
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
483
+ $attrs: {
484
+ [x: string]: unknown;
485
+ };
486
+ $refs: {
487
+ [x: string]: unknown;
488
+ } & {
489
+ formElRef: CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
490
+ readonly inline: BooleanConstructor;
491
+ readonly labelWidth: PropType<number | string>;
492
+ readonly labelAlign: PropType< LabelAlign>;
493
+ readonly labelPlacement: {
494
+ readonly type: PropType< LabelPlacement>;
495
+ readonly default: "top";
496
+ };
497
+ readonly model: {
498
+ readonly type: PropType<Record<string, any>>;
499
+ readonly default: () => void;
500
+ };
501
+ readonly rules: PropType< FormRules>;
502
+ readonly disabled: BooleanConstructor;
503
+ readonly size: PropType< Size>;
504
+ readonly showRequireMark: {
505
+ readonly type: PropType<boolean | undefined>;
506
+ readonly default: undefined;
507
+ };
508
+ readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
509
+ readonly showFeedback: {
510
+ readonly type: BooleanConstructor;
511
+ readonly default: true;
512
+ };
513
+ readonly onSubmit: {
514
+ readonly type: PropType<(e: Event) => void>;
515
+ readonly default: (e: Event) => void;
516
+ };
517
+ readonly showLabel: {
518
+ readonly type: PropType<boolean | undefined>;
519
+ readonly default: undefined;
520
+ };
521
+ readonly validateMessages: PropType<Partial< FormValidateMessages>>;
522
+ readonly theme: PropType< Theme<"Form", {
523
+ blankHeightSmall: string;
524
+ blankHeightMedium: string;
525
+ blankHeightLarge: string;
526
+ lineHeight: string;
527
+ labelTextColor: string;
528
+ asteriskColor: string;
529
+ feedbackTextColorError: string;
530
+ feedbackTextColorWarning: string;
531
+ feedbackTextColor: string;
532
+ feedbackPadding: string;
533
+ feedbackHeightSmall: string;
534
+ feedbackHeightMedium: string;
535
+ feedbackHeightLarge: string;
536
+ feedbackFontSizeSmall: string;
537
+ feedbackFontSizeMedium: string;
538
+ feedbackFontSizeLarge: string;
539
+ labelFontSizeLeftSmall: string;
540
+ labelFontSizeLeftMedium: string;
541
+ labelFontSizeLeftLarge: string;
542
+ labelFontSizeTopSmall: string;
543
+ labelFontSizeTopMedium: string;
544
+ labelFontSizeTopLarge: string;
545
+ labelHeightSmall: string;
546
+ labelHeightMedium: string;
547
+ labelHeightLarge: string;
548
+ labelPaddingVertical: string;
549
+ labelPaddingHorizontal: string;
550
+ labelTextAlignVertical: string;
551
+ labelTextAlignHorizontal: string;
552
+ labelFontWeight: string;
553
+ }, any>>;
554
+ readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
555
+ blankHeightSmall: string;
556
+ blankHeightMedium: string;
557
+ blankHeightLarge: string;
558
+ lineHeight: string;
559
+ labelTextColor: string;
560
+ asteriskColor: string;
561
+ feedbackTextColorError: string;
562
+ feedbackTextColorWarning: string;
563
+ feedbackTextColor: string;
564
+ feedbackPadding: string;
565
+ feedbackHeightSmall: string;
566
+ feedbackHeightMedium: string;
567
+ feedbackHeightLarge: string;
568
+ feedbackFontSizeSmall: string;
569
+ feedbackFontSizeMedium: string;
570
+ feedbackFontSizeLarge: string;
571
+ labelFontSizeLeftSmall: string;
572
+ labelFontSizeLeftMedium: string;
573
+ labelFontSizeLeftLarge: string;
574
+ labelFontSizeTopSmall: string;
575
+ labelFontSizeTopMedium: string;
576
+ labelFontSizeTopLarge: string;
577
+ labelHeightSmall: string;
578
+ labelHeightMedium: string;
579
+ labelHeightLarge: string;
580
+ labelPaddingVertical: string;
581
+ labelPaddingHorizontal: string;
582
+ labelTextAlignVertical: string;
583
+ labelTextAlignHorizontal: string;
584
+ labelFontWeight: string;
585
+ }, any>>>;
586
+ readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
587
+ blankHeightSmall: string;
588
+ blankHeightMedium: string;
589
+ blankHeightLarge: string;
590
+ lineHeight: string;
591
+ labelTextColor: string;
592
+ asteriskColor: string;
593
+ feedbackTextColorError: string;
594
+ feedbackTextColorWarning: string;
595
+ feedbackTextColor: string;
596
+ feedbackPadding: string;
597
+ feedbackHeightSmall: string;
598
+ feedbackHeightMedium: string;
599
+ feedbackHeightLarge: string;
600
+ feedbackFontSizeSmall: string;
601
+ feedbackFontSizeMedium: string;
602
+ feedbackFontSizeLarge: string;
603
+ labelFontSizeLeftSmall: string;
604
+ labelFontSizeLeftMedium: string;
605
+ labelFontSizeLeftLarge: string;
606
+ labelFontSizeTopSmall: string;
607
+ labelFontSizeTopMedium: string;
608
+ labelFontSizeTopLarge: string;
609
+ labelHeightSmall: string;
610
+ labelHeightMedium: string;
611
+ labelHeightLarge: string;
612
+ labelPaddingVertical: string;
613
+ labelPaddingHorizontal: string;
614
+ labelTextAlignVertical: string;
615
+ labelTextAlignHorizontal: string;
616
+ labelFontWeight: string;
617
+ }, any>>>;
618
+ }>> & Readonly<{}>, FormInst & {
619
+ mergedClsPrefix: Ref<string, string>;
620
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
621
+ readonly inline: boolean;
622
+ readonly disabled: boolean;
623
+ readonly onSubmit: (e: Event) => void;
624
+ readonly labelPlacement: LabelPlacement;
625
+ readonly model: Record<string, any>;
626
+ readonly showRequireMark: boolean | undefined;
627
+ readonly showFeedback: boolean;
628
+ readonly showLabel: boolean | undefined;
629
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
630
+ P: {};
631
+ B: {};
632
+ D: {};
633
+ C: {};
634
+ M: {};
635
+ Defaults: {};
636
+ }, Readonly<globalThis.ExtractPropTypes<{
637
+ readonly inline: BooleanConstructor;
638
+ readonly labelWidth: PropType<number | string>;
639
+ readonly labelAlign: PropType< LabelAlign>;
640
+ readonly labelPlacement: {
641
+ readonly type: PropType< LabelPlacement>;
642
+ readonly default: "top";
643
+ };
644
+ readonly model: {
645
+ readonly type: PropType<Record<string, any>>;
646
+ readonly default: () => void;
647
+ };
648
+ readonly rules: PropType< FormRules>;
649
+ readonly disabled: BooleanConstructor;
650
+ readonly size: PropType< Size>;
651
+ readonly showRequireMark: {
652
+ readonly type: PropType<boolean | undefined>;
653
+ readonly default: undefined;
654
+ };
655
+ readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
656
+ readonly showFeedback: {
657
+ readonly type: BooleanConstructor;
658
+ readonly default: true;
659
+ };
660
+ readonly onSubmit: {
661
+ readonly type: PropType<(e: Event) => void>;
662
+ readonly default: (e: Event) => void;
663
+ };
664
+ readonly showLabel: {
665
+ readonly type: PropType<boolean | undefined>;
666
+ readonly default: undefined;
667
+ };
668
+ readonly validateMessages: PropType<Partial< FormValidateMessages>>;
669
+ readonly theme: PropType< Theme<"Form", {
670
+ blankHeightSmall: string;
671
+ blankHeightMedium: string;
672
+ blankHeightLarge: string;
673
+ lineHeight: string;
674
+ labelTextColor: string;
675
+ asteriskColor: string;
676
+ feedbackTextColorError: string;
677
+ feedbackTextColorWarning: string;
678
+ feedbackTextColor: string;
679
+ feedbackPadding: string;
680
+ feedbackHeightSmall: string;
681
+ feedbackHeightMedium: string;
682
+ feedbackHeightLarge: string;
683
+ feedbackFontSizeSmall: string;
684
+ feedbackFontSizeMedium: string;
685
+ feedbackFontSizeLarge: string;
686
+ labelFontSizeLeftSmall: string;
687
+ labelFontSizeLeftMedium: string;
688
+ labelFontSizeLeftLarge: string;
689
+ labelFontSizeTopSmall: string;
690
+ labelFontSizeTopMedium: string;
691
+ labelFontSizeTopLarge: string;
692
+ labelHeightSmall: string;
693
+ labelHeightMedium: string;
694
+ labelHeightLarge: string;
695
+ labelPaddingVertical: string;
696
+ labelPaddingHorizontal: string;
697
+ labelTextAlignVertical: string;
698
+ labelTextAlignHorizontal: string;
699
+ labelFontWeight: string;
700
+ }, any>>;
701
+ readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
702
+ blankHeightSmall: string;
703
+ blankHeightMedium: string;
704
+ blankHeightLarge: string;
705
+ lineHeight: string;
706
+ labelTextColor: string;
707
+ asteriskColor: string;
708
+ feedbackTextColorError: string;
709
+ feedbackTextColorWarning: string;
710
+ feedbackTextColor: string;
711
+ feedbackPadding: string;
712
+ feedbackHeightSmall: string;
713
+ feedbackHeightMedium: string;
714
+ feedbackHeightLarge: string;
715
+ feedbackFontSizeSmall: string;
716
+ feedbackFontSizeMedium: string;
717
+ feedbackFontSizeLarge: string;
718
+ labelFontSizeLeftSmall: string;
719
+ labelFontSizeLeftMedium: string;
720
+ labelFontSizeLeftLarge: string;
721
+ labelFontSizeTopSmall: string;
722
+ labelFontSizeTopMedium: string;
723
+ labelFontSizeTopLarge: string;
724
+ labelHeightSmall: string;
725
+ labelHeightMedium: string;
726
+ labelHeightLarge: string;
727
+ labelPaddingVertical: string;
728
+ labelPaddingHorizontal: string;
729
+ labelTextAlignVertical: string;
730
+ labelTextAlignHorizontal: string;
731
+ labelFontWeight: string;
732
+ }, any>>>;
733
+ readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
734
+ blankHeightSmall: string;
735
+ blankHeightMedium: string;
736
+ blankHeightLarge: string;
737
+ lineHeight: string;
738
+ labelTextColor: string;
739
+ asteriskColor: string;
740
+ feedbackTextColorError: string;
741
+ feedbackTextColorWarning: string;
742
+ feedbackTextColor: string;
743
+ feedbackPadding: string;
744
+ feedbackHeightSmall: string;
745
+ feedbackHeightMedium: string;
746
+ feedbackHeightLarge: string;
747
+ feedbackFontSizeSmall: string;
748
+ feedbackFontSizeMedium: string;
749
+ feedbackFontSizeLarge: string;
750
+ labelFontSizeLeftSmall: string;
751
+ labelFontSizeLeftMedium: string;
752
+ labelFontSizeLeftLarge: string;
753
+ labelFontSizeTopSmall: string;
754
+ labelFontSizeTopMedium: string;
755
+ labelFontSizeTopLarge: string;
756
+ labelHeightSmall: string;
757
+ labelHeightMedium: string;
758
+ labelHeightLarge: string;
759
+ labelPaddingVertical: string;
760
+ labelPaddingHorizontal: string;
761
+ labelTextAlignVertical: string;
762
+ labelTextAlignHorizontal: string;
763
+ labelFontWeight: string;
764
+ }, any>>>;
765
+ }>> & Readonly<{}>, FormInst & {
766
+ mergedClsPrefix: Ref<string, string>;
767
+ }, {}, {}, {}, {
768
+ readonly inline: boolean;
769
+ readonly disabled: boolean;
770
+ readonly onSubmit: (e: Event) => void;
771
+ readonly labelPlacement: LabelPlacement;
772
+ readonly model: Record<string, any>;
773
+ readonly showRequireMark: boolean | undefined;
774
+ readonly showFeedback: boolean;
775
+ readonly showLabel: boolean | undefined;
776
+ }> | null;
777
+ };
778
+ $slots: Readonly<{
779
+ [name: string]: globalThis.Slot | undefined;
780
+ }>;
781
+ $root: ComponentPublicInstance | null;
782
+ $parent: ComponentPublicInstance | null;
783
+ $host: Element | null;
784
+ $emit: (event: "reset") => void;
785
+ $el: any;
786
+ $options: ComponentOptionsBase<Readonly< FormProps> & Readonly<{
787
+ onReset?: (() => any) | undefined;
788
+ }>, {
789
+ validate: () => Promise<void>;
790
+ resetFields: () => Promise<void>;
791
+ clearValidate: () => Promise<void>;
792
+ getFieldsValue: () => Recordable;
793
+ setFieldsValue(values: Recordable): void;
794
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
795
+ reset: () => any;
796
+ }, string, {
797
+ disabled: boolean;
798
+ size: "small" | "medium" | "large";
799
+ inline: boolean;
800
+ labelWidth: number | string;
801
+ labelPlacement: "top" | "left";
802
+ isFull: boolean;
803
+ gridProps: GridProps;
804
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
805
+ beforeCreate?: (() => void) | (() => void)[];
806
+ created?: (() => void) | (() => void)[];
807
+ beforeMount?: (() => void) | (() => void)[];
808
+ mounted?: (() => void) | (() => void)[];
809
+ beforeUpdate?: (() => void) | (() => void)[];
810
+ updated?: (() => void) | (() => void)[];
811
+ activated?: (() => void) | (() => void)[];
812
+ deactivated?: (() => void) | (() => void)[];
813
+ beforeDestroy?: (() => void) | (() => void)[];
814
+ beforeUnmount?: (() => void) | (() => void)[];
815
+ destroyed?: (() => void) | (() => void)[];
816
+ unmounted?: (() => void) | (() => void)[];
817
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
818
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
819
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
820
+ };
821
+ $forceUpdate: () => void;
822
+ $nextTick: typeof nextTick;
823
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
824
+ } & Readonly<{
825
+ disabled: boolean;
826
+ size: "small" | "medium" | "large";
827
+ inline: boolean;
828
+ labelWidth: number | string;
829
+ labelPlacement: "top" | "left";
830
+ isFull: boolean;
831
+ gridProps: GridProps;
832
+ }> & Omit<Readonly< FormProps> & Readonly<{
833
+ onReset?: (() => any) | undefined;
834
+ }>, "validate" | "resetFields" | "clearValidate" | "getFieldsValue" | "setFieldsValue" | ("disabled" | "size" | "inline" | "labelWidth" | "labelPlacement" | "isFull" | "gridProps")> & ShallowUnwrapRef<{
835
+ validate: () => Promise<void>;
836
+ resetFields: () => Promise<void>;
837
+ clearValidate: () => Promise<void>;
838
+ getFieldsValue: () => Recordable;
839
+ setFieldsValue(values: Recordable): void;
840
+ }> & {} & ComponentCustomProperties & {} & {
841
+ $slots: Partial<Record<string, (_: {
842
+ model: Recordable;
843
+ field: string;
844
+ value: any;
845
+ }) => any>> & Partial<Record<string, (_: {
846
+ model: Recordable;
847
+ field: string;
848
+ value: any;
849
+ }) => any>> & {
850
+ 'action-button'?(_: {
851
+ model: Recordable;
852
+ }): any;
853
+ };
854
+ }) | undefined;
855
+ getFieldsValue: typeof getFilteredFieldsValue;
856
+ submit: typeof handleSubmit;
857
+ reset: typeof resetFields;
858
+ expandedBar: typeof expandedBar;
859
+ closeBar: typeof closeBar;
860
+ /**
861
+ * 设置搜索数据并自动展开
862
+ *
863
+ * @param data - 需要写入的搜索条件键值对
864
+ */
865
+ setSearchData: (data: Recordable) => Promise<void>;
866
+ resetFields: typeof resetFields;
867
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
868
+ submit: (data: any) => any;
869
+ reset: () => any;
870
+ "update:expanded": (value: boolean) => any;
871
+ }, string, PublicProps, Readonly<Props> & Readonly<{
872
+ onSubmit?: ((data: any) => any) | undefined;
873
+ onReset?: (() => any) | undefined;
874
+ "onUpdate:expanded"?: ((value: boolean) => any) | undefined;
875
+ }>, {
876
+ size: "small" | "medium" | "large";
877
+ title: string;
878
+ inline: boolean;
879
+ labelWidth: number | string;
880
+ labelPlacement: "top" | "left";
881
+ isFull: boolean;
882
+ gridProps: GridProps;
883
+ showActionButtonGroup: boolean;
884
+ showResetButton: boolean;
885
+ resetButtonOptions: ButtonProps;
886
+ showSubmitButton: boolean;
887
+ submitButtonOptions: ButtonProps;
888
+ showAdvancedButton: boolean;
889
+ expanded: boolean;
890
+ submitButtonText: string;
891
+ resetButtonText: string;
892
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
893
+ formRef: ({
894
+ $: ComponentInternalInstance;
895
+ $data: {};
896
+ $props: {
897
+ readonly schemas: FormSchema<Recordable<string>>[];
898
+ readonly disabled?: boolean | undefined;
899
+ readonly labelWidth?: number | string | undefined;
900
+ readonly labelPlacement?: "top" | "left" | undefined;
901
+ readonly inline?: boolean | undefined;
902
+ readonly size?: "small" | "medium" | "large" | undefined;
903
+ readonly isFull?: boolean | undefined;
904
+ readonly gridProps?: GridProps | undefined;
905
+ readonly gridStyle?: CSSProperties | undefined;
906
+ readonly giProps?: GridItemProps | undefined;
907
+ readonly onReset?: (() => any) | undefined;
908
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
909
+ $attrs: {
910
+ [x: string]: unknown;
911
+ };
912
+ $refs: {
913
+ [x: string]: unknown;
914
+ } & {
915
+ formElRef: CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
916
+ readonly inline: BooleanConstructor;
917
+ readonly labelWidth: PropType<number | string>;
918
+ readonly labelAlign: PropType< LabelAlign>;
919
+ readonly labelPlacement: {
920
+ readonly type: PropType< LabelPlacement>;
921
+ readonly default: "top";
922
+ };
923
+ readonly model: {
924
+ readonly type: PropType<Record<string, any>>;
925
+ readonly default: () => void;
926
+ };
927
+ readonly rules: PropType< FormRules>;
928
+ readonly disabled: BooleanConstructor;
929
+ readonly size: PropType< Size>;
930
+ readonly showRequireMark: {
931
+ readonly type: PropType<boolean | undefined>;
932
+ readonly default: undefined;
933
+ };
934
+ readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
935
+ readonly showFeedback: {
936
+ readonly type: BooleanConstructor;
937
+ readonly default: true;
938
+ };
939
+ readonly onSubmit: {
940
+ readonly type: PropType<(e: Event) => void>;
941
+ readonly default: (e: Event) => void;
942
+ };
943
+ readonly showLabel: {
944
+ readonly type: PropType<boolean | undefined>;
945
+ readonly default: undefined;
946
+ };
947
+ readonly validateMessages: PropType<Partial< FormValidateMessages>>;
948
+ readonly theme: PropType< Theme<"Form", {
949
+ blankHeightSmall: string;
950
+ blankHeightMedium: string;
951
+ blankHeightLarge: string;
952
+ lineHeight: string;
953
+ labelTextColor: string;
954
+ asteriskColor: string;
955
+ feedbackTextColorError: string;
956
+ feedbackTextColorWarning: string;
957
+ feedbackTextColor: string;
958
+ feedbackPadding: string;
959
+ feedbackHeightSmall: string;
960
+ feedbackHeightMedium: string;
961
+ feedbackHeightLarge: string;
962
+ feedbackFontSizeSmall: string;
963
+ feedbackFontSizeMedium: string;
964
+ feedbackFontSizeLarge: string;
965
+ labelFontSizeLeftSmall: string;
966
+ labelFontSizeLeftMedium: string;
967
+ labelFontSizeLeftLarge: string;
968
+ labelFontSizeTopSmall: string;
969
+ labelFontSizeTopMedium: string;
970
+ labelFontSizeTopLarge: string;
971
+ labelHeightSmall: string;
972
+ labelHeightMedium: string;
973
+ labelHeightLarge: string;
974
+ labelPaddingVertical: string;
975
+ labelPaddingHorizontal: string;
976
+ labelTextAlignVertical: string;
977
+ labelTextAlignHorizontal: string;
978
+ labelFontWeight: string;
979
+ }, any>>;
980
+ readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
981
+ blankHeightSmall: string;
982
+ blankHeightMedium: string;
983
+ blankHeightLarge: string;
984
+ lineHeight: string;
985
+ labelTextColor: string;
986
+ asteriskColor: string;
987
+ feedbackTextColorError: string;
988
+ feedbackTextColorWarning: string;
989
+ feedbackTextColor: string;
990
+ feedbackPadding: string;
991
+ feedbackHeightSmall: string;
992
+ feedbackHeightMedium: string;
993
+ feedbackHeightLarge: string;
994
+ feedbackFontSizeSmall: string;
995
+ feedbackFontSizeMedium: string;
996
+ feedbackFontSizeLarge: string;
997
+ labelFontSizeLeftSmall: string;
998
+ labelFontSizeLeftMedium: string;
999
+ labelFontSizeLeftLarge: string;
1000
+ labelFontSizeTopSmall: string;
1001
+ labelFontSizeTopMedium: string;
1002
+ labelFontSizeTopLarge: string;
1003
+ labelHeightSmall: string;
1004
+ labelHeightMedium: string;
1005
+ labelHeightLarge: string;
1006
+ labelPaddingVertical: string;
1007
+ labelPaddingHorizontal: string;
1008
+ labelTextAlignVertical: string;
1009
+ labelTextAlignHorizontal: string;
1010
+ labelFontWeight: string;
1011
+ }, any>>>;
1012
+ readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
1013
+ blankHeightSmall: string;
1014
+ blankHeightMedium: string;
1015
+ blankHeightLarge: string;
1016
+ lineHeight: string;
1017
+ labelTextColor: string;
1018
+ asteriskColor: string;
1019
+ feedbackTextColorError: string;
1020
+ feedbackTextColorWarning: string;
1021
+ feedbackTextColor: string;
1022
+ feedbackPadding: string;
1023
+ feedbackHeightSmall: string;
1024
+ feedbackHeightMedium: string;
1025
+ feedbackHeightLarge: string;
1026
+ feedbackFontSizeSmall: string;
1027
+ feedbackFontSizeMedium: string;
1028
+ feedbackFontSizeLarge: string;
1029
+ labelFontSizeLeftSmall: string;
1030
+ labelFontSizeLeftMedium: string;
1031
+ labelFontSizeLeftLarge: string;
1032
+ labelFontSizeTopSmall: string;
1033
+ labelFontSizeTopMedium: string;
1034
+ labelFontSizeTopLarge: string;
1035
+ labelHeightSmall: string;
1036
+ labelHeightMedium: string;
1037
+ labelHeightLarge: string;
1038
+ labelPaddingVertical: string;
1039
+ labelPaddingHorizontal: string;
1040
+ labelTextAlignVertical: string;
1041
+ labelTextAlignHorizontal: string;
1042
+ labelFontWeight: string;
1043
+ }, any>>>;
1044
+ }>> & Readonly<{}>, FormInst & {
1045
+ mergedClsPrefix: Ref<string, string>;
1046
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1047
+ readonly inline: boolean;
1048
+ readonly disabled: boolean;
1049
+ readonly onSubmit: (e: Event) => void;
1050
+ readonly labelPlacement: LabelPlacement;
1051
+ readonly model: Record<string, any>;
1052
+ readonly showRequireMark: boolean | undefined;
1053
+ readonly showFeedback: boolean;
1054
+ readonly showLabel: boolean | undefined;
1055
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1056
+ P: {};
1057
+ B: {};
1058
+ D: {};
1059
+ C: {};
1060
+ M: {};
1061
+ Defaults: {};
1062
+ }, Readonly<globalThis.ExtractPropTypes<{
1063
+ readonly inline: BooleanConstructor;
1064
+ readonly labelWidth: PropType<number | string>;
1065
+ readonly labelAlign: PropType< LabelAlign>;
1066
+ readonly labelPlacement: {
1067
+ readonly type: PropType< LabelPlacement>;
1068
+ readonly default: "top";
1069
+ };
1070
+ readonly model: {
1071
+ readonly type: PropType<Record<string, any>>;
1072
+ readonly default: () => void;
1073
+ };
1074
+ readonly rules: PropType< FormRules>;
1075
+ readonly disabled: BooleanConstructor;
1076
+ readonly size: PropType< Size>;
1077
+ readonly showRequireMark: {
1078
+ readonly type: PropType<boolean | undefined>;
1079
+ readonly default: undefined;
1080
+ };
1081
+ readonly requireMarkPlacement: PropType<"left" | "right" | "right-hanging">;
1082
+ readonly showFeedback: {
1083
+ readonly type: BooleanConstructor;
1084
+ readonly default: true;
1085
+ };
1086
+ readonly onSubmit: {
1087
+ readonly type: PropType<(e: Event) => void>;
1088
+ readonly default: (e: Event) => void;
1089
+ };
1090
+ readonly showLabel: {
1091
+ readonly type: PropType<boolean | undefined>;
1092
+ readonly default: undefined;
1093
+ };
1094
+ readonly validateMessages: PropType<Partial< FormValidateMessages>>;
1095
+ readonly theme: PropType< Theme<"Form", {
1096
+ blankHeightSmall: string;
1097
+ blankHeightMedium: string;
1098
+ blankHeightLarge: string;
1099
+ lineHeight: string;
1100
+ labelTextColor: string;
1101
+ asteriskColor: string;
1102
+ feedbackTextColorError: string;
1103
+ feedbackTextColorWarning: string;
1104
+ feedbackTextColor: string;
1105
+ feedbackPadding: string;
1106
+ feedbackHeightSmall: string;
1107
+ feedbackHeightMedium: string;
1108
+ feedbackHeightLarge: string;
1109
+ feedbackFontSizeSmall: string;
1110
+ feedbackFontSizeMedium: string;
1111
+ feedbackFontSizeLarge: string;
1112
+ labelFontSizeLeftSmall: string;
1113
+ labelFontSizeLeftMedium: string;
1114
+ labelFontSizeLeftLarge: string;
1115
+ labelFontSizeTopSmall: string;
1116
+ labelFontSizeTopMedium: string;
1117
+ labelFontSizeTopLarge: string;
1118
+ labelHeightSmall: string;
1119
+ labelHeightMedium: string;
1120
+ labelHeightLarge: string;
1121
+ labelPaddingVertical: string;
1122
+ labelPaddingHorizontal: string;
1123
+ labelTextAlignVertical: string;
1124
+ labelTextAlignHorizontal: string;
1125
+ labelFontWeight: string;
1126
+ }, any>>;
1127
+ readonly themeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
1128
+ blankHeightSmall: string;
1129
+ blankHeightMedium: string;
1130
+ blankHeightLarge: string;
1131
+ lineHeight: string;
1132
+ labelTextColor: string;
1133
+ asteriskColor: string;
1134
+ feedbackTextColorError: string;
1135
+ feedbackTextColorWarning: string;
1136
+ feedbackTextColor: string;
1137
+ feedbackPadding: string;
1138
+ feedbackHeightSmall: string;
1139
+ feedbackHeightMedium: string;
1140
+ feedbackHeightLarge: string;
1141
+ feedbackFontSizeSmall: string;
1142
+ feedbackFontSizeMedium: string;
1143
+ feedbackFontSizeLarge: string;
1144
+ labelFontSizeLeftSmall: string;
1145
+ labelFontSizeLeftMedium: string;
1146
+ labelFontSizeLeftLarge: string;
1147
+ labelFontSizeTopSmall: string;
1148
+ labelFontSizeTopMedium: string;
1149
+ labelFontSizeTopLarge: string;
1150
+ labelHeightSmall: string;
1151
+ labelHeightMedium: string;
1152
+ labelHeightLarge: string;
1153
+ labelPaddingVertical: string;
1154
+ labelPaddingHorizontal: string;
1155
+ labelTextAlignVertical: string;
1156
+ labelTextAlignHorizontal: string;
1157
+ labelFontWeight: string;
1158
+ }, any>>>;
1159
+ readonly builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Form", {
1160
+ blankHeightSmall: string;
1161
+ blankHeightMedium: string;
1162
+ blankHeightLarge: string;
1163
+ lineHeight: string;
1164
+ labelTextColor: string;
1165
+ asteriskColor: string;
1166
+ feedbackTextColorError: string;
1167
+ feedbackTextColorWarning: string;
1168
+ feedbackTextColor: string;
1169
+ feedbackPadding: string;
1170
+ feedbackHeightSmall: string;
1171
+ feedbackHeightMedium: string;
1172
+ feedbackHeightLarge: string;
1173
+ feedbackFontSizeSmall: string;
1174
+ feedbackFontSizeMedium: string;
1175
+ feedbackFontSizeLarge: string;
1176
+ labelFontSizeLeftSmall: string;
1177
+ labelFontSizeLeftMedium: string;
1178
+ labelFontSizeLeftLarge: string;
1179
+ labelFontSizeTopSmall: string;
1180
+ labelFontSizeTopMedium: string;
1181
+ labelFontSizeTopLarge: string;
1182
+ labelHeightSmall: string;
1183
+ labelHeightMedium: string;
1184
+ labelHeightLarge: string;
1185
+ labelPaddingVertical: string;
1186
+ labelPaddingHorizontal: string;
1187
+ labelTextAlignVertical: string;
1188
+ labelTextAlignHorizontal: string;
1189
+ labelFontWeight: string;
1190
+ }, any>>>;
1191
+ }>> & Readonly<{}>, FormInst & {
1192
+ mergedClsPrefix: Ref<string, string>;
1193
+ }, {}, {}, {}, {
1194
+ readonly inline: boolean;
1195
+ readonly disabled: boolean;
1196
+ readonly onSubmit: (e: Event) => void;
1197
+ readonly labelPlacement: LabelPlacement;
1198
+ readonly model: Record<string, any>;
1199
+ readonly showRequireMark: boolean | undefined;
1200
+ readonly showFeedback: boolean;
1201
+ readonly showLabel: boolean | undefined;
1202
+ }> | null;
1203
+ };
1204
+ $slots: Readonly<{
1205
+ [name: string]: globalThis.Slot | undefined;
1206
+ }>;
1207
+ $root: ComponentPublicInstance | null;
1208
+ $parent: ComponentPublicInstance | null;
1209
+ $host: Element | null;
1210
+ $emit: (event: "reset") => void;
1211
+ $el: any;
1212
+ $options: ComponentOptionsBase<Readonly< FormProps> & Readonly<{
1213
+ onReset?: (() => any) | undefined;
1214
+ }>, {
1215
+ validate: () => Promise<void>;
1216
+ resetFields: () => Promise<void>;
1217
+ clearValidate: () => Promise<void>;
1218
+ getFieldsValue: () => Recordable;
1219
+ setFieldsValue(values: Recordable): void;
1220
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1221
+ reset: () => any;
1222
+ }, string, {
1223
+ disabled: boolean;
1224
+ size: "small" | "medium" | "large";
1225
+ inline: boolean;
1226
+ labelWidth: number | string;
1227
+ labelPlacement: "top" | "left";
1228
+ isFull: boolean;
1229
+ gridProps: GridProps;
1230
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1231
+ beforeCreate?: (() => void) | (() => void)[];
1232
+ created?: (() => void) | (() => void)[];
1233
+ beforeMount?: (() => void) | (() => void)[];
1234
+ mounted?: (() => void) | (() => void)[];
1235
+ beforeUpdate?: (() => void) | (() => void)[];
1236
+ updated?: (() => void) | (() => void)[];
1237
+ activated?: (() => void) | (() => void)[];
1238
+ deactivated?: (() => void) | (() => void)[];
1239
+ beforeDestroy?: (() => void) | (() => void)[];
1240
+ beforeUnmount?: (() => void) | (() => void)[];
1241
+ destroyed?: (() => void) | (() => void)[];
1242
+ unmounted?: (() => void) | (() => void)[];
1243
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1244
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1245
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1246
+ };
1247
+ $forceUpdate: () => void;
1248
+ $nextTick: typeof nextTick;
1249
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1250
+ } & Readonly<{
1251
+ disabled: boolean;
1252
+ size: "small" | "medium" | "large";
1253
+ inline: boolean;
1254
+ labelWidth: number | string;
1255
+ labelPlacement: "top" | "left";
1256
+ isFull: boolean;
1257
+ gridProps: GridProps;
1258
+ }> & Omit<Readonly< FormProps> & Readonly<{
1259
+ onReset?: (() => any) | undefined;
1260
+ }>, "validate" | "resetFields" | "clearValidate" | "getFieldsValue" | "setFieldsValue" | ("disabled" | "size" | "inline" | "labelWidth" | "labelPlacement" | "isFull" | "gridProps")> & ShallowUnwrapRef<{
1261
+ validate: () => Promise<void>;
1262
+ resetFields: () => Promise<void>;
1263
+ clearValidate: () => Promise<void>;
1264
+ getFieldsValue: () => Recordable;
1265
+ setFieldsValue(values: Recordable): void;
1266
+ }> & {} & ComponentCustomProperties & {} & {
1267
+ $slots: Partial<Record<string, (_: {
1268
+ model: Recordable;
1269
+ field: string;
1270
+ value: any;
1271
+ }) => any>> & Partial<Record<string, (_: {
1272
+ model: Recordable;
1273
+ field: string;
1274
+ value: any;
1275
+ }) => any>> & {
1276
+ 'action-button'?(_: {
1277
+ model: Recordable;
1278
+ }): any;
1279
+ };
1280
+ }) | null;
1281
+ }, any>;
1282
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1283
+ export default _default;
1284
+ type __VLS_WithTemplateSlots<T, S> = T & {
1285
+ new (): {
1286
+ $slots: S;
1287
+ };
1288
+ };