@tmagic/form 1.5.22 → 1.5.24

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/types/index.d.ts CHANGED
@@ -1,13 +1,10 @@
1
1
  import { App } from 'vue';
2
2
  import * as _tmagic_form_schema from '@tmagic/form-schema';
3
- import { FormState, FormConfig, TabPaneConfig, FormValue, FilterFunction, Rule, ChildConfig, FieldsetConfig, PanelConfig, RowConfig, TabConfig, TableConfig, SortProp, TableColumnConfig, GroupListConfig, FieldProps, TextConfig, NumberConfig, NumberRangeConfig, TextareaConfig, HiddenConfig, DateConfig, DateTimeConfig, TimeConfig, CheckboxConfig, SwitchConfig, DaterangeConfig, ColorPickConfig, CheckboxGroupConfig, RadioGroupConfig, DisplayConfig, LinkConfig, SelectConfig, SelectOption, SelectGroupOption, CascaderConfig, DynamicFieldConfig } from '@tmagic/form-schema';
3
+ import { FormState, FormConfig, TabPaneConfig, FormValue, FilterFunction, Rule, ChildConfig, FieldsetConfig, PanelConfig, RowConfig, TabConfig, TableConfig, GroupListConfig, FieldProps, TextConfig, NumberConfig, NumberRangeConfig, TextareaConfig, HiddenConfig, DateConfig, DateTimeConfig, TimeConfig, CheckboxConfig, SwitchConfig, DaterangeConfig, ColorPickConfig, CheckboxGroupConfig, RadioGroupConfig, DisplayConfig, LinkConfig, SelectConfig, SelectOption, SelectGroupOption, CascaderConfig, DynamicFieldConfig } from '@tmagic/form-schema';
4
4
  export * from '@tmagic/form-schema';
5
5
  import * as _vue_runtime_core from '@vue/runtime-core';
6
6
  import * as _vue_reactivity from '@vue/reactivity';
7
7
  import * as _tmagic_editor from '@tmagic/editor';
8
- import * as _tmagic_design from '@tmagic/design';
9
- import { TMagicButton, TMagicCol, TMagicDialog, TMagicRow, TMagicDrawer, TMagicScrollbar, TMagicCard, TMagicPagination, TMagicTable, TMagicTableColumn, TMagicTooltip, TMagicUpload } from '@tmagic/design';
10
- import { CaretBottom, CaretRight, ArrowDown, ArrowUp, Delete, DocumentCopy, FullScreen, Grid } from '@element-plus/icons-vue';
11
8
 
