@dazhicheng/ui 1.5.223 → 1.5.225
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/components/tt-form/index.d.ts +5 -3
- package/dist/components/tt-form/src/form/RenderContent.vue.js +8 -8
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +122 -122
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +4 -4
- package/dist/components/tt-form/src/form-render/context.d.ts +1 -1
- package/dist/components/tt-form/src/form-render/dependencies.js +56 -56
- package/dist/components/tt-form/src/form-render/form.vue.d.ts +1 -1
- package/dist/components/tt-form/src/formApi.d.ts +1 -1
- package/dist/components/tt-form/src/group-form/GroupForm.vue.d.ts +1 -1
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +35 -35
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +135 -134
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +68 -68
- package/dist/components/tt-form/src/group-form/groupFormApi.js +4 -4
- package/dist/components/tt-form/src/group-form/types.d.ts +25 -24
- package/dist/components/tt-form/src/group-form/useGroupForm.d.ts +2 -6
- package/dist/components/tt-form/src/group-form/utils.d.ts +8 -8
- package/dist/components/tt-form/src/index.vue.d.ts +12 -12
- package/dist/components/tt-form/src/types.d.ts +48 -47
- package/dist/components/tt-form/src/useForm.d.ts +2 -2
- package/dist/components/tt-modal/src/components/ModalHeader.vue.js +1 -1
- package/dist/components/tt-select/src/Select.vue.d.ts +4 -4
- package/dist/components/tt-select/src/components/Table.vue.d.ts +4 -4
- package/dist/components/tt-table/index.d.ts +12 -12
- package/dist/components/tt-table/src/Table.vue.d.ts +4 -4
- package/dist/components/tt-table/src/TableForm.vue.d.ts +162 -58
- package/dist/components/tt-table/src/TableForm.vue.js +126 -113
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +19 -1
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +103 -94
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Recordable } from '../../../../../utils/src';
|
|
2
|
-
import { Slot } from 'vue';
|
|
2
|
+
import { nextTick, Slot } from 'vue';
|
|
3
3
|
import { TtTableProps } from './types/table';
|
|
4
4
|
import { TtTableExtendedTableFormApi, TtTableFormProps } from './types/tableForm';
|
|
5
5
|
import { TtModalExtendedModalApi } from '../../tt-modal';
|
|
@@ -24,6 +24,10 @@ declare function __VLS_template(): {
|
|
|
24
24
|
"t-toolbar_tools-right"?: Slot<Recordable>;
|
|
25
25
|
/** 操作 */
|
|
26
26
|
"t-toolbar_tools"?: Slot<Recordable>;
|
|
27
|
+
/** 列设置弹框标题区域 */
|
|
28
|
+
"t-column-modal-title"?: Slot<Recordable>;
|
|
29
|
+
/** 列设置弹框底部按钮栏左侧区域 */
|
|
30
|
+
"t-column-modal-before-footer"?: Slot<Recordable>;
|
|
27
31
|
}> & {
|
|
28
32
|
[key: string]: Slot<Recordable> | undefined;
|
|
29
33
|
/** form下方的插槽 */
|
|
@@ -43,37 +47,84 @@ declare function __VLS_template(): {
|
|
|
43
47
|
"t-toolbar_tools-right"?: Slot<Recordable>;
|
|
44
48
|
/** 操作 */
|
|
45
49
|
"t-toolbar_tools"?: Slot<Recordable>;
|
|
50
|
+
/** 列设置弹框标题区域 */
|
|
51
|
+
"t-column-modal-title"?: Slot<Recordable>;
|
|
52
|
+
/** 列设置弹框底部按钮栏左侧区域 */
|
|
53
|
+
"t-column-modal-before-footer"?: Slot<Recordable>;
|
|
46
54
|
};
|
|
47
55
|
refs: {
|
|
48
|
-
tableColumnModalRef:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
tableColumnModalRef: ({
|
|
57
|
+
$: import('vue').ComponentInternalInstance;
|
|
58
|
+
$data: {};
|
|
59
|
+
$props: {
|
|
60
|
+
readonly openColumn?: ((boolean: boolean) => void) | undefined;
|
|
61
|
+
readonly openExport?: ((boolean: boolean) => void) | undefined;
|
|
62
|
+
readonly "onOn-submit"?: ((val: {
|
|
63
|
+
checkedModel: string[];
|
|
64
|
+
modalApi: TtModalExtendedModalApi;
|
|
65
|
+
isExport: boolean;
|
|
66
|
+
}) => any) | undefined;
|
|
67
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
68
|
+
$attrs: {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
};
|
|
71
|
+
$refs: {
|
|
72
|
+
[x: string]: unknown;
|
|
73
|
+
} & {
|
|
74
|
+
contentRef: HTMLDivElement;
|
|
75
|
+
};
|
|
76
|
+
$slots: Readonly<{
|
|
77
|
+
[name: string]: Slot<any> | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
80
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
81
|
+
$host: Element | null;
|
|
82
|
+
$emit: (event: "on-submit", val: {
|
|
63
83
|
checkedModel: string[];
|
|
64
84
|
modalApi: TtModalExtendedModalApi;
|
|
65
85
|
isExport: boolean;
|
|
66
|
-
}) =>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
86
|
+
}) => void;
|
|
87
|
+
$el: any;
|
|
88
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
89
|
+
openColumn?: (boolean: boolean) => void;
|
|
90
|
+
openExport?: (boolean: boolean) => void;
|
|
91
|
+
}> & Readonly<{
|
|
92
|
+
"onOn-submit"?: ((val: {
|
|
93
|
+
checkedModel: string[];
|
|
94
|
+
modalApi: TtModalExtendedModalApi;
|
|
95
|
+
isExport: boolean;
|
|
96
|
+
}) => any) | undefined;
|
|
97
|
+
}>, {
|
|
98
|
+
handleSubmit: () => void;
|
|
99
|
+
openModal: ({ columns, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
|
|
100
|
+
setModalProps(modalProps: import('../../../index').ModalRenderState): void;
|
|
101
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
102
|
+
"on-submit": (val: {
|
|
103
|
+
checkedModel: string[];
|
|
104
|
+
modalApi: TtModalExtendedModalApi;
|
|
105
|
+
isExport: boolean;
|
|
106
|
+
}) => any;
|
|
107
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
108
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
109
|
+
created?: (() => void) | (() => void)[];
|
|
110
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
111
|
+
mounted?: (() => void) | (() => void)[];
|
|
112
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
113
|
+
updated?: (() => void) | (() => void)[];
|
|
114
|
+
activated?: (() => void) | (() => void)[];
|
|
115
|
+
deactivated?: (() => void) | (() => void)[];
|
|
116
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
117
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
118
|
+
destroyed?: (() => void) | (() => void)[];
|
|
119
|
+
unmounted?: (() => void) | (() => void)[];
|
|
120
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
121
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
122
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
123
|
+
};
|
|
124
|
+
$forceUpdate: () => void;
|
|
125
|
+
$nextTick: typeof nextTick;
|
|
126
|
+
$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').WatchOptions): import('vue').WatchStopHandle;
|
|
127
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
77
128
|
openColumn?: (boolean: boolean) => void;
|
|
78
129
|
openExport?: (boolean: boolean) => void;
|
|
79
130
|
}> & Readonly<{
|
|
@@ -82,11 +133,16 @@ declare function __VLS_template(): {
|
|
|
82
133
|
modalApi: TtModalExtendedModalApi;
|
|
83
134
|
isExport: boolean;
|
|
84
135
|
}) => any) | undefined;
|
|
85
|
-
}>, {
|
|
136
|
+
}>, "setModalProps" | "openModal" | "handleSubmit"> & import('vue').ShallowUnwrapRef<{
|
|
86
137
|
handleSubmit: () => void;
|
|
87
138
|
openModal: ({ columns, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
|
|
88
139
|
setModalProps(modalProps: import('../../../index').ModalRenderState): void;
|
|
89
|
-
}
|
|
140
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
141
|
+
$slots: {
|
|
142
|
+
title?(_: {}): any;
|
|
143
|
+
beforeFooter?(_: {}): any;
|
|
144
|
+
};
|
|
145
|
+
}) | null;
|
|
90
146
|
};
|
|
91
147
|
rootEl: HTMLDivElement;
|
|
92
148
|
};
|
|
@@ -175,7 +231,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
175
231
|
type: import('vue').PropType<TtTableExtendedTableFormApi>;
|
|
176
232
|
};
|
|
177
233
|
}>> & Readonly<{}>, {
|
|
178
|
-
form: Partial<import('../../../index').TtFormProps<
|
|
234
|
+
form: Partial<import('../../../index').TtFormProps<Record<string, any>>>;
|
|
179
235
|
table: Partial<TtTableProps>;
|
|
180
236
|
tableRowId: string;
|
|
181
237
|
useSearchForm: any;
|
|
@@ -185,35 +241,78 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
185
241
|
toolConfig: import('../../../index').TtTableToolsProps;
|
|
186
242
|
tableRefreshBefore: Fn<any, any>;
|
|
187
243
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
188
|
-
tableColumnModalRef:
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
244
|
+
tableColumnModalRef: ({
|
|
245
|
+
$: import('vue').ComponentInternalInstance;
|
|
246
|
+
$data: {};
|
|
247
|
+
$props: {
|
|
248
|
+
readonly openColumn?: ((boolean: boolean) => void) | undefined;
|
|
249
|
+
readonly openExport?: ((boolean: boolean) => void) | undefined;
|
|
250
|
+
readonly "onOn-submit"?: ((val: {
|
|
251
|
+
checkedModel: string[];
|
|
252
|
+
modalApi: TtModalExtendedModalApi;
|
|
253
|
+
isExport: boolean;
|
|
254
|
+
}) => any) | undefined;
|
|
255
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
256
|
+
$attrs: {
|
|
257
|
+
[x: string]: unknown;
|
|
258
|
+
};
|
|
259
|
+
$refs: {
|
|
260
|
+
[x: string]: unknown;
|
|
261
|
+
} & {
|
|
262
|
+
contentRef: HTMLDivElement;
|
|
263
|
+
};
|
|
264
|
+
$slots: Readonly<{
|
|
265
|
+
[name: string]: Slot<any> | undefined;
|
|
266
|
+
}>;
|
|
267
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
268
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
269
|
+
$host: Element | null;
|
|
270
|
+
$emit: (event: "on-submit", val: {
|
|
203
271
|
checkedModel: string[];
|
|
204
272
|
modalApi: TtModalExtendedModalApi;
|
|
205
273
|
isExport: boolean;
|
|
206
|
-
}) =>
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
274
|
+
}) => void;
|
|
275
|
+
$el: any;
|
|
276
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
277
|
+
openColumn?: (boolean: boolean) => void;
|
|
278
|
+
openExport?: (boolean: boolean) => void;
|
|
279
|
+
}> & Readonly<{
|
|
280
|
+
"onOn-submit"?: ((val: {
|
|
281
|
+
checkedModel: string[];
|
|
282
|
+
modalApi: TtModalExtendedModalApi;
|
|
283
|
+
isExport: boolean;
|
|
284
|
+
}) => any) | undefined;
|
|
285
|
+
}>, {
|
|
286
|
+
handleSubmit: () => void;
|
|
287
|
+
openModal: ({ columns, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
|
|
288
|
+
setModalProps(modalProps: import('../../../index').ModalRenderState): void;
|
|
289
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
290
|
+
"on-submit": (val: {
|
|
291
|
+
checkedModel: string[];
|
|
292
|
+
modalApi: TtModalExtendedModalApi;
|
|
293
|
+
isExport: boolean;
|
|
294
|
+
}) => any;
|
|
295
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
296
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
297
|
+
created?: (() => void) | (() => void)[];
|
|
298
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
299
|
+
mounted?: (() => void) | (() => void)[];
|
|
300
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
301
|
+
updated?: (() => void) | (() => void)[];
|
|
302
|
+
activated?: (() => void) | (() => void)[];
|
|
303
|
+
deactivated?: (() => void) | (() => void)[];
|
|
304
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
305
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
306
|
+
destroyed?: (() => void) | (() => void)[];
|
|
307
|
+
unmounted?: (() => void) | (() => void)[];
|
|
308
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
309
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
310
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
311
|
+
};
|
|
312
|
+
$forceUpdate: () => void;
|
|
313
|
+
$nextTick: typeof nextTick;
|
|
314
|
+
$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').WatchOptions): import('vue').WatchStopHandle;
|
|
315
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
217
316
|
openColumn?: (boolean: boolean) => void;
|
|
218
317
|
openExport?: (boolean: boolean) => void;
|
|
219
318
|
}> & Readonly<{
|
|
@@ -222,11 +321,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
222
321
|
modalApi: TtModalExtendedModalApi;
|
|
223
322
|
isExport: boolean;
|
|
224
323
|
}) => any) | undefined;
|
|
225
|
-
}>, {
|
|
324
|
+
}>, "setModalProps" | "openModal" | "handleSubmit"> & import('vue').ShallowUnwrapRef<{
|
|
226
325
|
handleSubmit: () => void;
|
|
227
326
|
openModal: ({ columns, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
|
|
228
327
|
setModalProps(modalProps: import('../../../index').ModalRenderState): void;
|
|
229
|
-
}
|
|
328
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
329
|
+
$slots: {
|
|
330
|
+
title?(_: {}): any;
|
|
331
|
+
beforeFooter?(_: {}): any;
|
|
332
|
+
};
|
|
333
|
+
}) | null;
|
|
230
334
|
}, HTMLDivElement>;
|
|
231
335
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
232
336
|
export default _default;
|