@tmagic/form 1.8.0-beta.1 → 1.8.0-beta.2
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/dist/es/Form.vue_vue_type_script_setup_true_lang.js +19 -4
- package/dist/es/containers/Container.vue_vue_type_script_setup_true_lang.js +193 -77
- package/dist/es/containers/GroupList.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/containers/GroupListItem.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/es/containers/Tabs.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/es/containers/table/Table.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/es/index.js +2 -1
- package/dist/es/schema.js +4 -0
- package/dist/es/style.css +4 -1
- package/dist/style.css +4 -1
- package/dist/tmagic-form.umd.cjs +233 -93
- package/package.json +4 -4
- package/src/Form.vue +55 -2
- package/src/containers/Container.vue +174 -52
- package/src/containers/GroupList.vue +1 -1
- package/src/containers/GroupListItem.vue +4 -3
- package/src/containers/Tabs.vue +10 -2
- package/src/containers/table/Table.vue +9 -3
- package/src/schema.ts +47 -0
- package/src/theme/container.scss +4 -1
- package/types/index.d.ts +932 -418
package/types/index.d.ts
CHANGED
|
@@ -1,12 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { App, AppContext, Component, InjectionKey } from "vue";
|
|
2
|
+
import { FlexLayoutConfig, FormItemConfig, GroupListConfig, TableConfig } from "@tmagic/form-schema";
|
|
3
3
|
export * from "@tmagic/form-schema";
|
|
4
4
|
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
6
6
|
declare namespace schema_d_exports {
|
|
7
|
-
export { ChangeRecord, ContainerChangeEventData, ValidateError };
|
|
7
|
+
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FormDiffConfig, FormLabelSlotProps, FormSlots, ValidateError };
|
|
8
8
|
}
|
|
9
9
|
import * as import__tmagic_form_schema from "@tmagic/form-schema";
|
|
10
|
+
/**
|
|
11
|
+
* 对比模式相关配置,由 `MForm` 通过 `provide` 注入,
|
|
12
|
+
* 所有层级的 Container(含嵌套在 fieldset / panel 等容器组件内部的 Container)通过 `inject` 获取,
|
|
13
|
+
* 无需逐层透传 prop。
|
|
14
|
+
*/
|
|
15
|
+
interface FormDiffConfig {
|
|
16
|
+
/**
|
|
17
|
+
* 自定义"是否展示对比内容"的判断函数(仅在对比模式下生效)。
|
|
18
|
+
*
|
|
19
|
+
* - 不传:使用默认逻辑 `!isEqual(curValue, lastValue)`;
|
|
20
|
+
* - 传函数:完全以函数返回值为准,返回 `true` 才展示前后两份对比内容。
|
|
21
|
+
*/
|
|
22
|
+
showDiff?: (_data: {
|
|
23
|
+
curValue: any;
|
|
24
|
+
lastValue: any;
|
|
25
|
+
config: FormItemConfig;
|
|
26
|
+
}) => boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 自定义「自接管对比」的字段类型(仅在对比模式下生效)。
|
|
29
|
+
*
|
|
30
|
+
* - 传数组:在内置类型基础上「追加」这些类型;
|
|
31
|
+
* - 传函数:入参为内置类型数组,返回值作为「最终」完整类型列表(可完全替换内置项)。
|
|
32
|
+
*/
|
|
33
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
34
|
+
}
|
|
35
|
+
declare const FORM_DIFF_CONFIG_KEY: InjectionKey<FormDiffConfig>;
|
|
10
36
|
interface ValidateError {
|
|
11
37
|
message: string;
|
|
12
38
|
field: string;
|
|
@@ -19,6 +45,23 @@ interface ContainerChangeEventData {
|
|
|
19
45
|
modifyKey?: string;
|
|
20
46
|
changeRecords?: ChangeRecord[];
|
|
21
47
|
}
|
|
48
|
+
/** 自定义 label slot 的作用域参数 */
|
|
49
|
+
interface FormLabelSlotProps {
|
|
50
|
+
/** 当前表单项配置 */
|
|
51
|
+
config: FormItemConfig;
|
|
52
|
+
/** 经处理后的类型 */
|
|
53
|
+
type: string;
|
|
54
|
+
/** 经 filterFunction 处理后的 label 文案 */
|
|
55
|
+
text?: string;
|
|
56
|
+
/** 完整字段路径(包含父级前缀) */
|
|
57
|
+
prop: string;
|
|
58
|
+
/** 经 filterFunction 处理后的最终禁用状态 */
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/** Form / Container 暴露的具名 slot 定义 */
|
|
62
|
+
interface FormSlots {
|
|
63
|
+
label(_props: FormLabelSlotProps): any;
|
|
64
|
+
}
|
|
22
65
|
//#endregion
|
|
23
66
|
//#region temp/packages/form/src/submitForm.d.ts
|
|
24
67
|
/**
|
|
@@ -104,6 +147,7 @@ declare const createObjectProp: (prop: string, key: string, name?: string | numb
|
|
|
104
147
|
declare const useAddField: (prop?: string) => void;
|
|
105
148
|
//#endregion
|
|
106
149
|
//#region temp/packages/form/src/Form.vue.d.ts
|
|
150
|
+
type __VLS_Slots$5 = FormSlots;
|
|
107
151
|
type __VLS_Props$30 = {
|
|
108
152
|
/** 表单配置 */config: schema_d_exports.FormConfig; /** 表单值 */
|
|
109
153
|
initValues: Record<string, any>; /** 需对比的值(开启对比模式时传入) */
|
|
@@ -121,8 +165,39 @@ type __VLS_Props$30 = {
|
|
|
121
165
|
popperClass?: string;
|
|
122
166
|
preventSubmitDefault?: boolean;
|
|
123
167
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
168
|
+
/**
|
|
169
|
+
* 自定义"是否展示对比内容"的判断函数(仅在 `isCompare === true` 时生效)。
|
|
170
|
+
*
|
|
171
|
+
* - 不传:使用默认逻辑 `!isEqual(curValue, lastValue)`;
|
|
172
|
+
* - 传函数:完全以函数返回值为准,返回 `true` 才展示前后两份对比内容。
|
|
173
|
+
*
|
|
174
|
+
* 通过 provide 下发给所有层级的 Container(含嵌套在容器组件内部的 Container),
|
|
175
|
+
* 调用方只需在 MForm 这一层传一次即可对整棵表单生效。
|
|
176
|
+
*
|
|
177
|
+
* 典型场景:某些字段语义上相等但结构不同(例如 `code-select` 字段中 `''` 与
|
|
178
|
+
* `{ hookType: 'code', hookData: [] }` 应视为相等),调用方在此处显式声明,
|
|
179
|
+
* 避免被 lodash `isEqual` 误判为差异。
|
|
180
|
+
*/
|
|
181
|
+
showDiff?: (_data: {
|
|
182
|
+
curValue: any;
|
|
183
|
+
lastValue: any;
|
|
184
|
+
config: any;
|
|
185
|
+
}) => boolean;
|
|
186
|
+
/**
|
|
187
|
+
* 自定义「自接管对比」的字段类型(仅在对比模式下生效)。
|
|
188
|
+
*
|
|
189
|
+
* 自接管对比的字段不会渲染前后两份独立组件,而是只渲染一次并由字段组件内部展示前后差异
|
|
190
|
+
* (如 vs-code 使用 monaco diff 编辑器;event-select / code-select-col 等复合字段逐项展示差异)。
|
|
191
|
+
*
|
|
192
|
+
* 支持两种形式:
|
|
193
|
+
* - 传数组:在内置类型基础上「追加」这些类型;
|
|
194
|
+
* - 传函数:入参为内置类型数组,返回值作为「最终」完整列表(可完全替换内置项)。
|
|
195
|
+
*
|
|
196
|
+
* 通过 provide 下发,对整棵表单的所有层级 Container 生效,只需在 MForm 这一层传一次。
|
|
197
|
+
*/
|
|
198
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
124
199
|
};
|
|
125
|
-
declare const
|
|
200
|
+
declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {
|
|
126
201
|
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
127
202
|
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
128
203
|
formState: schema_d_exports.FormState;
|
|
@@ -158,7 +233,13 @@ declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
158
233
|
parentValues: Record<string, any>;
|
|
159
234
|
stepActive: string | number;
|
|
160
235
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
236
|
+
declare const __VLS_export$30: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
161
237
|
declare const _default$12: typeof __VLS_export$30;
|
|
238
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
239
|
+
new (): {
|
|
240
|
+
$slots: S;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
162
243
|
//#endregion
|
|
163
244
|
//#region temp/packages/form/src/FormDialog.vue.d.ts
|
|
164
245
|
type __VLS_Props$29 = {
|
|
@@ -184,107 +265,137 @@ type __VLS_Props$29 = {
|
|
|
184
265
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
185
266
|
};
|
|
186
267
|
declare var __VLS_19: {}, __VLS_34: {}, __VLS_42: {};
|
|
187
|
-
type __VLS_Slots$
|
|
268
|
+
type __VLS_Slots$4 = {} & {
|
|
188
269
|
default?: (props: typeof __VLS_19) => any;
|
|
189
270
|
} & {
|
|
190
271
|
left?: (props: typeof __VLS_34) => any;
|
|
191
272
|
} & {
|
|
192
273
|
footer?: (props: typeof __VLS_42) => any;
|
|
193
274
|
};
|
|
194
|
-
declare const __VLS_base$
|
|
195
|
-
form: import("@vue/reactivity").Ref<
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
275
|
+
declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$29, {
|
|
276
|
+
form: import("@vue/reactivity").Ref<({
|
|
277
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
278
|
+
$data: {};
|
|
279
|
+
$props: {
|
|
280
|
+
readonly config: schema_d_exports.FormConfig;
|
|
281
|
+
readonly initValues: Record<string, any>;
|
|
282
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
283
|
+
readonly isCompare?: boolean | undefined;
|
|
284
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
285
|
+
readonly labelWidth?: string | undefined;
|
|
286
|
+
readonly disabled?: boolean | undefined;
|
|
287
|
+
readonly height?: string | undefined;
|
|
288
|
+
readonly stepActive?: string | number | undefined;
|
|
289
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
290
|
+
readonly inline?: boolean | undefined;
|
|
291
|
+
readonly labelPosition?: string | undefined;
|
|
292
|
+
readonly keyProp?: string | undefined;
|
|
293
|
+
readonly popperClass?: string | undefined;
|
|
294
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
295
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
296
|
+
readonly showDiff?: ((_data: {
|
|
297
|
+
curValue: any;
|
|
298
|
+
lastValue: any;
|
|
299
|
+
config: any;
|
|
300
|
+
}) => boolean) | undefined;
|
|
301
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
302
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
303
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
304
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
305
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
306
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
307
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
308
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
309
|
+
$refs: {
|
|
310
|
+
[x: string]: unknown;
|
|
311
|
+
};
|
|
312
|
+
$slots: Readonly<{
|
|
313
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
314
|
+
}>;
|
|
315
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
316
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
317
|
+
$host: Element | null;
|
|
318
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
319
|
+
$el: any;
|
|
320
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
321
|
+
config: schema_d_exports.FormConfig;
|
|
322
|
+
initValues: Record<string, any>;
|
|
323
|
+
lastValues?: Record<string, any>;
|
|
324
|
+
isCompare?: boolean;
|
|
325
|
+
parentValues?: Record<string, any>;
|
|
326
|
+
labelWidth?: string;
|
|
327
|
+
disabled?: boolean;
|
|
328
|
+
height?: string;
|
|
329
|
+
stepActive?: string | number;
|
|
330
|
+
size?: "small" | "default" | "large";
|
|
331
|
+
inline?: boolean;
|
|
332
|
+
labelPosition?: string;
|
|
333
|
+
keyProp?: string;
|
|
334
|
+
popperClass?: string;
|
|
335
|
+
preventSubmitDefault?: boolean;
|
|
336
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
337
|
+
showDiff?: (_data: {
|
|
338
|
+
curValue: any;
|
|
339
|
+
lastValue: any;
|
|
340
|
+
config: any;
|
|
341
|
+
}) => boolean;
|
|
342
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
343
|
+
}> & Readonly<{
|
|
344
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
345
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
346
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
347
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
348
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
349
|
+
}>, {
|
|
350
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
351
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
352
|
+
formState: schema_d_exports.FormState;
|
|
353
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
354
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
355
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
356
|
+
resetForm: () => void;
|
|
357
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
358
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
359
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
360
|
+
error: (...args: any[]) => void;
|
|
361
|
+
change: (...args: any[]) => void;
|
|
362
|
+
"field-input": (...args: any[]) => void;
|
|
363
|
+
"field-change": (...args: any[]) => void;
|
|
364
|
+
"update:stepActive": (...args: any[]) => void;
|
|
365
|
+
}, string, {
|
|
366
|
+
disabled: boolean;
|
|
367
|
+
labelWidth: string;
|
|
368
|
+
inline: boolean;
|
|
369
|
+
labelPosition: string;
|
|
370
|
+
config: schema_d_exports.FormConfig;
|
|
371
|
+
height: string;
|
|
372
|
+
initValues: Record<string, any>;
|
|
373
|
+
lastValues: Record<string, any>;
|
|
374
|
+
isCompare: boolean;
|
|
375
|
+
keyProp: string;
|
|
376
|
+
parentValues: Record<string, any>;
|
|
377
|
+
stepActive: string | number;
|
|
378
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
379
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
380
|
+
created?: (() => void) | (() => void)[];
|
|
381
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
382
|
+
mounted?: (() => void) | (() => void)[];
|
|
383
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
384
|
+
updated?: (() => void) | (() => void)[];
|
|
385
|
+
activated?: (() => void) | (() => void)[];
|
|
386
|
+
deactivated?: (() => void) | (() => void)[];
|
|
387
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
388
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
389
|
+
destroyed?: (() => void) | (() => void)[];
|
|
390
|
+
unmounted?: (() => void) | (() => void)[];
|
|
391
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
392
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
393
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
394
|
+
};
|
|
395
|
+
$forceUpdate: () => void;
|
|
396
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
397
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
398
|
+
} & Readonly<{
|
|
288
399
|
disabled: boolean;
|
|
289
400
|
labelWidth: string;
|
|
290
401
|
inline: boolean;
|
|
@@ -297,7 +408,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
297
408
|
keyProp: string;
|
|
298
409
|
parentValues: Record<string, any>;
|
|
299
410
|
stepActive: string | number;
|
|
300
|
-
}>
|
|
411
|
+
}> & Omit<Readonly<{
|
|
301
412
|
config: schema_d_exports.FormConfig;
|
|
302
413
|
initValues: Record<string, any>;
|
|
303
414
|
lastValues?: Record<string, any>;
|
|
@@ -314,29 +425,153 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
314
425
|
popperClass?: string;
|
|
315
426
|
preventSubmitDefault?: boolean;
|
|
316
427
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
428
|
+
showDiff?: (_data: {
|
|
429
|
+
curValue: any;
|
|
430
|
+
lastValue: any;
|
|
431
|
+
config: any;
|
|
432
|
+
}) => boolean;
|
|
433
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
317
434
|
}> & Readonly<{
|
|
318
435
|
onError?: ((...args: any[]) => any) | undefined;
|
|
319
436
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
320
437
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
321
438
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
322
439
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
323
|
-
}>, {
|
|
324
|
-
values:
|
|
325
|
-
lastValuesProcessed:
|
|
440
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
|
|
441
|
+
values: schema_d_exports.FormValue;
|
|
442
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
326
443
|
formState: schema_d_exports.FormState;
|
|
327
|
-
initialized:
|
|
328
|
-
changeRecords: import("@
|
|
444
|
+
initialized: boolean;
|
|
445
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
329
446
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
330
447
|
resetForm: () => void;
|
|
331
448
|
submitForm: (native?: boolean) => Promise<any>;
|
|
332
449
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
"
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
450
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
451
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
452
|
+
}) | undefined, ({
|
|
453
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
454
|
+
$data: {};
|
|
455
|
+
$props: {
|
|
456
|
+
readonly config: schema_d_exports.FormConfig;
|
|
457
|
+
readonly initValues: Record<string, any>;
|
|
458
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
459
|
+
readonly isCompare?: boolean | undefined;
|
|
460
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
461
|
+
readonly labelWidth?: string | undefined;
|
|
462
|
+
readonly disabled?: boolean | undefined;
|
|
463
|
+
readonly height?: string | undefined;
|
|
464
|
+
readonly stepActive?: string | number | undefined;
|
|
465
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
466
|
+
readonly inline?: boolean | undefined;
|
|
467
|
+
readonly labelPosition?: string | undefined;
|
|
468
|
+
readonly keyProp?: string | undefined;
|
|
469
|
+
readonly popperClass?: string | undefined;
|
|
470
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
471
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
472
|
+
readonly showDiff?: ((_data: {
|
|
473
|
+
curValue: any;
|
|
474
|
+
lastValue: any;
|
|
475
|
+
config: any;
|
|
476
|
+
}) => boolean) | undefined;
|
|
477
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
478
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
479
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
480
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
481
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
482
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
483
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
484
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
485
|
+
$refs: {
|
|
486
|
+
[x: string]: unknown;
|
|
487
|
+
};
|
|
488
|
+
$slots: Readonly<{
|
|
489
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
490
|
+
}>;
|
|
491
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
492
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
493
|
+
$host: Element | null;
|
|
494
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
495
|
+
$el: any;
|
|
496
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
497
|
+
config: schema_d_exports.FormConfig;
|
|
498
|
+
initValues: Record<string, any>;
|
|
499
|
+
lastValues?: Record<string, any>;
|
|
500
|
+
isCompare?: boolean;
|
|
501
|
+
parentValues?: Record<string, any>;
|
|
502
|
+
labelWidth?: string;
|
|
503
|
+
disabled?: boolean;
|
|
504
|
+
height?: string;
|
|
505
|
+
stepActive?: string | number;
|
|
506
|
+
size?: "small" | "default" | "large";
|
|
507
|
+
inline?: boolean;
|
|
508
|
+
labelPosition?: string;
|
|
509
|
+
keyProp?: string;
|
|
510
|
+
popperClass?: string;
|
|
511
|
+
preventSubmitDefault?: boolean;
|
|
512
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
513
|
+
showDiff?: (_data: {
|
|
514
|
+
curValue: any;
|
|
515
|
+
lastValue: any;
|
|
516
|
+
config: any;
|
|
517
|
+
}) => boolean;
|
|
518
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
519
|
+
}> & Readonly<{
|
|
520
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
521
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
522
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
523
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
524
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
525
|
+
}>, {
|
|
526
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
527
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
528
|
+
formState: schema_d_exports.FormState;
|
|
529
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
530
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
531
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
532
|
+
resetForm: () => void;
|
|
533
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
534
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
535
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
536
|
+
error: (...args: any[]) => void;
|
|
537
|
+
change: (...args: any[]) => void;
|
|
538
|
+
"field-input": (...args: any[]) => void;
|
|
539
|
+
"field-change": (...args: any[]) => void;
|
|
540
|
+
"update:stepActive": (...args: any[]) => void;
|
|
541
|
+
}, string, {
|
|
542
|
+
disabled: boolean;
|
|
543
|
+
labelWidth: string;
|
|
544
|
+
inline: boolean;
|
|
545
|
+
labelPosition: string;
|
|
546
|
+
config: schema_d_exports.FormConfig;
|
|
547
|
+
height: string;
|
|
548
|
+
initValues: Record<string, any>;
|
|
549
|
+
lastValues: Record<string, any>;
|
|
550
|
+
isCompare: boolean;
|
|
551
|
+
keyProp: string;
|
|
552
|
+
parentValues: Record<string, any>;
|
|
553
|
+
stepActive: string | number;
|
|
554
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
555
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
556
|
+
created?: (() => void) | (() => void)[];
|
|
557
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
558
|
+
mounted?: (() => void) | (() => void)[];
|
|
559
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
560
|
+
updated?: (() => void) | (() => void)[];
|
|
561
|
+
activated?: (() => void) | (() => void)[];
|
|
562
|
+
deactivated?: (() => void) | (() => void)[];
|
|
563
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
564
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
565
|
+
destroyed?: (() => void) | (() => void)[];
|
|
566
|
+
unmounted?: (() => void) | (() => void)[];
|
|
567
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
568
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
569
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
570
|
+
};
|
|
571
|
+
$forceUpdate: () => void;
|
|
572
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
573
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
574
|
+
} & Readonly<{
|
|
340
575
|
disabled: boolean;
|
|
341
576
|
labelWidth: string;
|
|
342
577
|
inline: boolean;
|
|
@@ -349,14 +584,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
349
584
|
keyProp: string;
|
|
350
585
|
parentValues: Record<string, any>;
|
|
351
586
|
stepActive: string | number;
|
|
352
|
-
}
|
|
353
|
-
P: {};
|
|
354
|
-
B: {};
|
|
355
|
-
D: {};
|
|
356
|
-
C: {};
|
|
357
|
-
M: {};
|
|
358
|
-
Defaults: {};
|
|
359
|
-
}, Readonly<{
|
|
587
|
+
}> & Omit<Readonly<{
|
|
360
588
|
config: schema_d_exports.FormConfig;
|
|
361
589
|
initValues: Record<string, any>;
|
|
362
590
|
lastValues?: Record<string, any>;
|
|
@@ -373,36 +601,31 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
373
601
|
popperClass?: string;
|
|
374
602
|
preventSubmitDefault?: boolean;
|
|
375
603
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
604
|
+
showDiff?: (_data: {
|
|
605
|
+
curValue: any;
|
|
606
|
+
lastValue: any;
|
|
607
|
+
config: any;
|
|
608
|
+
}) => boolean;
|
|
609
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
376
610
|
}> & Readonly<{
|
|
377
611
|
onError?: ((...args: any[]) => any) | undefined;
|
|
378
612
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
379
613
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
380
614
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
381
615
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
382
|
-
}>, {
|
|
383
|
-
values:
|
|
384
|
-
lastValuesProcessed:
|
|
616
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
|
|
617
|
+
values: schema_d_exports.FormValue;
|
|
618
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
385
619
|
formState: schema_d_exports.FormState;
|
|
386
|
-
initialized:
|
|
387
|
-
changeRecords: import("@
|
|
620
|
+
initialized: boolean;
|
|
621
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
388
622
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
389
623
|
resetForm: () => void;
|
|
390
624
|
submitForm: (native?: boolean) => Promise<any>;
|
|
391
625
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
inline: boolean;
|
|
396
|
-
labelPosition: string;
|
|
397
|
-
config: schema_d_exports.FormConfig;
|
|
398
|
-
height: string;
|
|
399
|
-
initValues: Record<string, any>;
|
|
400
|
-
lastValues: Record<string, any>;
|
|
401
|
-
isCompare: boolean;
|
|
402
|
-
keyProp: string;
|
|
403
|
-
parentValues: Record<string, any>;
|
|
404
|
-
stepActive: string | number;
|
|
405
|
-
}> | undefined>;
|
|
626
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
627
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
628
|
+
}) | undefined>;
|
|
406
629
|
saveFetch: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
407
630
|
dialogVisible: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
408
631
|
cancel: () => void;
|
|
@@ -429,9 +652,9 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
429
652
|
confirmText: string;
|
|
430
653
|
showCancel: boolean;
|
|
431
654
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
432
|
-
declare const __VLS_export$29: __VLS_WithSlots$
|
|
655
|
+
declare const __VLS_export$29: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
433
656
|
declare const _default$14: typeof __VLS_export$29;
|
|
434
|
-
type __VLS_WithSlots$
|
|
657
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
435
658
|
new (): {
|
|
436
659
|
$slots: S;
|
|
437
660
|
};
|
|
@@ -457,54 +680,137 @@ type __VLS_Props$28 = {
|
|
|
457
680
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
458
681
|
};
|
|
459
682
|
declare var __VLS_23: {}, __VLS_38: {}, __VLS_46: {};
|
|
460
|
-
type __VLS_Slots$
|
|
683
|
+
type __VLS_Slots$3 = {} & {
|
|
461
684
|
default?: (props: typeof __VLS_23) => any;
|
|
462
685
|
} & {
|
|
463
686
|
left?: (props: typeof __VLS_38) => any;
|
|
464
687
|
} & {
|
|
465
688
|
footer?: (props: typeof __VLS_46) => any;
|
|
466
689
|
};
|
|
467
|
-
declare const __VLS_base$
|
|
468
|
-
form: import("@vue/reactivity").Ref<
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
690
|
+
declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Props$28, {
|
|
691
|
+
form: import("@vue/reactivity").Ref<({
|
|
692
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
693
|
+
$data: {};
|
|
694
|
+
$props: {
|
|
695
|
+
readonly config: schema_d_exports.FormConfig;
|
|
696
|
+
readonly initValues: Record<string, any>;
|
|
697
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
698
|
+
readonly isCompare?: boolean | undefined;
|
|
699
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
700
|
+
readonly labelWidth?: string | undefined;
|
|
701
|
+
readonly disabled?: boolean | undefined;
|
|
702
|
+
readonly height?: string | undefined;
|
|
703
|
+
readonly stepActive?: string | number | undefined;
|
|
704
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
705
|
+
readonly inline?: boolean | undefined;
|
|
706
|
+
readonly labelPosition?: string | undefined;
|
|
707
|
+
readonly keyProp?: string | undefined;
|
|
708
|
+
readonly popperClass?: string | undefined;
|
|
709
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
710
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
711
|
+
readonly showDiff?: ((_data: {
|
|
712
|
+
curValue: any;
|
|
713
|
+
lastValue: any;
|
|
714
|
+
config: any;
|
|
715
|
+
}) => boolean) | undefined;
|
|
716
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
717
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
718
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
719
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
720
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
721
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
722
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
723
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
724
|
+
$refs: {
|
|
725
|
+
[x: string]: unknown;
|
|
726
|
+
};
|
|
727
|
+
$slots: Readonly<{
|
|
728
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
729
|
+
}>;
|
|
730
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
731
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
732
|
+
$host: Element | null;
|
|
733
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
734
|
+
$el: any;
|
|
735
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
736
|
+
config: schema_d_exports.FormConfig;
|
|
737
|
+
initValues: Record<string, any>;
|
|
738
|
+
lastValues?: Record<string, any>;
|
|
739
|
+
isCompare?: boolean;
|
|
740
|
+
parentValues?: Record<string, any>;
|
|
741
|
+
labelWidth?: string;
|
|
742
|
+
disabled?: boolean;
|
|
743
|
+
height?: string;
|
|
744
|
+
stepActive?: string | number;
|
|
745
|
+
size?: "small" | "default" | "large";
|
|
746
|
+
inline?: boolean;
|
|
747
|
+
labelPosition?: string;
|
|
748
|
+
keyProp?: string;
|
|
749
|
+
popperClass?: string;
|
|
750
|
+
preventSubmitDefault?: boolean;
|
|
751
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
752
|
+
showDiff?: (_data: {
|
|
753
|
+
curValue: any;
|
|
754
|
+
lastValue: any;
|
|
755
|
+
config: any;
|
|
756
|
+
}) => boolean;
|
|
757
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
758
|
+
}> & Readonly<{
|
|
759
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
760
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
761
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
762
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
763
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
764
|
+
}>, {
|
|
765
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
766
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
767
|
+
formState: schema_d_exports.FormState;
|
|
768
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
769
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
770
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
771
|
+
resetForm: () => void;
|
|
772
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
773
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
774
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
775
|
+
error: (...args: any[]) => void;
|
|
776
|
+
change: (...args: any[]) => void;
|
|
777
|
+
"field-input": (...args: any[]) => void;
|
|
778
|
+
"field-change": (...args: any[]) => void;
|
|
779
|
+
"update:stepActive": (...args: any[]) => void;
|
|
780
|
+
}, string, {
|
|
781
|
+
disabled: boolean;
|
|
782
|
+
labelWidth: string;
|
|
783
|
+
inline: boolean;
|
|
784
|
+
labelPosition: string;
|
|
785
|
+
config: schema_d_exports.FormConfig;
|
|
786
|
+
height: string;
|
|
787
|
+
initValues: Record<string, any>;
|
|
788
|
+
lastValues: Record<string, any>;
|
|
789
|
+
isCompare: boolean;
|
|
790
|
+
keyProp: string;
|
|
791
|
+
parentValues: Record<string, any>;
|
|
792
|
+
stepActive: string | number;
|
|
793
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
794
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
795
|
+
created?: (() => void) | (() => void)[];
|
|
796
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
797
|
+
mounted?: (() => void) | (() => void)[];
|
|
798
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
799
|
+
updated?: (() => void) | (() => void)[];
|
|
800
|
+
activated?: (() => void) | (() => void)[];
|
|
801
|
+
deactivated?: (() => void) | (() => void)[];
|
|
802
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
803
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
804
|
+
destroyed?: (() => void) | (() => void)[];
|
|
805
|
+
unmounted?: (() => void) | (() => void)[];
|
|
806
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
807
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
808
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
809
|
+
};
|
|
810
|
+
$forceUpdate: () => void;
|
|
811
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
812
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
813
|
+
} & Readonly<{
|
|
508
814
|
disabled: boolean;
|
|
509
815
|
labelWidth: string;
|
|
510
816
|
inline: boolean;
|
|
@@ -517,14 +823,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
517
823
|
keyProp: string;
|
|
518
824
|
parentValues: Record<string, any>;
|
|
519
825
|
stepActive: string | number;
|
|
520
|
-
}
|
|
521
|
-
P: {};
|
|
522
|
-
B: {};
|
|
523
|
-
D: {};
|
|
524
|
-
C: {};
|
|
525
|
-
M: {};
|
|
526
|
-
Defaults: {};
|
|
527
|
-
}, Readonly<{
|
|
826
|
+
}> & Omit<Readonly<{
|
|
528
827
|
config: schema_d_exports.FormConfig;
|
|
529
828
|
initValues: Record<string, any>;
|
|
530
829
|
lastValues?: Record<string, any>;
|
|
@@ -541,23 +840,153 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
541
840
|
popperClass?: string;
|
|
542
841
|
preventSubmitDefault?: boolean;
|
|
543
842
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
843
|
+
showDiff?: (_data: {
|
|
844
|
+
curValue: any;
|
|
845
|
+
lastValue: any;
|
|
846
|
+
config: any;
|
|
847
|
+
}) => boolean;
|
|
848
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
544
849
|
}> & Readonly<{
|
|
545
850
|
onError?: ((...args: any[]) => any) | undefined;
|
|
546
851
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
547
852
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
548
853
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
549
854
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
550
|
-
}>, {
|
|
551
|
-
values:
|
|
552
|
-
lastValuesProcessed:
|
|
855
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
|
|
856
|
+
values: schema_d_exports.FormValue;
|
|
857
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
553
858
|
formState: schema_d_exports.FormState;
|
|
554
|
-
initialized:
|
|
555
|
-
changeRecords: import("@
|
|
859
|
+
initialized: boolean;
|
|
860
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
556
861
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
557
862
|
resetForm: () => void;
|
|
558
863
|
submitForm: (native?: boolean) => Promise<any>;
|
|
559
864
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
560
|
-
}
|
|
865
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
866
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
867
|
+
}) | undefined, ({
|
|
868
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
869
|
+
$data: {};
|
|
870
|
+
$props: {
|
|
871
|
+
readonly config: schema_d_exports.FormConfig;
|
|
872
|
+
readonly initValues: Record<string, any>;
|
|
873
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
874
|
+
readonly isCompare?: boolean | undefined;
|
|
875
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
876
|
+
readonly labelWidth?: string | undefined;
|
|
877
|
+
readonly disabled?: boolean | undefined;
|
|
878
|
+
readonly height?: string | undefined;
|
|
879
|
+
readonly stepActive?: string | number | undefined;
|
|
880
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
881
|
+
readonly inline?: boolean | undefined;
|
|
882
|
+
readonly labelPosition?: string | undefined;
|
|
883
|
+
readonly keyProp?: string | undefined;
|
|
884
|
+
readonly popperClass?: string | undefined;
|
|
885
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
886
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
887
|
+
readonly showDiff?: ((_data: {
|
|
888
|
+
curValue: any;
|
|
889
|
+
lastValue: any;
|
|
890
|
+
config: any;
|
|
891
|
+
}) => boolean) | undefined;
|
|
892
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
893
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
894
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
895
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
896
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
897
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
898
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
899
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
900
|
+
$refs: {
|
|
901
|
+
[x: string]: unknown;
|
|
902
|
+
};
|
|
903
|
+
$slots: Readonly<{
|
|
904
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
905
|
+
}>;
|
|
906
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
907
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
908
|
+
$host: Element | null;
|
|
909
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
910
|
+
$el: any;
|
|
911
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
912
|
+
config: schema_d_exports.FormConfig;
|
|
913
|
+
initValues: Record<string, any>;
|
|
914
|
+
lastValues?: Record<string, any>;
|
|
915
|
+
isCompare?: boolean;
|
|
916
|
+
parentValues?: Record<string, any>;
|
|
917
|
+
labelWidth?: string;
|
|
918
|
+
disabled?: boolean;
|
|
919
|
+
height?: string;
|
|
920
|
+
stepActive?: string | number;
|
|
921
|
+
size?: "small" | "default" | "large";
|
|
922
|
+
inline?: boolean;
|
|
923
|
+
labelPosition?: string;
|
|
924
|
+
keyProp?: string;
|
|
925
|
+
popperClass?: string;
|
|
926
|
+
preventSubmitDefault?: boolean;
|
|
927
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
928
|
+
showDiff?: (_data: {
|
|
929
|
+
curValue: any;
|
|
930
|
+
lastValue: any;
|
|
931
|
+
config: any;
|
|
932
|
+
}) => boolean;
|
|
933
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
934
|
+
}> & Readonly<{
|
|
935
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
936
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
937
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
938
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
939
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
940
|
+
}>, {
|
|
941
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
942
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
943
|
+
formState: schema_d_exports.FormState;
|
|
944
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
945
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
946
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
947
|
+
resetForm: () => void;
|
|
948
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
949
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
950
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
951
|
+
error: (...args: any[]) => void;
|
|
952
|
+
change: (...args: any[]) => void;
|
|
953
|
+
"field-input": (...args: any[]) => void;
|
|
954
|
+
"field-change": (...args: any[]) => void;
|
|
955
|
+
"update:stepActive": (...args: any[]) => void;
|
|
956
|
+
}, string, {
|
|
957
|
+
disabled: boolean;
|
|
958
|
+
labelWidth: string;
|
|
959
|
+
inline: boolean;
|
|
960
|
+
labelPosition: string;
|
|
961
|
+
config: schema_d_exports.FormConfig;
|
|
962
|
+
height: string;
|
|
963
|
+
initValues: Record<string, any>;
|
|
964
|
+
lastValues: Record<string, any>;
|
|
965
|
+
isCompare: boolean;
|
|
966
|
+
keyProp: string;
|
|
967
|
+
parentValues: Record<string, any>;
|
|
968
|
+
stepActive: string | number;
|
|
969
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
970
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
971
|
+
created?: (() => void) | (() => void)[];
|
|
972
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
973
|
+
mounted?: (() => void) | (() => void)[];
|
|
974
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
975
|
+
updated?: (() => void) | (() => void)[];
|
|
976
|
+
activated?: (() => void) | (() => void)[];
|
|
977
|
+
deactivated?: (() => void) | (() => void)[];
|
|
978
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
979
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
980
|
+
destroyed?: (() => void) | (() => void)[];
|
|
981
|
+
unmounted?: (() => void) | (() => void)[];
|
|
982
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
983
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
984
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
985
|
+
};
|
|
986
|
+
$forceUpdate: () => void;
|
|
987
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
988
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
989
|
+
} & Readonly<{
|
|
561
990
|
disabled: boolean;
|
|
562
991
|
labelWidth: string;
|
|
563
992
|
inline: boolean;
|
|
@@ -570,7 +999,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
570
999
|
keyProp: string;
|
|
571
1000
|
parentValues: Record<string, any>;
|
|
572
1001
|
stepActive: string | number;
|
|
573
|
-
}>
|
|
1002
|
+
}> & Omit<Readonly<{
|
|
574
1003
|
config: schema_d_exports.FormConfig;
|
|
575
1004
|
initValues: Record<string, any>;
|
|
576
1005
|
lastValues?: Record<string, any>;
|
|
@@ -587,95 +1016,31 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
587
1016
|
popperClass?: string;
|
|
588
1017
|
preventSubmitDefault?: boolean;
|
|
589
1018
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1019
|
+
showDiff?: (_data: {
|
|
1020
|
+
curValue: any;
|
|
1021
|
+
lastValue: any;
|
|
1022
|
+
config: any;
|
|
1023
|
+
}) => boolean;
|
|
1024
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
590
1025
|
}> & Readonly<{
|
|
591
1026
|
onError?: ((...args: any[]) => any) | undefined;
|
|
592
1027
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
593
1028
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
594
1029
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
595
1030
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
596
|
-
}>, {
|
|
597
|
-
values:
|
|
598
|
-
lastValuesProcessed:
|
|
1031
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
|
|
1032
|
+
values: schema_d_exports.FormValue;
|
|
1033
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
599
1034
|
formState: schema_d_exports.FormState;
|
|
600
|
-
initialized:
|
|
601
|
-
changeRecords: import("@
|
|
1035
|
+
initialized: boolean;
|
|
1036
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
602
1037
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
603
1038
|
resetForm: () => void;
|
|
604
1039
|
submitForm: (native?: boolean) => Promise<any>;
|
|
605
1040
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
"field-input": (...args: any[]) => void;
|
|
610
|
-
"field-change": (...args: any[]) => void;
|
|
611
|
-
"update:stepActive": (...args: any[]) => void;
|
|
612
|
-
}, import("@vue/runtime-core").PublicProps, {
|
|
613
|
-
disabled: boolean;
|
|
614
|
-
labelWidth: string;
|
|
615
|
-
inline: boolean;
|
|
616
|
-
labelPosition: string;
|
|
617
|
-
config: schema_d_exports.FormConfig;
|
|
618
|
-
height: string;
|
|
619
|
-
initValues: Record<string, any>;
|
|
620
|
-
lastValues: Record<string, any>;
|
|
621
|
-
isCompare: boolean;
|
|
622
|
-
keyProp: string;
|
|
623
|
-
parentValues: Record<string, any>;
|
|
624
|
-
stepActive: string | number;
|
|
625
|
-
}, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
|
|
626
|
-
P: {};
|
|
627
|
-
B: {};
|
|
628
|
-
D: {};
|
|
629
|
-
C: {};
|
|
630
|
-
M: {};
|
|
631
|
-
Defaults: {};
|
|
632
|
-
}, Readonly<{
|
|
633
|
-
config: schema_d_exports.FormConfig;
|
|
634
|
-
initValues: Record<string, any>;
|
|
635
|
-
lastValues?: Record<string, any>;
|
|
636
|
-
isCompare?: boolean;
|
|
637
|
-
parentValues?: Record<string, any>;
|
|
638
|
-
labelWidth?: string;
|
|
639
|
-
disabled?: boolean;
|
|
640
|
-
height?: string;
|
|
641
|
-
stepActive?: string | number;
|
|
642
|
-
size?: "small" | "default" | "large";
|
|
643
|
-
inline?: boolean;
|
|
644
|
-
labelPosition?: string;
|
|
645
|
-
keyProp?: string;
|
|
646
|
-
popperClass?: string;
|
|
647
|
-
preventSubmitDefault?: boolean;
|
|
648
|
-
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
649
|
-
}> & Readonly<{
|
|
650
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
651
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
652
|
-
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
653
|
-
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
654
|
-
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
655
|
-
}>, {
|
|
656
|
-
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
657
|
-
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
658
|
-
formState: schema_d_exports.FormState;
|
|
659
|
-
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
660
|
-
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
661
|
-
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
662
|
-
resetForm: () => void;
|
|
663
|
-
submitForm: (native?: boolean) => Promise<any>;
|
|
664
|
-
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
665
|
-
}, {}, {}, {}, {
|
|
666
|
-
disabled: boolean;
|
|
667
|
-
labelWidth: string;
|
|
668
|
-
inline: boolean;
|
|
669
|
-
labelPosition: string;
|
|
670
|
-
config: schema_d_exports.FormConfig;
|
|
671
|
-
height: string;
|
|
672
|
-
initValues: Record<string, any>;
|
|
673
|
-
lastValues: Record<string, any>;
|
|
674
|
-
isCompare: boolean;
|
|
675
|
-
keyProp: string;
|
|
676
|
-
parentValues: Record<string, any>;
|
|
677
|
-
stepActive: string | number;
|
|
678
|
-
}> | undefined>;
|
|
1041
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
1042
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
1043
|
+
}) | undefined>;
|
|
679
1044
|
saveFetch: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
680
1045
|
bodyHeight: import("@vue/reactivity").Ref<number, number>;
|
|
681
1046
|
show: () => void;
|
|
@@ -703,9 +1068,9 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
703
1068
|
config: schema_d_exports.FormConfig;
|
|
704
1069
|
confirmText: string;
|
|
705
1070
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
706
|
-
declare const __VLS_export$28: __VLS_WithSlots$
|
|
1071
|
+
declare const __VLS_export$28: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
707
1072
|
declare const _default$15: typeof __VLS_export$28;
|
|
708
|
-
type __VLS_WithSlots$
|
|
1073
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
709
1074
|
new (): {
|
|
710
1075
|
$slots: S;
|
|
711
1076
|
};
|
|
@@ -728,107 +1093,137 @@ type __VLS_Props$27 = {
|
|
|
728
1093
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
729
1094
|
};
|
|
730
1095
|
declare var __VLS_16$1: {}, __VLS_18$1: {}, __VLS_20: {};
|
|
731
|
-
type __VLS_Slots$
|
|
1096
|
+
type __VLS_Slots$2 = {} & {
|
|
732
1097
|
default?: (props: typeof __VLS_16$1) => any;
|
|
733
1098
|
} & {
|
|
734
1099
|
left?: (props: typeof __VLS_18$1) => any;
|
|
735
1100
|
} & {
|
|
736
1101
|
footer?: (props: typeof __VLS_20) => any;
|
|
737
1102
|
};
|
|
738
|
-
declare const __VLS_base$
|
|
739
|
-
form: import("@vue/reactivity").Ref<
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
1103
|
+
declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {
|
|
1104
|
+
form: import("@vue/reactivity").Ref<({
|
|
1105
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
1106
|
+
$data: {};
|
|
1107
|
+
$props: {
|
|
1108
|
+
readonly config: schema_d_exports.FormConfig;
|
|
1109
|
+
readonly initValues: Record<string, any>;
|
|
1110
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
1111
|
+
readonly isCompare?: boolean | undefined;
|
|
1112
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
1113
|
+
readonly labelWidth?: string | undefined;
|
|
1114
|
+
readonly disabled?: boolean | undefined;
|
|
1115
|
+
readonly height?: string | undefined;
|
|
1116
|
+
readonly stepActive?: string | number | undefined;
|
|
1117
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
1118
|
+
readonly inline?: boolean | undefined;
|
|
1119
|
+
readonly labelPosition?: string | undefined;
|
|
1120
|
+
readonly keyProp?: string | undefined;
|
|
1121
|
+
readonly popperClass?: string | undefined;
|
|
1122
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
1123
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
1124
|
+
readonly showDiff?: ((_data: {
|
|
1125
|
+
curValue: any;
|
|
1126
|
+
lastValue: any;
|
|
1127
|
+
config: any;
|
|
1128
|
+
}) => boolean) | undefined;
|
|
1129
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
1130
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
1131
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
1132
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
1133
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
1134
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
1135
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
1136
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
1137
|
+
$refs: {
|
|
1138
|
+
[x: string]: unknown;
|
|
1139
|
+
};
|
|
1140
|
+
$slots: Readonly<{
|
|
1141
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
1142
|
+
}>;
|
|
1143
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
1144
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
1145
|
+
$host: Element | null;
|
|
1146
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
1147
|
+
$el: any;
|
|
1148
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
1149
|
+
config: schema_d_exports.FormConfig;
|
|
1150
|
+
initValues: Record<string, any>;
|
|
1151
|
+
lastValues?: Record<string, any>;
|
|
1152
|
+
isCompare?: boolean;
|
|
1153
|
+
parentValues?: Record<string, any>;
|
|
1154
|
+
labelWidth?: string;
|
|
1155
|
+
disabled?: boolean;
|
|
1156
|
+
height?: string;
|
|
1157
|
+
stepActive?: string | number;
|
|
1158
|
+
size?: "small" | "default" | "large";
|
|
1159
|
+
inline?: boolean;
|
|
1160
|
+
labelPosition?: string;
|
|
1161
|
+
keyProp?: string;
|
|
1162
|
+
popperClass?: string;
|
|
1163
|
+
preventSubmitDefault?: boolean;
|
|
1164
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1165
|
+
showDiff?: (_data: {
|
|
1166
|
+
curValue: any;
|
|
1167
|
+
lastValue: any;
|
|
1168
|
+
config: any;
|
|
1169
|
+
}) => boolean;
|
|
1170
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
1171
|
+
}> & Readonly<{
|
|
1172
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
1173
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
1174
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
1175
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
1176
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
1177
|
+
}>, {
|
|
1178
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
1179
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
1180
|
+
formState: schema_d_exports.FormState;
|
|
1181
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
1182
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
1183
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
1184
|
+
resetForm: () => void;
|
|
1185
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
1186
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
1187
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
1188
|
+
error: (...args: any[]) => void;
|
|
1189
|
+
change: (...args: any[]) => void;
|
|
1190
|
+
"field-input": (...args: any[]) => void;
|
|
1191
|
+
"field-change": (...args: any[]) => void;
|
|
1192
|
+
"update:stepActive": (...args: any[]) => void;
|
|
1193
|
+
}, string, {
|
|
1194
|
+
disabled: boolean;
|
|
1195
|
+
labelWidth: string;
|
|
1196
|
+
inline: boolean;
|
|
1197
|
+
labelPosition: string;
|
|
1198
|
+
config: schema_d_exports.FormConfig;
|
|
1199
|
+
height: string;
|
|
1200
|
+
initValues: Record<string, any>;
|
|
1201
|
+
lastValues: Record<string, any>;
|
|
1202
|
+
isCompare: boolean;
|
|
1203
|
+
keyProp: string;
|
|
1204
|
+
parentValues: Record<string, any>;
|
|
1205
|
+
stepActive: string | number;
|
|
1206
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
1207
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1208
|
+
created?: (() => void) | (() => void)[];
|
|
1209
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1210
|
+
mounted?: (() => void) | (() => void)[];
|
|
1211
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1212
|
+
updated?: (() => void) | (() => void)[];
|
|
1213
|
+
activated?: (() => void) | (() => void)[];
|
|
1214
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1215
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1216
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1217
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1218
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1219
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1220
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1221
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1222
|
+
};
|
|
1223
|
+
$forceUpdate: () => void;
|
|
1224
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
1225
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
1226
|
+
} & Readonly<{
|
|
832
1227
|
disabled: boolean;
|
|
833
1228
|
labelWidth: string;
|
|
834
1229
|
inline: boolean;
|
|
@@ -841,7 +1236,7 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
841
1236
|
keyProp: string;
|
|
842
1237
|
parentValues: Record<string, any>;
|
|
843
1238
|
stepActive: string | number;
|
|
844
|
-
}>
|
|
1239
|
+
}> & Omit<Readonly<{
|
|
845
1240
|
config: schema_d_exports.FormConfig;
|
|
846
1241
|
initValues: Record<string, any>;
|
|
847
1242
|
lastValues?: Record<string, any>;
|
|
@@ -858,29 +1253,153 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
858
1253
|
popperClass?: string;
|
|
859
1254
|
preventSubmitDefault?: boolean;
|
|
860
1255
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1256
|
+
showDiff?: (_data: {
|
|
1257
|
+
curValue: any;
|
|
1258
|
+
lastValue: any;
|
|
1259
|
+
config: any;
|
|
1260
|
+
}) => boolean;
|
|
1261
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
861
1262
|
}> & Readonly<{
|
|
862
1263
|
onError?: ((...args: any[]) => any) | undefined;
|
|
863
1264
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
864
1265
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
865
1266
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
866
1267
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
867
|
-
}>, {
|
|
868
|
-
values:
|
|
869
|
-
lastValuesProcessed:
|
|
1268
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
|
|
1269
|
+
values: schema_d_exports.FormValue;
|
|
1270
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
870
1271
|
formState: schema_d_exports.FormState;
|
|
871
|
-
initialized:
|
|
872
|
-
changeRecords: import("@
|
|
1272
|
+
initialized: boolean;
|
|
1273
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
873
1274
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
874
1275
|
resetForm: () => void;
|
|
875
1276
|
submitForm: (native?: boolean) => Promise<any>;
|
|
876
1277
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
"
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
1278
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
1279
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
1280
|
+
}) | undefined, ({
|
|
1281
|
+
$: import("@vue/runtime-core").ComponentInternalInstance;
|
|
1282
|
+
$data: {};
|
|
1283
|
+
$props: {
|
|
1284
|
+
readonly config: schema_d_exports.FormConfig;
|
|
1285
|
+
readonly initValues: Record<string, any>;
|
|
1286
|
+
readonly lastValues?: Record<string, any> | undefined;
|
|
1287
|
+
readonly isCompare?: boolean | undefined;
|
|
1288
|
+
readonly parentValues?: Record<string, any> | undefined;
|
|
1289
|
+
readonly labelWidth?: string | undefined;
|
|
1290
|
+
readonly disabled?: boolean | undefined;
|
|
1291
|
+
readonly height?: string | undefined;
|
|
1292
|
+
readonly stepActive?: string | number | undefined;
|
|
1293
|
+
readonly size?: "small" | "default" | "large" | undefined;
|
|
1294
|
+
readonly inline?: boolean | undefined;
|
|
1295
|
+
readonly labelPosition?: string | undefined;
|
|
1296
|
+
readonly keyProp?: string | undefined;
|
|
1297
|
+
readonly popperClass?: string | undefined;
|
|
1298
|
+
readonly preventSubmitDefault?: boolean | undefined;
|
|
1299
|
+
readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
1300
|
+
readonly showDiff?: ((_data: {
|
|
1301
|
+
curValue: any;
|
|
1302
|
+
lastValue: any;
|
|
1303
|
+
config: any;
|
|
1304
|
+
}) => boolean) | undefined;
|
|
1305
|
+
readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
|
|
1306
|
+
readonly onError?: ((...args: any[]) => any) | undefined;
|
|
1307
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
1308
|
+
readonly "onField-input"?: ((...args: any[]) => any) | undefined;
|
|
1309
|
+
readonly "onField-change"?: ((...args: any[]) => any) | undefined;
|
|
1310
|
+
readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
1311
|
+
} & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
|
|
1312
|
+
$attrs: import("@vue/runtime-core").Attrs;
|
|
1313
|
+
$refs: {
|
|
1314
|
+
[x: string]: unknown;
|
|
1315
|
+
};
|
|
1316
|
+
$slots: Readonly<{
|
|
1317
|
+
[name: string]: import("@vue/runtime-core").Slot<any> | undefined;
|
|
1318
|
+
}>;
|
|
1319
|
+
$root: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
1320
|
+
$parent: import("@vue/runtime-core").ComponentPublicInstance | null;
|
|
1321
|
+
$host: Element | null;
|
|
1322
|
+
$emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
|
|
1323
|
+
$el: any;
|
|
1324
|
+
$options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
|
|
1325
|
+
config: schema_d_exports.FormConfig;
|
|
1326
|
+
initValues: Record<string, any>;
|
|
1327
|
+
lastValues?: Record<string, any>;
|
|
1328
|
+
isCompare?: boolean;
|
|
1329
|
+
parentValues?: Record<string, any>;
|
|
1330
|
+
labelWidth?: string;
|
|
1331
|
+
disabled?: boolean;
|
|
1332
|
+
height?: string;
|
|
1333
|
+
stepActive?: string | number;
|
|
1334
|
+
size?: "small" | "default" | "large";
|
|
1335
|
+
inline?: boolean;
|
|
1336
|
+
labelPosition?: string;
|
|
1337
|
+
keyProp?: string;
|
|
1338
|
+
popperClass?: string;
|
|
1339
|
+
preventSubmitDefault?: boolean;
|
|
1340
|
+
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1341
|
+
showDiff?: (_data: {
|
|
1342
|
+
curValue: any;
|
|
1343
|
+
lastValue: any;
|
|
1344
|
+
config: any;
|
|
1345
|
+
}) => boolean;
|
|
1346
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
1347
|
+
}> & Readonly<{
|
|
1348
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
1349
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
1350
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
1351
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
1352
|
+
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
1353
|
+
}>, {
|
|
1354
|
+
values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
1355
|
+
lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
|
|
1356
|
+
formState: schema_d_exports.FormState;
|
|
1357
|
+
initialized: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
1358
|
+
changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
|
|
1359
|
+
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
1360
|
+
resetForm: () => void;
|
|
1361
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
1362
|
+
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
1363
|
+
}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
1364
|
+
error: (...args: any[]) => void;
|
|
1365
|
+
change: (...args: any[]) => void;
|
|
1366
|
+
"field-input": (...args: any[]) => void;
|
|
1367
|
+
"field-change": (...args: any[]) => void;
|
|
1368
|
+
"update:stepActive": (...args: any[]) => void;
|
|
1369
|
+
}, string, {
|
|
1370
|
+
disabled: boolean;
|
|
1371
|
+
labelWidth: string;
|
|
1372
|
+
inline: boolean;
|
|
1373
|
+
labelPosition: string;
|
|
1374
|
+
config: schema_d_exports.FormConfig;
|
|
1375
|
+
height: string;
|
|
1376
|
+
initValues: Record<string, any>;
|
|
1377
|
+
lastValues: Record<string, any>;
|
|
1378
|
+
isCompare: boolean;
|
|
1379
|
+
keyProp: string;
|
|
1380
|
+
parentValues: Record<string, any>;
|
|
1381
|
+
stepActive: string | number;
|
|
1382
|
+
}, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
|
|
1383
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1384
|
+
created?: (() => void) | (() => void)[];
|
|
1385
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1386
|
+
mounted?: (() => void) | (() => void)[];
|
|
1387
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1388
|
+
updated?: (() => void) | (() => void)[];
|
|
1389
|
+
activated?: (() => void) | (() => void)[];
|
|
1390
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1391
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1392
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1393
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1394
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1395
|
+
renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1396
|
+
renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
|
|
1397
|
+
errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1398
|
+
};
|
|
1399
|
+
$forceUpdate: () => void;
|
|
1400
|
+
$nextTick: typeof import("@vue/runtime-core").nextTick;
|
|
1401
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
|
|
1402
|
+
} & Readonly<{
|
|
884
1403
|
disabled: boolean;
|
|
885
1404
|
labelWidth: string;
|
|
886
1405
|
inline: boolean;
|
|
@@ -893,14 +1412,7 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
893
1412
|
keyProp: string;
|
|
894
1413
|
parentValues: Record<string, any>;
|
|
895
1414
|
stepActive: string | number;
|
|
896
|
-
}
|
|
897
|
-
P: {};
|
|
898
|
-
B: {};
|
|
899
|
-
D: {};
|
|
900
|
-
C: {};
|
|
901
|
-
M: {};
|
|
902
|
-
Defaults: {};
|
|
903
|
-
}, Readonly<{
|
|
1415
|
+
}> & Omit<Readonly<{
|
|
904
1416
|
config: schema_d_exports.FormConfig;
|
|
905
1417
|
initValues: Record<string, any>;
|
|
906
1418
|
lastValues?: Record<string, any>;
|
|
@@ -917,36 +1429,31 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
917
1429
|
popperClass?: string;
|
|
918
1430
|
preventSubmitDefault?: boolean;
|
|
919
1431
|
extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1432
|
+
showDiff?: (_data: {
|
|
1433
|
+
curValue: any;
|
|
1434
|
+
lastValue: any;
|
|
1435
|
+
config: any;
|
|
1436
|
+
}) => boolean;
|
|
1437
|
+
selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
|
|
920
1438
|
}> & Readonly<{
|
|
921
1439
|
onError?: ((...args: any[]) => any) | undefined;
|
|
922
1440
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
923
1441
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
924
1442
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
925
1443
|
"onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
|
|
926
|
-
}>, {
|
|
927
|
-
values:
|
|
928
|
-
lastValuesProcessed:
|
|
1444
|
+
}>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
|
|
1445
|
+
values: schema_d_exports.FormValue;
|
|
1446
|
+
lastValuesProcessed: schema_d_exports.FormValue;
|
|
929
1447
|
formState: schema_d_exports.FormState;
|
|
930
|
-
initialized:
|
|
931
|
-
changeRecords: import("@
|
|
1448
|
+
initialized: boolean;
|
|
1449
|
+
changeRecords: import("@tmagic/editor").ChangeRecord[];
|
|
932
1450
|
changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
|
|
933
1451
|
resetForm: () => void;
|
|
934
1452
|
submitForm: (native?: boolean) => Promise<any>;
|
|
935
1453
|
getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
inline: boolean;
|
|
940
|
-
labelPosition: string;
|
|
941
|
-
config: schema_d_exports.FormConfig;
|
|
942
|
-
height: string;
|
|
943
|
-
initValues: Record<string, any>;
|
|
944
|
-
lastValues: Record<string, any>;
|
|
945
|
-
isCompare: boolean;
|
|
946
|
-
keyProp: string;
|
|
947
|
-
parentValues: Record<string, any>;
|
|
948
|
-
stepActive: string | number;
|
|
949
|
-
}> | undefined>;
|
|
1454
|
+
} & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
|
|
1455
|
+
$slots: import("@tmagic/editor").FormSlots;
|
|
1456
|
+
}) | undefined>;
|
|
950
1457
|
saveFetch: import("@vue/reactivity").Ref<boolean, boolean>;
|
|
951
1458
|
show: () => void;
|
|
952
1459
|
hide: () => void;
|
|
@@ -963,15 +1470,16 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
|
|
|
963
1470
|
config: schema_d_exports.FormConfig;
|
|
964
1471
|
confirmText: string;
|
|
965
1472
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
966
|
-
declare const __VLS_export$27: __VLS_WithSlots$
|
|
1473
|
+
declare const __VLS_export$27: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
967
1474
|
declare const _default$13: typeof __VLS_export$27;
|
|
968
|
-
type __VLS_WithSlots$
|
|
1475
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
969
1476
|
new (): {
|
|
970
1477
|
$slots: S;
|
|
971
1478
|
};
|
|
972
1479
|
};
|
|
973
1480
|
//#endregion
|
|
974
1481
|
//#region temp/packages/form/src/containers/Container.vue.d.ts
|
|
1482
|
+
type __VLS_Slots$1 = FormSlots;
|
|
975
1483
|
type __VLS_Props$26 = {
|
|
976
1484
|
/** 表单值 */model: schema_d_exports.FormValue; /** 需对比的值(开启对比模式时传入) */
|
|
977
1485
|
lastValues?: schema_d_exports.FormValue;
|
|
@@ -984,7 +1492,7 @@ type __VLS_Props$26 = {
|
|
|
984
1492
|
size?: string; /** 是否开启对比模式 */
|
|
985
1493
|
isCompare?: boolean;
|
|
986
1494
|
};
|
|
987
|
-
declare const
|
|
1495
|
+
declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
|
|
988
1496
|
change: (v: any, eventData: ContainerChangeEventData) => any;
|
|
989
1497
|
addDiffCount: () => any;
|
|
990
1498
|
}, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$26> & Readonly<{
|
|
@@ -997,7 +1505,13 @@ declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS
|
|
|
997
1505
|
isCompare: boolean;
|
|
998
1506
|
expandMore: boolean;
|
|
999
1507
|
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
|
|
1508
|
+
declare const __VLS_export$26: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
1000
1509
|
declare const _default$4: typeof __VLS_export$26;
|
|
1510
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
1511
|
+
new (): {
|
|
1512
|
+
$slots: S;
|
|
1513
|
+
};
|
|
1514
|
+
};
|
|
1001
1515
|
//#endregion
|
|
1002
1516
|
//#region temp/packages/form/src/containers/Fieldset.vue.d.ts
|
|
1003
1517
|
type __VLS_Props$25 = {
|
|
@@ -1383,8 +1897,8 @@ declare const _default$31: {
|
|
|
1383
1897
|
install(app: App, opt?: FormInstallOptions): void;
|
|
1384
1898
|
};
|
|
1385
1899
|
declare namespace index_d_exports {
|
|
1386
|
-
export { ChangeRecord, ContainerChangeEventData, FormInstallOptions, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$16 as MTable, _default$16 as MTableGroupList, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
|
|
1900
|
+
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FormDiffConfig, FormInstallOptions, FormLabelSlotProps, FormSlots, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$16 as MTable, _default$16 as MTableGroupList, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
|
|
1387
1901
|
}
|
|
1388
1902
|
declare const createForm: <T extends [] = []>(config: schema_d_exports.FormConfig | T) => schema_d_exports.FormConfig | T;
|
|
1389
1903
|
//#endregion
|
|
1390
|
-
export { ChangeRecord, ContainerChangeEventData, type FormInstallOptions, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$16 as MTable, _default$16 as MTableGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
|
|
1904
|
+
export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FormDiffConfig, type FormInstallOptions, FormLabelSlotProps, FormSlots, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$16 as MTable, _default$16 as MTableGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
|