12
9
  interface ValidateError {
13
10
  message: string;
@@ -24,7 +21,7 @@ interface ContainerChangeEventData {
24
21
 
25
22
  declare const createValues: (mForm: FormState | undefined, config?: FormConfig | TabPaneConfig[], initValue?: FormValue, value?: FormValue) => FormValue;
26
23
  declare const filterFunction: <T = any>(mForm: FormState | undefined, config: T | FilterFunction<T> | undefined, props: any) => T | undefined;
27
- declare const display$1: (mForm: FormState | undefined, config: any, props: any) => any;
24
+ declare const display: (mForm: FormState | undefined, config: any, props: any) => any;
28
25
  declare const getRules: (mForm: FormState | undefined, rules: (Rule[] | Rule) | undefined, props: any) => Rule[];
29
26
  declare const initValue: (mForm: FormState | undefined, { initValues, config }: {
30
27
  initValues: FormValue;
@@ -108,270 +105,16 @@ type __VLS_Props$t = {
108
105
  confirmText?: string;
109
106
  preventSubmitDefault?: boolean;
110
107
  };
111
- declare const form$2: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
112
- config: FormConfig;
113
- initValues: Record<string, any>;
114
- lastValues?: Record<string, any>;
115
- isCompare?: boolean;
116
- parentValues?: Record<string, any>;
117
- labelWidth?: string;
118
- disabled?: boolean;
119
- height?: string;
120
- stepActive?: string | number;
121
- size?: "small" | "default" | "large";
122
- inline?: boolean;
123
- labelPosition?: string;
124
- keyProp?: string;
125
- popperClass?: string;
126
- preventSubmitDefault?: boolean;
127
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
128
- }> & Readonly<{
129
- onChange?: ((...args: any[]) => any) | undefined;
130
- onError?: ((...args: any[]) => any) | undefined;
131
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
132
- "onField-change"?: ((...args: any[]) => any) | undefined;
133
- "onField-input"?: ((...args: any[]) => any) | undefined;
134
- }>, {
135
- values: _vue_reactivity.Ref<FormValue, FormValue>;
136
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
137
- formState: _tmagic_form_schema.FormState;
138
- initialized: _vue_reactivity.Ref<boolean, boolean>;
139
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
140
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
141
- resetForm: () => void;
142
- submitForm: (native?: boolean) => Promise<any>;
143
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
144
- change: (...args: any[]) => void;
145
- error: (...args: any[]) => void;
146
- "update:stepActive": (...args: any[]) => void;
147
- "field-change": (...args: any[]) => void;
148
- "field-input": (...args: any[]) => void;
149
- }, _vue_runtime_core.PublicProps, {
150
- disabled: boolean;
151
- labelWidth: string;
152
- inline: boolean;
153
- labelPosition: string;
154
- config: FormConfig;
155
- height: string;
156
- initValues: Record<string, any>;
157
- lastValues: Record<string, any>;
158
- isCompare: boolean;
159
- keyProp: string;
160
- parentValues: Record<string, any>;
161
- stepActive: string | number;
162
- }, false, {}, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, {}, any, _vue_runtime_core.ComponentProvideOptions, {
163
- P: {};
164
- B: {};
165
- D: {};
166
- C: {};
167
- M: {};
168
- Defaults: {};
169
- }, Readonly<{
170
- config: FormConfig;
171
- initValues: Record<string, any>;
172
- lastValues?: Record<string, any>;
173
- isCompare?: boolean;
174
- parentValues?: Record<string, any>;
175
- labelWidth?: string;
176
- disabled?: boolean;
177
- height?: string;
178
- stepActive?: string | number;
179
- size?: "small" | "default" | "large";
180
- inline?: boolean;
181
- labelPosition?: string;
182
- keyProp?: string;
183
- popperClass?: string;
184
- preventSubmitDefault?: boolean;
185
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
186
- }> & Readonly<{
187
- onChange?: ((...args: any[]) => any) | undefined;
188
- onError?: ((...args: any[]) => any) | undefined;
189
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
190
- "onField-change"?: ((...args: any[]) => any) | undefined;
191
- "onField-input"?: ((...args: any[]) => any) | undefined;
192
- }>, {
193
- values: _vue_reactivity.Ref<FormValue, FormValue>;
194
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
195
- formState: _tmagic_form_schema.FormState;
196
- initialized: _vue_reactivity.Ref<boolean, boolean>;
197
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
198
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
199
- resetForm: () => void;
200
- submitForm: (native?: boolean) => Promise<any>;
201
- }, {}, {}, {}, {
202
- disabled: boolean;
203
- labelWidth: string;
204
- inline: boolean;
205
- labelPosition: string;
206
- config: FormConfig;
207
- height: string;
208
- initValues: Record<string, any>;
209
- lastValues: Record<string, any>;
210
- isCompare: boolean;
211
- keyProp: string;
212
- parentValues: Record<string, any>;
213
- stepActive: string | number;
214
- }> | undefined, _vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
215
- config: FormConfig;
216
- initValues: Record<string, any>;
217
- lastValues?: Record<string, any>;
218
- isCompare?: boolean;
219
- parentValues?: Record<string, any>;
220
- labelWidth?: string;
221
- disabled?: boolean;
222
- height?: string;
223
- stepActive?: string | number;
224
- size?: "small" | "default" | "large";
225
- inline?: boolean;
226
- labelPosition?: string;
227
- keyProp?: string;
228
- popperClass?: string;
229
- preventSubmitDefault?: boolean;
230
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
231
- }> & Readonly<{
232
- onChange?: ((...args: any[]) => any) | undefined;
233
- onError?: ((...args: any[]) => any) | undefined;
234
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
235
- "onField-change"?: ((...args: any[]) => any) | undefined;
236
- "onField-input"?: ((...args: any[]) => any) | undefined;
237
- }>, {
238
- values: _vue_reactivity.Ref<FormValue, FormValue>;
239
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
240
- formState: _tmagic_form_schema.FormState;
241
- initialized: _vue_reactivity.Ref<boolean, boolean>;
242
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
243
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
244
- resetForm: () => void;
245
- submitForm: (native?: boolean) => Promise<any>;
246
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
247
- change: (...args: any[]) => void;
248
- error: (...args: any[]) => void;
249
- "update:stepActive": (...args: any[]) => void;
250
- "field-change": (...args: any[]) => void;
251
- "field-input": (...args: any[]) => void;
252
- }, _vue_runtime_core.PublicProps, {
253
- disabled: boolean;
254
- labelWidth: string;
255
- inline: boolean;
256
- labelPosition: string;
257
- config: FormConfig;
258
- height: string;
259
- initValues: Record<string, any>;
260
- lastValues: Record<string, any>;
261
- isCompare: boolean;
262
- keyProp: string;
263
- parentValues: Record<string, any>;
264
- stepActive: string | number;
265
- }, false, {}, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, {}, any, _vue_runtime_core.ComponentProvideOptions, {
266
- P: {};
267
- B: {};
268
- D: {};
269
- C: {};
270
- M: {};
271
- Defaults: {};
272
- }, Readonly<{
273
- config: FormConfig;
274
- initValues: Record<string, any>;
275
- lastValues?: Record<string, any>;
276
- isCompare?: boolean;
277
- parentValues?: Record<string, any>;
278
- labelWidth?: string;
279
- disabled?: boolean;
280
- height?: string;
281
- stepActive?: string | number;
282
- size?: "small" | "default" | "large";
283
- inline?: boolean;
284
- labelPosition?: string;
285
- keyProp?: string;
286
- popperClass?: string;
287
- preventSubmitDefault?: boolean;
288
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
289
- }> & Readonly<{
290
- onChange?: ((...args: any[]) => any) | undefined;
291
- onError?: ((...args: any[]) => any) | undefined;
292
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
293
- "onField-change"?: ((...args: any[]) => any) | undefined;
294
- "onField-input"?: ((...args: any[]) => any) | undefined;
295
- }>, {
296
- values: _vue_reactivity.Ref<FormValue, FormValue>;
297
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
298
- formState: _tmagic_form_schema.FormState;
299
- initialized: _vue_reactivity.Ref<boolean, boolean>;
300
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
301
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
302
- resetForm: () => void;
303
- submitForm: (native?: boolean) => Promise<any>;
304
- }, {}, {}, {}, {
305
- disabled: boolean;
306
- labelWidth: string;
307
- inline: boolean;
308
- labelPosition: string;
309
- config: FormConfig;
310
- height: string;
311
- initValues: Record<string, any>;
312
- lastValues: Record<string, any>;
313
- isCompare: boolean;
314
- keyProp: string;
315
- parentValues: Record<string, any>;
316
- stepActive: string | number;
317
- }> | undefined>;
318
- declare const dialogVisible: _vue_reactivity.Ref<boolean, boolean>;
319
- declare const saveFetch$2: _vue_reactivity.Ref<boolean, boolean>;
320
- declare const stepActive: _vue_reactivity.Ref<number, number>;
321
- declare const bodyHeight$1: _vue_reactivity.Ref<string, string>;
322
- declare const stepCount: _vue_reactivity.ComputedRef<number>;
323
- declare const hasStep: _vue_reactivity.ComputedRef<boolean>;
324
- declare const closeHandler$1: () => void;
325
- declare const save: () => Promise<void>;
326
- declare const preStep: () => void;
327
- declare const nextStep: () => void;
328
- declare const changeHandler$4: (value: FormValue, eventData: ContainerChangeEventData) => void;
329
- declare const cancel: () => void;
330
- declare const __VLS_ctx$4: InstanceType<__VLS_PickNotAny<typeof __VLS_self$4, new () => {}>>;
331
- declare var __VLS_19: {};
332
- declare var __VLS_29: {};
333
- declare var __VLS_35: {};
334
- type __VLS_Slots$4 = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx$4.$slots> & {
335
- default?: (props: typeof __VLS_19) => any;
108
+ declare var __VLS_19$1: {};
109
+ declare var __VLS_32: {};
110
+ declare var __VLS_39: {};
111
+ type __VLS_Slots$4 = {} & {
112
+ default?: (props: typeof __VLS_19$1) => any;
336
113
  } & {
337
- left?: (props: typeof __VLS_29) => any;
114
+ left?: (props: typeof __VLS_32) => any;
338
115
  } & {
339
- footer?: (props: typeof __VLS_35) => any;
340
- }>;
341
- declare const __VLS_self$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
342
- TMagicButton: typeof TMagicButton;
343
- TMagicCol: typeof TMagicCol;
344
- TMagicDialog: typeof TMagicDialog;
345
- TMagicRow: typeof TMagicRow;
346
- Form: typeof _default$v;
347
- form: typeof form$2;
348
- dialogVisible: typeof dialogVisible;
349
- saveFetch: typeof saveFetch$2;
350
- stepActive: typeof stepActive;
351
- bodyHeight: typeof bodyHeight$1;
352
- stepCount: typeof stepCount;
353
- hasStep: typeof hasStep;
354
- closeHandler: typeof closeHandler$1;
355
- save: typeof save;
356
- preStep: typeof preStep;
357
- nextStep: typeof nextStep;
358
- changeHandler: typeof changeHandler$4;
359
- cancel: typeof cancel;
360
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
361
- change: (...args: any[]) => void;
362
- close: (...args: any[]) => void;
363
- error: (...args: any[]) => void;
364
- submit: (...args: any[]) => void;
365
- }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$t> & Readonly<{
366
- onChange?: ((...args: any[]) => any) | undefined;
367
- onClose?: ((...args: any[]) => any) | undefined;
368
- onError?: ((...args: any[]) => any) | undefined;
369
- onSubmit?: ((...args: any[]) => any) | undefined;
370
- }>, {
371
- values: Object;
372
- config: FormConfig;
373
- confirmText: string;
374
- }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
116
+ footer?: (props: typeof __VLS_39) => any;
117
+ };
375
118
  declare const __VLS_component$4: _vue_runtime_core.DefineComponent<__VLS_Props$t, {
376
119
  form: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
377
120
  config: FormConfig;
@@ -609,456 +352,34 @@ type __VLS_WithSlots$4<T, S> = T & {
609
352
  };
610
353
  };
611
354
 
612
- type __VLS_Props$s = {
613
- config?: FormConfig;
614
- values?: Object;
615
- parentValues?: Object;
616
- width?: string | number;
617
- labelWidth?: string;
618
- disabled?: boolean;
619
- closeOnPressEscape?: boolean;
620
- title?: string;
621
- zIndex?: number;
622
- size?: 'small' | 'default' | 'large';
623
- confirmText?: string;
624
- inline?: boolean;
625
- labelPosition?: string;
626
- preventSubmitDefault?: boolean;
627
- /** 关闭前的回调,会暂停 Drawer 的关闭; done 是个 function type 接受一个 boolean 参数, 执行 done 使用 true 参数或不提供参数将会终止关闭 */
628
- beforeClose?: (_done: (_cancel?: boolean) => void) => void;
629
- };
630
- declare const drawer: _vue_reactivity.Ref<({
631
- $: _vue_runtime_core.ComponentInternalInstance;
632
- $data: {};
633
- $props: {
634
- readonly modelValue?: boolean | undefined;
635
- readonly appendToBody?: boolean | undefined;
636
- readonly beforeClose?: any;
637
- readonly title?: string | undefined;
638
- readonly size?: string | number | undefined;
639
- readonly fullscreen?: boolean | undefined;
640
- readonly closeOnClickModal?: boolean | undefined;
641
- readonly closeOnPressEscape?: boolean | undefined;
642
- readonly direction?: "rtl" | "ltr" | "ttb" | "bt" | undefined;
643
- readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
644
- readonly onClose?: ((...args: any[]) => any) | undefined;
645
- readonly onOpen?: ((...args: any[]) => any) | undefined;
646
- readonly onOpened?: ((...args: any[]) => any) | undefined;
647
- readonly onClosed?: ((...args: any[]) => any) | undefined;
648
- } & _vue_runtime_core.VNodeProps & _vue_runtime_core.AllowedComponentProps & _vue_runtime_core.ComponentCustomProps;
649
- $attrs: {
650
- [x: string]: unknown;
651
- };
652
- $refs: {
653
- [x: string]: unknown;
654
- };
655
- $slots: Readonly<{
656
- [name: string]: _vue_runtime_core.Slot<any> | undefined;
657
- }>;
658
- $root: _vue_runtime_core.ComponentPublicInstance | null;
659
- $parent: _vue_runtime_core.ComponentPublicInstance | null;
660
- $host: Element | null;
661
- $emit: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "close", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "opened", ...args: any[]) => void) & ((event: "closed", ...args: any[]) => void);
662
- $el: any;
663
- $options: _vue_runtime_core.ComponentOptionsBase<Readonly<_tmagic_design.DrawerProps> & Readonly<{
664
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
665
- onClose?: ((...args: any[]) => any) | undefined;
666
- onOpen?: ((...args: any[]) => any) | undefined;
667
- onOpened?: ((...args: any[]) => any) | undefined;
668
- onClosed?: ((...args: any[]) => any) | undefined;
669
- }>, {
670
- handleClose: () => any;
671
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
672
- "update:modelValue": (...args: any[]) => void;
673
- close: (...args: any[]) => void;
674
- open: (...args: any[]) => void;
675
- opened: (...args: any[]) => void;
676
- closed: (...args: any[]) => void;
677
- }, string, {}, {}, string, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, _vue_runtime_core.ComponentProvideOptions> & {
678
- beforeCreate?: (() => void) | (() => void)[];
679
- created?: (() => void) | (() => void)[];
680
- beforeMount?: (() => void) | (() => void)[];
681
- mounted?: (() => void) | (() => void)[];
682
- beforeUpdate?: (() => void) | (() => void)[];
683
- updated?: (() => void) | (() => void)[];
684
- activated?: (() => void) | (() => void)[];
685
- deactivated?: (() => void) | (() => void)[];
686
- beforeDestroy?: (() => void) | (() => void)[];
687
- beforeUnmount?: (() => void) | (() => void)[];
688
- destroyed?: (() => void) | (() => void)[];
689
- unmounted?: (() => void) | (() => void)[];
690
- renderTracked?: ((e: _vue_reactivity.DebuggerEvent) => void) | ((e: _vue_reactivity.DebuggerEvent) => void)[];
691
- renderTriggered?: ((e: _vue_reactivity.DebuggerEvent) => void) | ((e: _vue_reactivity.DebuggerEvent) => void)[];
692
- errorCaptured?: ((err: unknown, instance: _vue_runtime_core.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: _vue_runtime_core.ComponentPublicInstance | null, info: string) => boolean | void)[];
693
- };
694
- $forceUpdate: () => void;
695
- $nextTick: typeof _vue_runtime_core.nextTick;
696
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: _vue_runtime_core.WatchOptions): _vue_reactivity.WatchStopHandle;
697
- } & Readonly<{}> & Omit<Readonly<_tmagic_design.DrawerProps> & Readonly<{
698
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
699
- onClose?: ((...args: any[]) => any) | undefined;
700
- onOpen?: ((...args: any[]) => any) | undefined;
701
- onOpened?: ((...args: any[]) => any) | undefined;
702
- onClosed?: ((...args: any[]) => any) | undefined;
703
- }>, "handleClose"> & _vue_reactivity.ShallowUnwrapRef<{
704
- handleClose: () => any;
705
- }> & {} & _vue_runtime_core.ComponentCustomProperties & {} & {
706
- $slots: {
707
- default?: ((props: {}) => any) | undefined;
708
- header?: ((props: {}) => any) | undefined;
709
- footer?: ((props: {}) => any) | undefined;
710
- };
711
- }) | undefined, ({
712
- $: _vue_runtime_core.ComponentInternalInstance;
713
- $data: {};
714
- $props: {
715
- readonly modelValue?: boolean | undefined;
716
- readonly appendToBody?: boolean | undefined;
717
- readonly beforeClose?: any;
718
- readonly title?: string | undefined;
719
- readonly size?: string | number | undefined;
720
- readonly fullscreen?: boolean | undefined;
721
- readonly closeOnClickModal?: boolean | undefined;
722
- readonly closeOnPressEscape?: boolean | undefined;
723
- readonly direction?: "rtl" | "ltr" | "ttb" | "bt" | undefined;
724
- readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
725
- readonly onClose?: ((...args: any[]) => any) | undefined;
726
- readonly onOpen?: ((...args: any[]) => any) | undefined;
727
- readonly onOpened?: ((...args: any[]) => any) | undefined;
728
- readonly onClosed?: ((...args: any[]) => any) | undefined;
729
- } & _vue_runtime_core.VNodeProps & _vue_runtime_core.AllowedComponentProps & _vue_runtime_core.ComponentCustomProps;
730
- $attrs: {
731
- [x: string]: unknown;
732
- };
733
- $refs: {
734
- [x: string]: unknown;
735
- };
736
- $slots: Readonly<{
737
- [name: string]: _vue_runtime_core.Slot<any> | undefined;
738
- }>;
739
- $root: _vue_runtime_core.ComponentPublicInstance | null;
740
- $parent: _vue_runtime_core.ComponentPublicInstance | null;
741
- $host: Element | null;
742
- $emit: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "close", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void) & ((event: "opened", ...args: any[]) => void) & ((event: "closed", ...args: any[]) => void);
743
- $el: any;
744
- $options: _vue_runtime_core.ComponentOptionsBase<Readonly<_tmagic_design.DrawerProps> & Readonly<{
745
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
746
- onClose?: ((...args: any[]) => any) | undefined;
747
- onOpen?: ((...args: any[]) => any) | undefined;
748
- onOpened?: ((...args: any[]) => any) | undefined;
749
- onClosed?: ((...args: any[]) => any) | undefined;
750
- }>, {
751
- handleClose: () => any;
752
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
753
- "update:modelValue": (...args: any[]) => void;
754
- close: (...args: any[]) => void;
755
- open: (...args: any[]) => void;
756
- opened: (...args: any[]) => void;
757
- closed: (...args: any[]) => void;
758
- }, string, {}, {}, string, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, _vue_runtime_core.ComponentProvideOptions> & {
759
- beforeCreate?: (() => void) | (() => void)[];
760
- created?: (() => void) | (() => void)[];
761
- beforeMount?: (() => void) | (() => void)[];
762
- mounted?: (() => void) | (() => void)[];
763
- beforeUpdate?: (() => void) | (() => void)[];
764
- updated?: (() => void) | (() => void)[];
765
- activated?: (() => void) | (() => void)[];
766
- deactivated?: (() => void) | (() => void)[];
767
- beforeDestroy?: (() => void) | (() => void)[];
768
- beforeUnmount?: (() => void) | (() => void)[];
769
- destroyed?: (() => void) | (() => void)[];
770
- unmounted?: (() => void) | (() => void)[];
771
- renderTracked?: ((e: _vue_reactivity.DebuggerEvent) => void) | ((e: _vue_reactivity.DebuggerEvent) => void)[];
772
- renderTriggered?: ((e: _vue_reactivity.DebuggerEvent) => void) | ((e: _vue_reactivity.DebuggerEvent) => void)[];
773
- errorCaptured?: ((err: unknown, instance: _vue_runtime_core.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: _vue_runtime_core.ComponentPublicInstance | null, info: string) => boolean | void)[];
774
- };
775
- $forceUpdate: () => void;
776
- $nextTick: typeof _vue_runtime_core.nextTick;
777
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: _vue_runtime_core.WatchOptions): _vue_reactivity.WatchStopHandle;
778
- } & Readonly<{}> & Omit<Readonly<_tmagic_design.DrawerProps> & Readonly<{
779
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
780
- onClose?: ((...args: any[]) => any) | undefined;
781
- onOpen?: ((...args: any[]) => any) | undefined;
782
- onOpened?: ((...args: any[]) => any) | undefined;
783
- onClosed?: ((...args: any[]) => any) | undefined;
784
- }>, "handleClose"> & _vue_reactivity.ShallowUnwrapRef<{
785
- handleClose: () => any;
786
- }> & {} & _vue_runtime_core.ComponentCustomProperties & {} & {
787
- $slots: {
788
- default?: ((props: {}) => any) | undefined;
789
- header?: ((props: {}) => any) | undefined;
790
- footer?: ((props: {}) => any) | undefined;
791
- };
792
- }) | undefined>;
793
- declare const form$1: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
794
- config: FormConfig;
795
- initValues: Record<string, any>;
796
- lastValues?: Record<string, any>;
797
- isCompare?: boolean;
798
- parentValues?: Record<string, any>;
799
- labelWidth?: string;
800
- disabled?: boolean;
801
- height?: string;
802
- stepActive?: string | number;
803
- size?: "small" | "default" | "large";
804
- inline?: boolean;
805
- labelPosition?: string;
806
- keyProp?: string;
807
- popperClass?: string;
808
- preventSubmitDefault?: boolean;
809
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
810
- }> & Readonly<{
811
- onChange?: ((...args: any[]) => any) | undefined;
812
- onError?: ((...args: any[]) => any) | undefined;
813
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
814
- "onField-change"?: ((...args: any[]) => any) | undefined;
815
- "onField-input"?: ((...args: any[]) => any) | undefined;
816
- }>, {
817
- values: _vue_reactivity.Ref<FormValue, FormValue>;
818
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
819
- formState: _tmagic_form_schema.FormState;
820
- initialized: _vue_reactivity.Ref<boolean, boolean>;
821
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
822
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
823
- resetForm: () => void;
824
- submitForm: (native?: boolean) => Promise<any>;
825
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
826
- change: (...args: any[]) => void;
827
- error: (...args: any[]) => void;
828
- "update:stepActive": (...args: any[]) => void;
829
- "field-change": (...args: any[]) => void;
830
- "field-input": (...args: any[]) => void;
831
- }, _vue_runtime_core.PublicProps, {
832
- disabled: boolean;
833
- labelWidth: string;
834
- inline: boolean;
835
- labelPosition: string;
836
- config: FormConfig;
837
- height: string;
838
- initValues: Record<string, any>;
839
- lastValues: Record<string, any>;
840
- isCompare: boolean;
841
- keyProp: string;
842
- parentValues: Record<string, any>;
843
- stepActive: string | number;
844
- }, false, {}, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, {}, any, _vue_runtime_core.ComponentProvideOptions, {
845
- P: {};
846
- B: {};
847
- D: {};
848
- C: {};
849
- M: {};
850
- Defaults: {};
851
- }, Readonly<{
852
- config: FormConfig;
853
- initValues: Record<string, any>;
854
- lastValues?: Record<string, any>;
855
- isCompare?: boolean;
856
- parentValues?: Record<string, any>;
857
- labelWidth?: string;
858
- disabled?: boolean;
859
- height?: string;
860
- stepActive?: string | number;
861
- size?: "small" | "default" | "large";
862
- inline?: boolean;
863
- labelPosition?: string;
864
- keyProp?: string;
865
- popperClass?: string;
866
- preventSubmitDefault?: boolean;
867
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
868
- }> & Readonly<{
869
- onChange?: ((...args: any[]) => any) | undefined;
870
- onError?: ((...args: any[]) => any) | undefined;
871
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
872
- "onField-change"?: ((...args: any[]) => any) | undefined;
873
- "onField-input"?: ((...args: any[]) => any) | undefined;
874
- }>, {
875
- values: _vue_reactivity.Ref<FormValue, FormValue>;
876
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
877
- formState: _tmagic_form_schema.FormState;
878
- initialized: _vue_reactivity.Ref<boolean, boolean>;
879
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
880
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
881
- resetForm: () => void;
882
- submitForm: (native?: boolean) => Promise<any>;
883
- }, {}, {}, {}, {
884
- disabled: boolean;
885
- labelWidth: string;
886
- inline: boolean;
887
- labelPosition: string;
888
- config: FormConfig;
889
- height: string;
890
- initValues: Record<string, any>;
891
- lastValues: Record<string, any>;
892
- isCompare: boolean;
893
- keyProp: string;
894
- parentValues: Record<string, any>;
895
- stepActive: string | number;
896
- }> | undefined, _vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
897
- config: FormConfig;
898
- initValues: Record<string, any>;
899
- lastValues?: Record<string, any>;
900
- isCompare?: boolean;
901
- parentValues?: Record<string, any>;
902
- labelWidth?: string;
903
- disabled?: boolean;
904
- height?: string;
905
- stepActive?: string | number;
906
- size?: "small" | "default" | "large";
907
- inline?: boolean;
908
- labelPosition?: string;
909
- keyProp?: string;
910
- popperClass?: string;
911
- preventSubmitDefault?: boolean;
912
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
913
- }> & Readonly<{
914
- onChange?: ((...args: any[]) => any) | undefined;
915
- onError?: ((...args: any[]) => any) | undefined;
916
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
917
- "onField-change"?: ((...args: any[]) => any) | undefined;
918
- "onField-input"?: ((...args: any[]) => any) | undefined;
919
- }>, {
920
- values: _vue_reactivity.Ref<FormValue, FormValue>;
921
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
922
- formState: _tmagic_form_schema.FormState;
923
- initialized: _vue_reactivity.Ref<boolean, boolean>;
924
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
925
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
926
- resetForm: () => void;
927
- submitForm: (native?: boolean) => Promise<any>;
928
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
929
- change: (...args: any[]) => void;
930
- error: (...args: any[]) => void;
931
- "update:stepActive": (...args: any[]) => void;
932
- "field-change": (...args: any[]) => void;
933
- "field-input": (...args: any[]) => void;
934
- }, _vue_runtime_core.PublicProps, {
935
- disabled: boolean;
936
- labelWidth: string;
937
- inline: boolean;
938
- labelPosition: string;
939
- config: FormConfig;
940
- height: string;
941
- initValues: Record<string, any>;
942
- lastValues: Record<string, any>;
943
- isCompare: boolean;
944
- keyProp: string;
945
- parentValues: Record<string, any>;
946
- stepActive: string | number;
947
- }, false, {}, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, {}, any, _vue_runtime_core.ComponentProvideOptions, {
948
- P: {};
949
- B: {};
950
- D: {};
951
- C: {};
952
- M: {};
953
- Defaults: {};
954
- }, Readonly<{
955
- config: FormConfig;
956
- initValues: Record<string, any>;
957
- lastValues?: Record<string, any>;
958
- isCompare?: boolean;
959
- parentValues?: Record<string, any>;
960
- labelWidth?: string;
961
- disabled?: boolean;
962
- height?: string;
963
- stepActive?: string | number;
964
- size?: "small" | "default" | "large";
965
- inline?: boolean;
966
- labelPosition?: string;
967
- keyProp?: string;
968
- popperClass?: string;
969
- preventSubmitDefault?: boolean;
970
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
971
- }> & Readonly<{
972
- onChange?: ((...args: any[]) => any) | undefined;
973
- onError?: ((...args: any[]) => any) | undefined;
974
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
975
- "onField-change"?: ((...args: any[]) => any) | undefined;
976
- "onField-input"?: ((...args: any[]) => any) | undefined;
977
- }>, {
978
- values: _vue_reactivity.Ref<FormValue, FormValue>;
979
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
980
- formState: _tmagic_form_schema.FormState;
981
- initialized: _vue_reactivity.Ref<boolean, boolean>;
982
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
983
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
984
- resetForm: () => void;
985
- submitForm: (native?: boolean) => Promise<any>;
986
- }, {}, {}, {}, {
987
- disabled: boolean;
988
- labelWidth: string;
989
- inline: boolean;
990
- labelPosition: string;
991
- config: FormConfig;
992
- height: string;
993
- initValues: Record<string, any>;
994
- lastValues: Record<string, any>;
995
- isCompare: boolean;
996
- keyProp: string;
997
- parentValues: Record<string, any>;
998
- stepActive: string | number;
999
- }> | undefined>;
1000
- declare const drawerBody: _vue_reactivity.Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
1001
- declare const visible: _vue_reactivity.Ref<boolean, boolean>;
1002
- declare const saveFetch$1: _vue_reactivity.Ref<boolean, boolean>;
1003
- declare const submitHandler$1: () => Promise<void>;
1004
- declare const changeHandler$3: (value: FormValue, eventData: ContainerChangeEventData) => void;
1005
- declare const openHandler: () => void;
1006
- declare const openedHandler: () => void;
1007
- declare const closeHandler: () => void;
1008
- declare const closedHandler: () => void;
1009
- /** 用于关闭 Drawer, 该方法会调用传入的 before-close 方法 */
1010
- declare const handleClose: () => void;
1011
- declare const __VLS_ctx$3: InstanceType<__VLS_PickNotAny<typeof __VLS_self$3, new () => {}>>;
1012
- declare var __VLS_23: {};
1013
- declare var __VLS_33: {};
1014
- declare var __VLS_39: {};
1015
- type __VLS_Slots$3 = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx$3.$slots> & {
1016
- default?: (props: typeof __VLS_23) => any;
1017
- } & {
1018
- left?: (props: typeof __VLS_33) => any;
1019
- } & {
1020
- footer?: (props: typeof __VLS_39) => any;
1021
- }>;
1022
- declare const __VLS_self$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
1023
- TMagicButton: typeof TMagicButton;
1024
- TMagicCol: typeof TMagicCol;
1025
- TMagicDrawer: typeof TMagicDrawer;
1026
- TMagicRow: typeof TMagicRow;
1027
- Form: typeof _default$v;
1028
- drawer: typeof drawer;
1029
- form: typeof form$1;
1030
- drawerBody: typeof drawerBody;
1031
- visible: typeof visible;
1032
- saveFetch: typeof saveFetch$1;
1033
- submitHandler: typeof submitHandler$1;
1034
- changeHandler: typeof changeHandler$3;
1035
- openHandler: typeof openHandler;
1036
- openedHandler: typeof openedHandler;
1037
- closeHandler: typeof closeHandler;
1038
- closedHandler: typeof closedHandler;
1039
- handleClose: typeof handleClose;
1040
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1041
- change: (...args: any[]) => void;
1042
- close: (...args: any[]) => void;
1043
- error: (...args: any[]) => void;
1044
- submit: (...args: any[]) => void;
1045
- open: (...args: any[]) => void;
1046
- opened: (...args: any[]) => void;
1047
- closed: (...args: any[]) => void;
1048
- }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$s> & Readonly<{
1049
- onChange?: ((...args: any[]) => any) | undefined;
1050
- onClose?: ((...args: any[]) => any) | undefined;
1051
- onError?: ((...args: any[]) => any) | undefined;
1052
- onSubmit?: ((...args: any[]) => any) | undefined;
1053
- onOpen?: ((...args: any[]) => any) | undefined;
1054
- onOpened?: ((...args: any[]) => any) | undefined;
1055
- onClosed?: ((...args: any[]) => any) | undefined;
1056
- }>, {
1057
- values: Object;
1058
- closeOnPressEscape: boolean;
1059
- config: FormConfig;
1060
- confirmText: string;
1061
- }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
355
+ type __VLS_Props$s = {
356
+ config?: FormConfig;
357
+ values?: Object;
358
+ parentValues?: Object;
359
+ width?: string | number;
360
+ labelWidth?: string;
361
+ disabled?: boolean;
362
+ closeOnPressEscape?: boolean;
363
+ title?: string;
364
+ zIndex?: number;
365
+ size?: 'small' | 'default' | 'large';
366
+ confirmText?: string;
367
+ inline?: boolean;
368
+ labelPosition?: string;
369
+ preventSubmitDefault?: boolean;
370
+ /** 关闭前的回调,会暂停 Drawer 的关闭; done 是个 function type 接受一个 boolean 参数, 执行 done 使用 true 参数或不提供参数将会终止关闭 */
371
+ beforeClose?: (_done: (_cancel?: boolean) => void) => void;
372
+ };
373
+ declare var __VLS_23: {};
374
+ declare var __VLS_36: {};
375
+ declare var __VLS_43: {};
376
+ type __VLS_Slots$3 = {} & {
377
+ default?: (props: typeof __VLS_23) => any;
378
+ } & {
379
+ left?: (props: typeof __VLS_36) => any;
380
+ } & {
381
+ footer?: (props: typeof __VLS_43) => any;
382
+ };
1062
383
  declare const __VLS_component$3: _vue_runtime_core.DefineComponent<__VLS_Props$s, {
1063
384
  form: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
1064
385
  config: FormConfig;
@@ -1316,257 +637,16 @@ type __VLS_Props$r = {
1316
637
  labelPosition?: string;
1317
638
  preventSubmitDefault?: boolean;
1318
639
  };
1319
- declare const footerHeight = 60;
1320
- declare const style: _vue_reactivity.ComputedRef<{
1321
- width?: string;
1322
- height?: string;
1323
- }>;
1324
- declare const form: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
1325
- config: 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: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
1341
- }> & Readonly<{
1342
- onChange?: ((...args: any[]) => any) | undefined;
1343
- onError?: ((...args: any[]) => any) | undefined;
1344
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1345
- "onField-change"?: ((...args: any[]) => any) | undefined;
1346
- "onField-input"?: ((...args: any[]) => any) | undefined;
1347
- }>, {
1348
- values: _vue_reactivity.Ref<FormValue, FormValue>;
1349
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
1350
- formState: _tmagic_form_schema.FormState;
1351
- initialized: _vue_reactivity.Ref<boolean, boolean>;
1352
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
1353
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
1354
- resetForm: () => void;
1355
- submitForm: (native?: boolean) => Promise<any>;
1356
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1357
- change: (...args: any[]) => void;
1358
- error: (...args: any[]) => void;
1359
- "update:stepActive": (...args: any[]) => void;
1360
- "field-change": (...args: any[]) => void;
1361
- "field-input": (...args: any[]) => void;
1362
- }, _vue_runtime_core.PublicProps, {
1363
- disabled: boolean;
1364
- labelWidth: string;
1365
- inline: boolean;
1366
- labelPosition: string;
1367
- config: FormConfig;
1368
- height: string;
1369
- initValues: Record<string, any>;
1370
- lastValues: Record<string, any>;
1371
- isCompare: boolean;
1372
- keyProp: string;
1373
- parentValues: Record<string, any>;
1374
- stepActive: string | number;
1375
- }, false, {}, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, {}, any, _vue_runtime_core.ComponentProvideOptions, {
1376
- P: {};
1377
- B: {};
1378
- D: {};
1379
- C: {};
1380
- M: {};
1381
- Defaults: {};
1382
- }, Readonly<{
1383
- config: FormConfig;
1384
- initValues: Record<string, any>;
1385
- lastValues?: Record<string, any>;
1386
- isCompare?: boolean;
1387
- parentValues?: Record<string, any>;
1388
- labelWidth?: string;
1389
- disabled?: boolean;
1390
- height?: string;
1391
- stepActive?: string | number;
1392
- size?: "small" | "default" | "large";
1393
- inline?: boolean;
1394
- labelPosition?: string;
1395
- keyProp?: string;
1396
- popperClass?: string;
1397
- preventSubmitDefault?: boolean;
1398
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
1399
- }> & Readonly<{
1400
- onChange?: ((...args: any[]) => any) | undefined;
1401
- onError?: ((...args: any[]) => any) | undefined;
1402
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1403
- "onField-change"?: ((...args: any[]) => any) | undefined;
1404
- "onField-input"?: ((...args: any[]) => any) | undefined;
1405
- }>, {
1406
- values: _vue_reactivity.Ref<FormValue, FormValue>;
1407
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
1408
- formState: _tmagic_form_schema.FormState;
1409
- initialized: _vue_reactivity.Ref<boolean, boolean>;
1410
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
1411
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
1412
- resetForm: () => void;
1413
- submitForm: (native?: boolean) => Promise<any>;
1414
- }, {}, {}, {}, {
1415
- disabled: boolean;
1416
- labelWidth: string;
1417
- inline: boolean;
1418
- labelPosition: string;
1419
- config: FormConfig;
1420
- height: string;
1421
- initValues: Record<string, any>;
1422
- lastValues: Record<string, any>;
1423
- isCompare: boolean;
1424
- keyProp: string;
1425
- parentValues: Record<string, any>;
1426
- stepActive: string | number;
1427
- }> | undefined, _vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
1428
- config: FormConfig;
1429
- initValues: Record<string, any>;
1430
- lastValues?: Record<string, any>;
1431
- isCompare?: boolean;
1432
- parentValues?: Record<string, any>;
1433
- labelWidth?: string;
1434
- disabled?: boolean;
1435
- height?: string;
1436
- stepActive?: string | number;
1437
- size?: "small" | "default" | "large";
1438
- inline?: boolean;
1439
- labelPosition?: string;
1440
- keyProp?: string;
1441
- popperClass?: string;
1442
- preventSubmitDefault?: boolean;
1443
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
1444
- }> & Readonly<{
1445
- onChange?: ((...args: any[]) => any) | undefined;
1446
- onError?: ((...args: any[]) => any) | undefined;
1447
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1448
- "onField-change"?: ((...args: any[]) => any) | undefined;
1449
- "onField-input"?: ((...args: any[]) => any) | undefined;
1450
- }>, {
1451
- values: _vue_reactivity.Ref<FormValue, FormValue>;
1452
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
1453
- formState: _tmagic_form_schema.FormState;
1454
- initialized: _vue_reactivity.Ref<boolean, boolean>;
1455
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
1456
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
1457
- resetForm: () => void;
1458
- submitForm: (native?: boolean) => Promise<any>;
1459
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1460
- change: (...args: any[]) => void;
1461
- error: (...args: any[]) => void;
1462
- "update:stepActive": (...args: any[]) => void;
1463
- "field-change": (...args: any[]) => void;
1464
- "field-input": (...args: any[]) => void;
1465
- }, _vue_runtime_core.PublicProps, {
1466
- disabled: boolean;
1467
- labelWidth: string;
1468
- inline: boolean;
1469
- labelPosition: string;
1470
- config: FormConfig;
1471
- height: string;
1472
- initValues: Record<string, any>;
1473
- lastValues: Record<string, any>;
1474
- isCompare: boolean;
1475
- keyProp: string;
1476
- parentValues: Record<string, any>;
1477
- stepActive: string | number;
1478
- }, false, {}, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, {}, any, _vue_runtime_core.ComponentProvideOptions, {
1479
- P: {};
1480
- B: {};
1481
- D: {};
1482
- C: {};
1483
- M: {};
1484
- Defaults: {};
1485
- }, Readonly<{
1486
- config: FormConfig;
1487
- initValues: Record<string, any>;
1488
- lastValues?: Record<string, any>;
1489
- isCompare?: boolean;
1490
- parentValues?: Record<string, any>;
1491
- labelWidth?: string;
1492
- disabled?: boolean;
1493
- height?: string;
1494
- stepActive?: string | number;
1495
- size?: "small" | "default" | "large";
1496
- inline?: boolean;
1497
- labelPosition?: string;
1498
- keyProp?: string;
1499
- popperClass?: string;
1500
- preventSubmitDefault?: boolean;
1501
- extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
1502
- }> & Readonly<{
1503
- onChange?: ((...args: any[]) => any) | undefined;
1504
- onError?: ((...args: any[]) => any) | undefined;
1505
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1506
- "onField-change"?: ((...args: any[]) => any) | undefined;
1507
- "onField-input"?: ((...args: any[]) => any) | undefined;
1508
- }>, {
1509
- values: _vue_reactivity.Ref<FormValue, FormValue>;
1510
- lastValuesProcessed: _vue_reactivity.Ref<FormValue, FormValue>;
1511
- formState: _tmagic_form_schema.FormState;
1512
- initialized: _vue_reactivity.Ref<boolean, boolean>;
1513
- changeRecords: _vue_reactivity.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
1514
- changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
1515
- resetForm: () => void;
1516
- submitForm: (native?: boolean) => Promise<any>;
1517
- }, {}, {}, {}, {
1518
- disabled: boolean;
1519
- labelWidth: string;
1520
- inline: boolean;
1521
- labelPosition: string;
1522
- config: FormConfig;
1523
- height: string;
1524
- initValues: Record<string, any>;
1525
- lastValues: Record<string, any>;
1526
- isCompare: boolean;
1527
- keyProp: string;
1528
- parentValues: Record<string, any>;
1529
- stepActive: string | number;
1530
- }> | undefined>;
1531
- declare const saveFetch: _vue_reactivity.Ref<boolean, boolean>;
1532
- declare const bodyHeight: _vue_reactivity.Ref<number, number>;
1533
- declare const submitHandler: () => Promise<void>;
1534
- declare const changeHandler$2: (value: FormValue, eventData: ContainerChangeEventData) => void;
1535
- declare const __VLS_ctx$2: InstanceType<__VLS_PickNotAny<typeof __VLS_self$2, new () => {}>>;
1536
- declare var __VLS_14$1: {};
1537
- declare var __VLS_16$1: {};
1538
- declare var __VLS_18: {};
1539
- type __VLS_Slots$2 = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx$2.$slots> & {
1540
- default?: (props: typeof __VLS_14$1) => any;
640
+ declare var __VLS_15: {};
641
+ declare var __VLS_17: {};
642
+ declare var __VLS_19: {};
643
+ type __VLS_Slots$2 = {} & {
644
+ default?: (props: typeof __VLS_15) => any;
1541
645
  } & {
1542
- left?: (props: typeof __VLS_16$1) => any;
646
+ left?: (props: typeof __VLS_17) => any;
1543
647
  } & {
1544
- footer?: (props: typeof __VLS_18) => any;
1545
- }>;
1546
- declare const __VLS_self$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
1547
- TMagicButton: typeof TMagicButton;
1548
- TMagicScrollbar: typeof TMagicScrollbar;
1549
- Form: typeof _default$v;
1550
- footerHeight: typeof footerHeight;
1551
- style: typeof style;
1552
- form: typeof form;
1553
- saveFetch: typeof saveFetch;
1554
- bodyHeight: typeof bodyHeight;
1555
- submitHandler: typeof submitHandler;
1556
- changeHandler: typeof changeHandler$2;
1557
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1558
- change: (v: any, eventData: ContainerChangeEventData) => any;
1559
- error: (e: any) => any;
1560
- submit: (v: any, eventData: ContainerChangeEventData) => any;
1561
- }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$r> & Readonly<{
1562
- onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
1563
- onError?: ((e: any) => any) | undefined;
1564
- onSubmit?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
1565
- }>, {
1566
- values: Object;
1567
- config: FormConfig;
1568
- confirmText: string;
1569
- }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
648
+ footer?: (props: typeof __VLS_19) => any;
649
+ };
1570
650
  declare const __VLS_component$2: _vue_runtime_core.DefineComponent<__VLS_Props$r, {
1571
651
  form: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<{
1572
652
  config: FormConfig;
@@ -1863,39 +943,13 @@ type __VLS_Props$o = {
1863
943
  size?: string;
1864
944
  disabled?: boolean;
1865
945
  };
1866
- declare const mForm$1: FormState | undefined;
1867
- declare const expand: _vue_reactivity.Ref<boolean, boolean>;
1868
- declare const items: _vue_reactivity.ComputedRef<_tmagic_form_schema.FormConfig>;
1869
- declare const filter: (config: any) => any;
1870
- declare const changeHandler$1: (v: any, eventData: ContainerChangeEventData) => void;
1871
- declare const onAddDiffCount$1: () => void;
1872
- declare const __VLS_ctx$1: InstanceType<__VLS_PickNotAny<typeof __VLS_self$1, new () => {}>>;
1873
- declare var __VLS_14: {};
1874
946
  declare var __VLS_16: {};
1875
- type __VLS_Slots$1 = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx$1.$slots> & {
1876
- header?: (props: typeof __VLS_14) => any;
947
+ declare var __VLS_18: {};
948
+ type __VLS_Slots$1 = {} & {
949
+ header?: (props: typeof __VLS_16) => any;
1877
950
  } & {
1878
- default?: (props: typeof __VLS_16) => any;
1879
- }>;
1880
- declare const __VLS_self$1: _vue_runtime_core.DefineComponent<__VLS_Props$o, {
1881
- CaretBottom: typeof CaretBottom;
1882
- CaretRight: typeof CaretRight;
1883
- TMagicButton: typeof TMagicButton;
1884
- TMagicCard: typeof TMagicCard;
1885
- Container: typeof _default$r;
1886
- mForm: typeof mForm$1;
1887
- expand: typeof expand;
1888
- items: typeof items;
1889
- filter: typeof filter;
1890
- changeHandler: typeof changeHandler$1;
1891
- onAddDiffCount: typeof onAddDiffCount$1;
1892
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1893
- change: (v: any, eventData: ContainerChangeEventData) => any;
1894
- addDiffCount: () => any;
1895
- }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$o> & Readonly<{
1896
- onChange?: ((v: any, eventData: ContainerChangeEventData) => any) | undefined;
1897
- onAddDiffCount?: (() => any) | undefined;
1898
- }>, {}, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
951
+ default?: (props: typeof __VLS_18) => any;
952
+ };
1899
953
  declare const __VLS_component$1: _vue_runtime_core.DefineComponent<__VLS_Props$o, {}, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
1900
954
  change: (v: any, eventData: ContainerChangeEventData) => any;
1901
955
  addDiffCount: () => any;
@@ -1970,321 +1024,18 @@ type __VLS_Props$l = {
1970
1024
  enableToggleMode?: boolean;
1971
1025
  showIndex?: boolean;
1972
1026
  };
1973
- declare const mForm: FormState | undefined;
1974
- declare const tMagicTable: _vue_reactivity.Ref<({
1975
- $: _vue_runtime_core.ComponentInternalInstance;
1976
- $data: {};
1977
- $props: {
1978
- readonly data?: any[] | undefined;
1979
- readonly border?: boolean | undefined;
1980
- readonly maxHeight?: number | string | undefined;
1981
- readonly defaultExpandAll?: boolean | undefined;
1982
- readonly onSelect?: ((...args: any[]) => any) | undefined;
1983
- readonly "onSort-change"?: ((...args: any[]) => any) | undefined;
1984
- readonly "onExpand-change"?: ((...args: any[]) => any) | undefined;
1985
- readonly "onCell-click"?: ((...args: any[]) => any) | undefined;
1986
- } & _vue_runtime_core.VNodeProps & _vue_runtime_core.AllowedComponentProps & _vue_runtime_core.ComponentCustomProps;
1987
- $attrs: {
1988
- [x: string]: unknown;
1989
- };
1990
- $refs: {
1991
- [x: string]: unknown;
1992
- };
1993
- $slots: Readonly<{
1994
- [name: string]: _vue_runtime_core.Slot<any> | undefined;
1995
- }>;
1996
- $root: _vue_runtime_core.ComponentPublicInstance | null;
1997
- $parent: _vue_runtime_core.ComponentPublicInstance | null;
1998
- $host: Element | null;
1999
- $emit: ((event: "select", ...args: any[]) => void) & ((event: "sort-change", ...args: any[]) => void) & ((event: "expand-change", ...args: any[]) => void) & ((event: "cell-click", ...args: any[]) => void);
2000
- $el: any;
2001
- $options: _vue_runtime_core.ComponentOptionsBase<Readonly<_tmagic_design.TableProps> & Readonly<{
2002
- onSelect?: ((...args: any[]) => any) | undefined;
2003
- "onSort-change"?: ((...args: any[]) => any) | undefined;
2004
- "onExpand-change"?: ((...args: any[]) => any) | undefined;
2005
- "onCell-click"?: ((...args: any[]) => any) | undefined;
2006
- }>, {
2007
- instance: _vue_reactivity.Ref<any, any>;
2008
- $el: HTMLDivElement | undefined;
2009
- clearSelection(...args: any[]): any;
2010
- toggleRowSelection(...args: any[]): any;
2011
- toggleRowExpansion(...args: any[]): any;
2012
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
2013
- select: (...args: any[]) => void;
2014
- "sort-change": (...args: any[]) => void;
2015
- "expand-change": (...args: any[]) => void;
2016
- "cell-click": (...args: any[]) => void;
2017
- }, string, {
2018
- data: any[];
2019
- }, {}, string, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, _vue_runtime_core.ComponentProvideOptions> & {
2020
- beforeCreate?: (() => void) | (() => void)[];
2021
- created?: (() => void) | (() => void)[];
2022
- beforeMount?: (() => void) | (() => void)[];
2023
- mounted?: (() => void) | (() => void)[];
2024
- beforeUpdate?: (() => void) | (() => void)[];
2025
- updated?: (() => void) | (() => void)[];
2026
- activated?: (() => void) | (() => void)[];
2027
- deactivated?: (() => void) | (() => void)[];
2028
- beforeDestroy?: (() => void) | (() => void)[];
2029
- beforeUnmount?: (() => void) | (() => void)[];
2030
- destroyed?: (() => void) | (() => void)[];
2031
- unmounted?: (() => void) | (() => void)[];
2032
- renderTracked?: ((e: _vue_reactivity.DebuggerEvent) => void) | ((e: _vue_reactivity.DebuggerEvent) => void)[];
2033
- renderTriggered?: ((e: _vue_reactivity.DebuggerEvent) => void) | ((e: _vue_reactivity.DebuggerEvent) => void)[];
2034
- errorCaptured?: ((err: unknown, instance: _vue_runtime_core.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: _vue_runtime_core.ComponentPublicInstance | null, info: string) => boolean | void)[];
2035
- };
2036
- $forceUpdate: () => void;
2037
- $nextTick: typeof _vue_runtime_core.nextTick;
2038
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: _vue_runtime_core.WatchOptions): _vue_reactivity.WatchStopHandle;
2039
- } & Readonly<{
2040
- data: any[];
2041
- }> & Omit<Readonly<_tmagic_design.TableProps> & Readonly<{
2042
- onSelect?: ((...args: any[]) => any) | undefined;
2043
- "onSort-change"?: ((...args: any[]) => any) | undefined;
2044
- "onExpand-change"?: ((...args: any[]) => any) | undefined;
2045
- "onCell-click"?: ((...args: any[]) => any) | undefined;
2046
- }>, "instance" | "data" | "$el" | "clearSelection" | "toggleRowSelection" | "toggleRowExpansion"> & _vue_reactivity.ShallowUnwrapRef<{
2047
- instance: _vue_reactivity.Ref<any, any>;
2048
- $el: HTMLDivElement | undefined;
2049
- clearSelection(...args: any[]): any;
2050
- toggleRowSelection(...args: any[]): any;
2051
- toggleRowExpansion(...args: any[]): any;
2052
- }> & {} & _vue_runtime_core.ComponentCustomProperties & {} & {
2053
- $slots: {
2054
- default?: ((props: {}) => any) | undefined;
2055
- };
2056
- }) | undefined, ({
2057
- $: _vue_runtime_core.ComponentInternalInstance;
2058
- $data: {};
2059
- $props: {
2060
- readonly data?: any[] | undefined;
2061
- readonly border?: boolean | undefined;
2062
- readonly maxHeight?: number | string | undefined;
2063
- readonly defaultExpandAll?: boolean | undefined;
2064
- readonly onSelect?: ((...args: any[]) => any) | undefined;
2065
- readonly "onSort-change"?: ((...args: any[]) => any) | undefined;
2066
- readonly "onExpand-change"?: ((...args: any[]) => any) | undefined;
2067
- readonly "onCell-click"?: ((...args: any[]) => any) | undefined;
2068
- } & _vue_runtime_core.VNodeProps & _vue_runtime_core.AllowedComponentProps & _vue_runtime_core.ComponentCustomProps;
2069
- $attrs: {
2070
- [x: string]: unknown;
2071
- };
2072
- $refs: {
2073
- [x: string]: unknown;
2074
- };
2075
- $slots: Readonly<{
2076
- [name: string]: _vue_runtime_core.Slot<any> | undefined;
2077
- }>;
2078
- $root: _vue_runtime_core.ComponentPublicInstance | null;
2079
- $parent: _vue_runtime_core.ComponentPublicInstance | null;
2080
- $host: Element | null;
2081
- $emit: ((event: "select", ...args: any[]) => void) & ((event: "sort-change", ...args: any[]) => void) & ((event: "expand-change", ...args: any[]) => void) & ((event: "cell-click", ...args: any[]) => void);
2082
- $el: any;
2083
- $options: _vue_runtime_core.ComponentOptionsBase<Readonly<_tmagic_design.TableProps> & Readonly<{
2084
- onSelect?: ((...args: any[]) => any) | undefined;
2085
- "onSort-change"?: ((...args: any[]) => any) | undefined;
2086
- "onExpand-change"?: ((...args: any[]) => any) | undefined;
2087
- "onCell-click"?: ((...args: any[]) => any) | undefined;
2088
- }>, {
2089
- instance: _vue_reactivity.Ref<any, any>;
2090
- $el: HTMLDivElement | undefined;
2091
- clearSelection(...args: any[]): any;
2092
- toggleRowSelection(...args: any[]): any;
2093
- toggleRowExpansion(...args: any[]): any;
2094
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
2095
- select: (...args: any[]) => void;
2096
- "sort-change": (...args: any[]) => void;
2097
- "expand-change": (...args: any[]) => void;
2098
- "cell-click": (...args: any[]) => void;
2099
- }, string, {
2100
- data: any[];
2101
- }, {}, string, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, _vue_runtime_core.ComponentProvideOptions> & {
2102
- beforeCreate?: (() => void) | (() => void)[];
2103
- created?: (() => void) | (() => void)[];
2104
- beforeMount?: (() => void) | (() => void)[];
2105
- mounted?: (() => void) | (() => void)[];
2106
- beforeUpdate?: (() => void) | (() => void)[];
2107
- updated?: (() => void) | (() => void)[];
2108
- activated?: (() => void) | (() => void)[];
2109
- deactivated?: (() => void) | (() => void)[];
2110
- beforeDestroy?: (() => void) | (() => void)[];
2111
- beforeUnmount?: (() => void) | (() => void)[];
2112
- destroyed?: (() => void) | (() => void)[];
2113
- unmounted?: (() => void) | (() => void)[];
2114
- renderTracked?: ((e: _vue_reactivity.DebuggerEvent) => void) | ((e: _vue_reactivity.DebuggerEvent) => void)[];
2115
- renderTriggered?: ((e: _vue_reactivity.DebuggerEvent) => void) | ((e: _vue_reactivity.DebuggerEvent) => void)[];
2116
- errorCaptured?: ((err: unknown, instance: _vue_runtime_core.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: _vue_runtime_core.ComponentPublicInstance | null, info: string) => boolean | void)[];
2117
- };
2118
- $forceUpdate: () => void;
2119
- $nextTick: typeof _vue_runtime_core.nextTick;
2120
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, _vue_reactivity.OnCleanup]) => any : (...args: [any, any, _vue_reactivity.OnCleanup]) => any, options?: _vue_runtime_core.WatchOptions): _vue_reactivity.WatchStopHandle;
2121
- } & Readonly<{
2122
- data: any[];
2123
- }> & Omit<Readonly<_tmagic_design.TableProps> & Readonly<{
2124
- onSelect?: ((...args: any[]) => any) | undefined;
2125
- "onSort-change"?: ((...args: any[]) => any) | undefined;
2126
- "onExpand-change"?: ((...args: any[]) => any) | undefined;
2127
- "onCell-click"?: ((...args: any[]) => any) | undefined;
2128
- }>, "instance" | "data" | "$el" | "clearSelection" | "toggleRowSelection" | "toggleRowExpansion"> & _vue_reactivity.ShallowUnwrapRef<{
2129
- instance: _vue_reactivity.Ref<any, any>;
2130
- $el: HTMLDivElement | undefined;
2131
- clearSelection(...args: any[]): any;
2132
- toggleRowSelection(...args: any[]): any;
2133
- toggleRowExpansion(...args: any[]): any;
2134
- }> & {} & _vue_runtime_core.ComponentCustomProperties & {} & {
2135
- $slots: {
2136
- default?: ((props: {}) => any) | undefined;
2137
- };
2138
- }) | undefined>;
2139
- declare const excelBtn: _vue_reactivity.Ref<_vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<_tmagic_design.UploadProps> & Readonly<{
2140
- onChange?: ((...args: any[]) => any) | undefined;
2141
- }>, {
2142
- clearFiles(...args: any[]): any;
2143
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
2144
- change: (...args: any[]) => void;
2145
- }, _vue_runtime_core.PublicProps, {}, false, {}, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, {}, any, _vue_runtime_core.ComponentProvideOptions, {
2146
- P: {};
2147
- B: {};
2148
- D: {};
2149
- C: {};
2150
- M: {};
2151
- Defaults: {};
2152
- }, Readonly<_tmagic_design.UploadProps> & Readonly<{
2153
- onChange?: ((...args: any[]) => any) | undefined;
2154
- }>, {
2155
- clearFiles(...args: any[]): any;
2156
- }, {}, {}, {}, {}> | undefined, _vue_runtime_core.CreateComponentPublicInstanceWithMixins<Readonly<_tmagic_design.UploadProps> & Readonly<{
2157
- onChange?: ((...args: any[]) => any) | undefined;
2158
- }>, {
2159
- clearFiles(...args: any[]): any;
2160
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
2161
- change: (...args: any[]) => void;
2162
- }, _vue_runtime_core.PublicProps, {}, false, {}, {}, _vue_runtime_core.GlobalComponents, _vue_runtime_core.GlobalDirectives, string, {}, any, _vue_runtime_core.ComponentProvideOptions, {
2163
- P: {};
2164
- B: {};
2165
- D: {};
2166
- C: {};
2167
- M: {};
2168
- Defaults: {};
2169
- }, Readonly<_tmagic_design.UploadProps> & Readonly<{
2170
- onChange?: ((...args: any[]) => any) | undefined;
2171
- }>, {
2172
- clearFiles(...args: any[]): any;
2173
- }, {}, {}, {}, {}> | undefined>;
2174
- declare const mTable: _vue_reactivity.Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
2175
- declare const pagesize: _vue_reactivity.Ref<number, number>;
2176
- declare const pagecontext: _vue_reactivity.Ref<number, number>;
2177
- declare const updateKey: _vue_reactivity.Ref<number, number>;
2178
- declare const isFullscreen: _vue_reactivity.Ref<boolean, boolean>;
2179
- declare const modelName: _vue_reactivity.ComputedRef<string | number>;
2180
- declare const data: _vue_reactivity.ComputedRef<any>;
2181
- declare const lastData: _vue_reactivity.ComputedRef<any>;
2182
- declare const sortChange: ({ prop, order }: SortProp) => void;
2183
- declare const newHandler: (row?: any) => Promise<void>;
2184
- declare const addable: _vue_reactivity.ComputedRef<boolean | "undefined">;
2185
- declare const selection: _vue_reactivity.ComputedRef<boolean | "single" | undefined>;
2186
- declare const importable: _vue_reactivity.ComputedRef<boolean | "undefined">;
2187
- declare const display: (fuc: any) => any;
2188
- declare const itemExtra: (fuc: any, index: number) => any;
2189
- declare const removeHandler: (index: number) => void;
2190
- declare const selectHandle: (selection: any, row: any) => void;
2191
- declare const makeConfig: (config: TableColumnConfig, row: any) => TableColumnConfig;
2192
- declare const upHandler: (index: number) => void;
2193
- declare const topHandler: (index: number) => void;
2194
- declare const downHandler: (index: number) => void;
2195
- declare const bottomHandler: (index: number) => void;
2196
- declare const showDelete: (index: number) => boolean;
2197
- declare const copyable: (index: number) => boolean;
2198
- declare const clearHandler: () => void;
2199
- declare const excelHandler: (file: any) => Promise<boolean>;
2200
- declare const handleSizeChange: (val: number) => void;
2201
- declare const handleCurrentChange: (val: number) => void;
2202
- declare const copyHandler: (index: number) => void;
2203
- declare const toggleMode: () => void;
2204
- declare const toggleFullscreen: () => void;
2205
- declare const getProp: (index: number) => string;
2206
- declare const onAddDiffCount: () => void;
2207
- declare const changeHandler: (v: any, eventData: ContainerChangeEventData) => void;
2208
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
2209
- declare var __VLS_28: {
1027
+ declare var __VLS_34: {
2210
1028
  scope: {
2211
1029
  $index: any;
2212
1030
  row: any;
2213
1031
  };
2214
1032
  };
2215
- declare var __VLS_96: {};
2216
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
2217
- operateCol?: (props: typeof __VLS_28) => any;
1033
+ declare var __VLS_111: {};
1034
+ type __VLS_Slots = {} & {
1035
+ operateCol?: (props: typeof __VLS_34) => any;
2218
1036
  } & {
2219
- default?: (props: typeof __VLS_96) => any;
2220
- }>;
2221
- declare const __VLS_self: _vue_runtime_core.DefineComponent<__VLS_Props$l, {
2222
- ArrowDown: typeof ArrowDown;
2223
- ArrowUp: typeof ArrowUp;
2224
- Delete: typeof Delete;
2225
- DocumentCopy: typeof DocumentCopy;
2226
- FullScreen: typeof FullScreen;
2227
- Grid: typeof Grid;
2228
- TMagicButton: typeof TMagicButton;
2229
- TMagicPagination: typeof TMagicPagination;
2230
- TMagicTable: typeof TMagicTable;
2231
- TMagicTableColumn: typeof TMagicTableColumn;
2232
- TMagicTooltip: typeof TMagicTooltip;
2233
- TMagicUpload: typeof TMagicUpload;
2234
- Container: typeof _default$r;
2235
- mForm: typeof mForm;
2236
- tMagicTable: typeof tMagicTable;
2237
- excelBtn: typeof excelBtn;
2238
- mTable: typeof mTable;
2239
- pagesize: typeof pagesize;
2240
- pagecontext: typeof pagecontext;
2241
- updateKey: typeof updateKey;
2242
- isFullscreen: typeof isFullscreen;
2243
- modelName: typeof modelName;
2244
- data: typeof data;
2245
- lastData: typeof lastData;
2246
- sortChange: typeof sortChange;
2247
- newHandler: typeof newHandler;
2248
- addable: typeof addable;
2249
- selection: typeof selection;
2250
- importable: typeof importable;
2251
- display: typeof display;
2252
- itemExtra: typeof itemExtra;
2253
- removeHandler: typeof removeHandler;
2254
- selectHandle: typeof selectHandle;
2255
- makeConfig: typeof makeConfig;
2256
- upHandler: typeof upHandler;
2257
- topHandler: typeof topHandler;
2258
- downHandler: typeof downHandler;
2259
- bottomHandler: typeof bottomHandler;
2260
- showDelete: typeof showDelete;
2261
- copyable: typeof copyable;
2262
- clearHandler: typeof clearHandler;
2263
- excelHandler: typeof excelHandler;
2264
- handleSizeChange: typeof handleSizeChange;
2265
- handleCurrentChange: typeof handleCurrentChange;
2266
- copyHandler: typeof copyHandler;
2267
- toggleMode: typeof toggleMode;
2268
- toggleFullscreen: typeof toggleFullscreen;
2269
- getProp: typeof getProp;
2270
- onAddDiffCount: typeof onAddDiffCount;
2271
- changeHandler: typeof changeHandler;
2272
- }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
2273
- change: (...args: any[]) => void;
2274
- select: (...args: any[]) => void;
2275
- addDiffCount: (...args: any[]) => void;
2276
- }, string, _vue_runtime_core.PublicProps, Readonly<__VLS_Props$l> & Readonly<{
2277
- onChange?: ((...args: any[]) => any) | undefined;
2278
- onSelect?: ((...args: any[]) => any) | undefined;
2279
- onAddDiffCount?: ((...args: any[]) => any) | undefined;
2280
- }>, {
2281
- prop: string;
2282
- lastValues: any;
2283
- isCompare: boolean;
2284
- enableToggleMode: boolean;
2285
- showIndex: boolean;
2286
- sortKey: string;
2287
- }, {}, {}, {}, string, _vue_runtime_core.ComponentProvideOptions, false, {}, any>;
1037
+ default?: (props: typeof __VLS_111) => any;
1038
+ };
2288
1039
  declare const __VLS_component: _vue_runtime_core.DefineComponent<__VLS_Props$l, {
2289
1040
  toggleRowSelection: (row: any, selected: boolean) => void;
2290
1041
  }, {}, {}, {}, _vue_runtime_core.ComponentOptionsMixin, _vue_runtime_core.ComponentOptionsMixin, {
@@ -2505,5 +1256,5 @@ declare const _default: {
2505
1256
  install(app: App, opt?: FormInstallOptions): void;
2506
1257
  };
2507
1258
 
2508
- export { _default$2 as MCascader, _default$c as MCheckbox, _default$7 as MCheckboxGroup, _default$8 as MColorPicker, _default$r as MContainer, _default$f as MDate, _default$e as MDateTime, _default$a as MDaterange, _default$5 as MDisplay, _default$1 as MDynamicField, _default$q as MFieldset, _default$v as MForm, _default$s as MFormBox, _default$u as MFormDialog, _default$t as MFormDrawer, _default$l as MGroupList, _default$g as MHidden, _default$4 as MLink, _default$j as MNumber, _default$i as MNumberRange, _default$p as MPanel, _default$6 as MRadioGroup, _default$o as MRow, _default$3 as MSelect, _default$b as MSwitch, _default$m as MTable, _default$n as MTabs, _default$k as MText, _default$h as MTextarea, _default$d as MTime, _default$9 as MTimerange, createForm, createValues, datetimeFormatter, _default as default, display$1 as display, filterFunction, getRules, initValue, useAddField };
1259
+ export { _default$2 as MCascader, _default$c as MCheckbox, _default$7 as MCheckboxGroup, _default$8 as MColorPicker, _default$r as MContainer, _default$f as MDate, _default$e as MDateTime, _default$a as MDaterange, _default$5 as MDisplay, _default$1 as MDynamicField, _default$q as MFieldset, _default$v as MForm, _default$s as MFormBox, _default$u as MFormDialog, _default$t as MFormDrawer, _default$l as MGroupList, _default$g as MHidden, _default$4 as MLink, _default$j as MNumber, _default$i as MNumberRange, _default$p as MPanel, _default$6 as MRadioGroup, _default$o as MRow, _default$3 as MSelect, _default$b as MSwitch, _default$m as MTable, _default$n as MTabs, _default$k as MText, _default$h as MTextarea, _default$d as MTime, _default$9 as MTimerange, createForm, createValues, datetimeFormatter, _default as default, display, filterFunction, getRules, initValue, useAddField };
2509
1260
  export type { ChangeRecord, ContainerChangeEventData, FormInstallOptions, ValidateError };