@dazhicheng/ui 1.5.180 → 1.5.183
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-button/index.d.ts +11 -9
- package/dist/components/tt-button/index.vue.d.ts +8 -6
- package/dist/components/tt-drawer/index.d.ts +23 -23
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +11 -11
- package/dist/components/tt-form/index.d.ts +1 -1
- package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +5 -5
- package/dist/components/tt-form/src/form-render/FormFieldContact.d.ts +4 -4
- package/dist/components/tt-form/src/form-render/FormLabel.vue.d.ts +0 -3
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +6 -6
- package/dist/components/tt-form/src/form-render/form.vue.d.ts +19 -3
- package/dist/components/tt-form/src/group-form/GroupForm.vue.d.ts +1 -1
- package/dist/components/tt-form/src/group-form/index.d.ts +1 -1
- package/dist/components/tt-form/src/index.vue.d.ts +29 -5
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +8 -8
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +4 -4
- package/dist/components/tt-image/index.d.ts +2 -2
- package/dist/components/tt-image/tt-image.d.ts +2 -2
- package/dist/components/tt-loading/index.d.ts +2 -2
- package/dist/components/tt-loading/src/loading.vue.d.ts +2 -2
- package/dist/components/tt-modal/index.d.ts +50 -50
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +28 -28
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +1 -1
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +9 -9
- package/dist/components/tt-modal-form/index.vue.d.ts +2 -2
- package/dist/components/tt-nav-anchor/index.d.ts +3 -3
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +2 -2
- package/dist/components/tt-panel-select/src/index.vue.d.ts +408 -0
- package/dist/components/tt-select/src/Select.vue.d.ts +6 -4
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +1 -1
- package/dist/components/tt-select/src/components/Table.vue.d.ts +2 -2
- package/dist/components/tt-select/src/hooks/useDataSource.d.ts +1 -1
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +1 -1
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
- package/dist/components/tt-table/index.d.ts +9 -9
- package/dist/components/tt-table/src/Table.vue.d.ts +5 -5
- package/dist/components/tt-table/src/TableForm.vue.d.ts +237 -0
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +1 -1
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +8 -8
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +4 -3
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +1 -1
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +2 -2
- package/dist/components/tt-table/src/props.d.ts +3 -3
- package/dist/components/tt-table/src/types/table.d.ts +8 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +1 -1
- package/dist/components/tt-text/index.d.ts +3 -3
- package/dist/components/tt-text/index.vue.d.ts +1 -1
- package/dist/components/tt-upload/index.d.ts +14 -14
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +5 -5
- package/dist/components/types.d.ts +2 -0
- package/dist/hooks/useTemplateSlot.d.ts +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +10890 -11342
- package/dist/style.css +1 -1
- package/package.json +15 -6
- package/dist/components/tt-tree-select/index.d.ts +0 -5
- package/dist/components/tt-tree-select/src/TtTreeSelect.vue.d.ts +0 -6
- package/dist/components/tt-tree-select/src/cache-options.d.ts +0 -35
- package/dist/components/tt-tree-select/src/select.d.ts +0 -10
- package/dist/components/tt-tree-select/src/tree.d.ts +0 -23
- package/dist/components/tt-tree-select/src/utils.d.ts +0 -10
|
@@ -3,7 +3,7 @@ import { VxeGridProps } from 'vxe-table';
|
|
|
3
3
|
declare function getGridInstance(): import('vxe-table').VxeGridInstance | undefined;
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
attrs: Partial<{}>;
|
|
6
|
-
slots: any
|
|
6
|
+
slots: Partial<Record<string, (_: any) => any>>;
|
|
7
7
|
refs: {
|
|
8
8
|
gridRef: any;
|
|
9
9
|
};
|
|
@@ -25,10 +25,10 @@ declare function getData(rowIndex?: number): Record<string, any> | Record<string
|
|
|
25
25
|
declare function __VLS_template(): {
|
|
26
26
|
attrs: Partial<{}>;
|
|
27
27
|
slots: Readonly<{
|
|
28
|
-
[slotName: string]: () => VNode;
|
|
28
|
+
[slotName: string]: (props: Record<string, any>) => VNode;
|
|
29
29
|
empty: () => VNode;
|
|
30
30
|
}> & {
|
|
31
|
-
[slotName: string]: () => VNode;
|
|
31
|
+
[slotName: string]: (props: Record<string, any>) => VNode;
|
|
32
32
|
empty: () => VNode;
|
|
33
33
|
};
|
|
34
34
|
refs: {
|
|
@@ -10,7 +10,7 @@ import { TtSelectTableProps } from '../props';
|
|
|
10
10
|
export declare function useGrid(props: ComputedRef<VxeGridProps>, opt: ComputedRef<TtSelectTableProps>): {
|
|
11
11
|
getColumns: ComputedRef<VxeGridPropTypes.Columns<any>>;
|
|
12
12
|
rowStyle: ({ row }: {
|
|
13
|
-
row:
|
|
13
|
+
row: Record<string, unknown>;
|
|
14
14
|
}) => {
|
|
15
15
|
color: string;
|
|
16
16
|
fontWeight: number;
|
|
@@ -173,6 +173,6 @@ export declare function useSelectTableEvent(props: ComputedRef<TtSelectProps>, o
|
|
|
173
173
|
ArrowDown: () => void;
|
|
174
174
|
Enter: () => void;
|
|
175
175
|
};
|
|
176
|
-
defaultDataSelect: (val:
|
|
176
|
+
defaultDataSelect: (val: unknown, isNeedScrollToTop?: boolean, isSrcollBoundary?: boolean, isEmitChange?: boolean) => void;
|
|
177
177
|
};
|
|
178
178
|
export {};
|
|
@@ -193,7 +193,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
193
193
|
};
|
|
194
194
|
showLineHeight: {
|
|
195
195
|
type: BooleanConstructor;
|
|
196
|
-
default: () =>
|
|
196
|
+
default: () => boolean | undefined;
|
|
197
197
|
};
|
|
198
198
|
notSetColumnField: any;
|
|
199
199
|
filterNoVisibleField: any;
|
|
@@ -288,7 +288,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
288
288
|
default: () => string | undefined;
|
|
289
289
|
};
|
|
290
290
|
modelValue: {
|
|
291
|
-
type:
|
|
291
|
+
type: import('vue').PropType<Recordable[]>;
|
|
292
292
|
default: () => never[];
|
|
293
293
|
};
|
|
294
294
|
title: any;
|
|
@@ -403,7 +403,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
403
403
|
size: import('vxe-pc-ui').VxeComponentSizeType | undefined;
|
|
404
404
|
immediate: any;
|
|
405
405
|
height: string | number;
|
|
406
|
-
modelValue:
|
|
406
|
+
modelValue: Recordable<any>[];
|
|
407
407
|
total: any;
|
|
408
408
|
loadingText: string;
|
|
409
409
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
@@ -822,7 +822,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
822
822
|
};
|
|
823
823
|
showLineHeight: {
|
|
824
824
|
type: BooleanConstructor;
|
|
825
|
-
default: () =>
|
|
825
|
+
default: () => boolean | undefined;
|
|
826
826
|
};
|
|
827
827
|
notSetColumnField: any;
|
|
828
828
|
filterNoVisibleField: any;
|
|
@@ -917,7 +917,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
917
917
|
default: () => string | undefined;
|
|
918
918
|
};
|
|
919
919
|
modelValue: {
|
|
920
|
-
type:
|
|
920
|
+
type: import('vue').PropType<Recordable[]>;
|
|
921
921
|
default: () => never[];
|
|
922
922
|
};
|
|
923
923
|
title: any;
|
|
@@ -1032,7 +1032,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1032
1032
|
size: import('vxe-pc-ui').VxeComponentSizeType | undefined;
|
|
1033
1033
|
immediate: any;
|
|
1034
1034
|
height: string | number;
|
|
1035
|
-
modelValue:
|
|
1035
|
+
modelValue: Recordable<any>[];
|
|
1036
1036
|
total: any;
|
|
1037
1037
|
loadingText: string;
|
|
1038
1038
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
@@ -1184,7 +1184,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1184
1184
|
};
|
|
1185
1185
|
showLineHeight: {
|
|
1186
1186
|
type: BooleanConstructor;
|
|
1187
|
-
default: () =>
|
|
1187
|
+
default: () => boolean | undefined;
|
|
1188
1188
|
};
|
|
1189
1189
|
notSetColumnField: any;
|
|
1190
1190
|
filterNoVisibleField: any;
|
|
@@ -1279,7 +1279,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1279
1279
|
default: () => string | undefined;
|
|
1280
1280
|
};
|
|
1281
1281
|
modelValue: {
|
|
1282
|
-
type:
|
|
1282
|
+
type: import('vue').PropType<Recordable[]>;
|
|
1283
1283
|
default: () => never[];
|
|
1284
1284
|
};
|
|
1285
1285
|
title: any;
|
|
@@ -1394,7 +1394,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1394
1394
|
size: import('vxe-pc-ui').VxeComponentSizeType | undefined;
|
|
1395
1395
|
immediate: any;
|
|
1396
1396
|
height: string | number;
|
|
1397
|
-
modelValue:
|
|
1397
|
+
modelValue: Recordable<any>[];
|
|
1398
1398
|
total: any;
|
|
1399
1399
|
loadingText: string;
|
|
1400
1400
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
@@ -363,7 +363,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
363
363
|
};
|
|
364
364
|
showLineHeight: {
|
|
365
365
|
type: BooleanConstructor;
|
|
366
|
-
default: () =>
|
|
366
|
+
default: () => boolean | undefined;
|
|
367
367
|
};
|
|
368
368
|
notSetColumnField: any;
|
|
369
369
|
filterNoVisibleField: any;
|
|
@@ -458,7 +458,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
458
458
|
default: () => string | undefined;
|
|
459
459
|
};
|
|
460
460
|
modelValue: {
|
|
461
|
-
type:
|
|
461
|
+
type: import('vue').PropType<globalThis.Recordable[]>;
|
|
462
462
|
default: () => never[];
|
|
463
463
|
};
|
|
464
464
|
title: any;
|
|
@@ -641,7 +641,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
641
641
|
};
|
|
642
642
|
showLineHeight: {
|
|
643
643
|
type: BooleanConstructor;
|
|
644
|
-
default: () =>
|
|
644
|
+
default: () => boolean | undefined;
|
|
645
645
|
};
|
|
646
646
|
notSetColumnField: any;
|
|
647
647
|
filterNoVisibleField: any;
|
|
@@ -736,7 +736,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
736
736
|
default: () => string | undefined;
|
|
737
737
|
};
|
|
738
738
|
modelValue: {
|
|
739
|
-
type:
|
|
739
|
+
type: import('vue').PropType<globalThis.Recordable[]>;
|
|
740
740
|
default: () => never[];
|
|
741
741
|
};
|
|
742
742
|
title: any;
|
|
@@ -797,7 +797,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
797
797
|
size: import('vxe-pc-ui').VxeComponentSizeType | undefined;
|
|
798
798
|
immediate: any;
|
|
799
799
|
height: string | number;
|
|
800
|
-
modelValue:
|
|
800
|
+
modelValue: globalThis.Recordable<any>[];
|
|
801
801
|
total: any;
|
|
802
802
|
loadingText: string;
|
|
803
803
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { Recordable } from '../../../../../utils/src';
|
|
2
|
+
import { Slot } from 'vue';
|
|
3
|
+
import { TtTableProps } from './types/table';
|
|
4
|
+
import { TtTableExtendedTableFormApi, TtTableFormProps } from './types/tableForm';
|
|
5
|
+
import { TtModalExtendedModalApi } from '../../tt-modal';
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<{
|
|
9
|
+
[key: string]: Slot<Recordable> | undefined;
|
|
10
|
+
/** form下方的插槽 */
|
|
11
|
+
"header-down"?: Slot<Recordable>;
|
|
12
|
+
/** table左侧插槽 */
|
|
13
|
+
"table-left"?: Slot<Recordable>;
|
|
14
|
+
/** table右侧插槽 */
|
|
15
|
+
"table-right"?: Slot<Recordable>;
|
|
16
|
+
/** 表格上方的插槽 */
|
|
17
|
+
"table-top"?: Slot<Recordable>;
|
|
18
|
+
/** 表格下方的插槽 */
|
|
19
|
+
"table-bottom"?: Slot<Recordable>;
|
|
20
|
+
default?: Slot<Recordable>;
|
|
21
|
+
/** 工具栏左侧插槽 */
|
|
22
|
+
"t-toolbar_tools-left"?: Slot<Recordable>;
|
|
23
|
+
/** 工具栏右侧插槽 */
|
|
24
|
+
"t-toolbar_tools-right"?: Slot<Recordable>;
|
|
25
|
+
/** 操作 */
|
|
26
|
+
"t-toolbar_tools"?: Slot<Recordable>;
|
|
27
|
+
}> & {
|
|
28
|
+
[key: string]: Slot<Recordable> | undefined;
|
|
29
|
+
/** form下方的插槽 */
|
|
30
|
+
"header-down"?: Slot<Recordable>;
|
|
31
|
+
/** table左侧插槽 */
|
|
32
|
+
"table-left"?: Slot<Recordable>;
|
|
33
|
+
/** table右侧插槽 */
|
|
34
|
+
"table-right"?: Slot<Recordable>;
|
|
35
|
+
/** 表格上方的插槽 */
|
|
36
|
+
"table-top"?: Slot<Recordable>;
|
|
37
|
+
/** 表格下方的插槽 */
|
|
38
|
+
"table-bottom"?: Slot<Recordable>;
|
|
39
|
+
default?: Slot<Recordable>;
|
|
40
|
+
/** 工具栏左侧插槽 */
|
|
41
|
+
"t-toolbar_tools-left"?: Slot<Recordable>;
|
|
42
|
+
/** 工具栏右侧插槽 */
|
|
43
|
+
"t-toolbar_tools-right"?: Slot<Recordable>;
|
|
44
|
+
/** 操作 */
|
|
45
|
+
"t-toolbar_tools"?: Slot<Recordable>;
|
|
46
|
+
};
|
|
47
|
+
refs: {
|
|
48
|
+
tableColumnModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
49
|
+
openColumn?: (boolean: boolean) => void;
|
|
50
|
+
openExport?: (boolean: boolean) => void;
|
|
51
|
+
}> & Readonly<{
|
|
52
|
+
"onOn-submit"?: ((val: {
|
|
53
|
+
checkedModel: string[];
|
|
54
|
+
modalApi: TtModalExtendedModalApi;
|
|
55
|
+
isExport: boolean;
|
|
56
|
+
}) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
handleSubmit: () => void;
|
|
59
|
+
openModal: ({ columns, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
|
|
60
|
+
setModalProps(modalProps: import('../../../index').ModalRenderState): void;
|
|
61
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
|
+
"on-submit": (val: {
|
|
63
|
+
checkedModel: string[];
|
|
64
|
+
modalApi: TtModalExtendedModalApi;
|
|
65
|
+
isExport: boolean;
|
|
66
|
+
}) => any;
|
|
67
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
68
|
+
contentRef: HTMLDivElement;
|
|
69
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
70
|
+
P: {};
|
|
71
|
+
B: {};
|
|
72
|
+
D: {};
|
|
73
|
+
C: {};
|
|
74
|
+
M: {};
|
|
75
|
+
Defaults: {};
|
|
76
|
+
}, Readonly<{
|
|
77
|
+
openColumn?: (boolean: boolean) => void;
|
|
78
|
+
openExport?: (boolean: boolean) => void;
|
|
79
|
+
}> & Readonly<{
|
|
80
|
+
"onOn-submit"?: ((val: {
|
|
81
|
+
checkedModel: string[];
|
|
82
|
+
modalApi: TtModalExtendedModalApi;
|
|
83
|
+
isExport: boolean;
|
|
84
|
+
}) => any) | undefined;
|
|
85
|
+
}>, {
|
|
86
|
+
handleSubmit: () => void;
|
|
87
|
+
openModal: ({ columns, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
|
|
88
|
+
setModalProps(modalProps: import('../../../index').ModalRenderState): void;
|
|
89
|
+
}, {}, {}, {}, {}> | null;
|
|
90
|
+
};
|
|
91
|
+
rootEl: HTMLDivElement;
|
|
92
|
+
};
|
|
93
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
94
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
95
|
+
tableData: {
|
|
96
|
+
type: import('vue').PropType<globalThis.Recordable[]>;
|
|
97
|
+
default: () => never[];
|
|
98
|
+
};
|
|
99
|
+
table: {
|
|
100
|
+
type: import('vue').PropType<Partial<TtTableProps>>;
|
|
101
|
+
default: Record<string, unknown>;
|
|
102
|
+
};
|
|
103
|
+
useSearchForm: any;
|
|
104
|
+
form: {
|
|
105
|
+
type: import('vue').PropType<Partial<import('../../../index').TtFormProps>>;
|
|
106
|
+
default: () => {};
|
|
107
|
+
};
|
|
108
|
+
handleSearchInfoFn: {
|
|
109
|
+
type: import('vue').PropType<Fn>;
|
|
110
|
+
default: null;
|
|
111
|
+
};
|
|
112
|
+
tableRefreshBefore: {
|
|
113
|
+
type: import('vue').PropType<Fn>;
|
|
114
|
+
default: null;
|
|
115
|
+
};
|
|
116
|
+
toolConfig: {
|
|
117
|
+
type: import('vue').PropType<import('../../../index').TtTableToolsProps>;
|
|
118
|
+
default: null;
|
|
119
|
+
};
|
|
120
|
+
tableRowId: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: () => string | undefined;
|
|
123
|
+
};
|
|
124
|
+
testId: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
tableFormApi: {
|
|
129
|
+
type: import('vue').PropType<TtTableExtendedTableFormApi>;
|
|
130
|
+
};
|
|
131
|
+
}>, {
|
|
132
|
+
instance: import('vue').ComponentInternalInstance | null;
|
|
133
|
+
setTableProps: (props: Partial<TtTableProps>) => void;
|
|
134
|
+
setFormProps: (props: import('../../../index').TtTableFormRenderFormProps) => void;
|
|
135
|
+
tableMethods: import('../../../index').TtTableMethods;
|
|
136
|
+
formMethods: import('../../../index').TtTableRenderFormInstance;
|
|
137
|
+
setProps: (props: Partial<TtTableFormProps>) => void;
|
|
138
|
+
reload: import('../../../index').TtTableMethods["reload"];
|
|
139
|
+
selectedKeys: import('vue').MaybeRef<import('../../../index').TtSelectRowKeysType>;
|
|
140
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
141
|
+
tableData: {
|
|
142
|
+
type: import('vue').PropType<globalThis.Recordable[]>;
|
|
143
|
+
default: () => never[];
|
|
144
|
+
};
|
|
145
|
+
table: {
|
|
146
|
+
type: import('vue').PropType<Partial<TtTableProps>>;
|
|
147
|
+
default: Record<string, unknown>;
|
|
148
|
+
};
|
|
149
|
+
useSearchForm: any;
|
|
150
|
+
form: {
|
|
151
|
+
type: import('vue').PropType<Partial<import('../../../index').TtFormProps>>;
|
|
152
|
+
default: () => {};
|
|
153
|
+
};
|
|
154
|
+
handleSearchInfoFn: {
|
|
155
|
+
type: import('vue').PropType<Fn>;
|
|
156
|
+
default: null;
|
|
157
|
+
};
|
|
158
|
+
tableRefreshBefore: {
|
|
159
|
+
type: import('vue').PropType<Fn>;
|
|
160
|
+
default: null;
|
|
161
|
+
};
|
|
162
|
+
toolConfig: {
|
|
163
|
+
type: import('vue').PropType<import('../../../index').TtTableToolsProps>;
|
|
164
|
+
default: null;
|
|
165
|
+
};
|
|
166
|
+
tableRowId: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
default: () => string | undefined;
|
|
169
|
+
};
|
|
170
|
+
testId: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: undefined;
|
|
173
|
+
};
|
|
174
|
+
tableFormApi: {
|
|
175
|
+
type: import('vue').PropType<TtTableExtendedTableFormApi>;
|
|
176
|
+
};
|
|
177
|
+
}>> & Readonly<{}>, {
|
|
178
|
+
form: Partial<import('../../../index').TtFormProps<keyof import('../../../index').BaseFormComponentMap>>;
|
|
179
|
+
table: Partial<TtTableProps>;
|
|
180
|
+
tableRowId: string;
|
|
181
|
+
useSearchForm: any;
|
|
182
|
+
testId: string;
|
|
183
|
+
tableData: globalThis.Recordable<any>[];
|
|
184
|
+
handleSearchInfoFn: Fn<any, any>;
|
|
185
|
+
toolConfig: import('../../../index').TtTableToolsProps;
|
|
186
|
+
tableRefreshBefore: Fn<any, any>;
|
|
187
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
188
|
+
tableColumnModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
189
|
+
openColumn?: (boolean: boolean) => void;
|
|
190
|
+
openExport?: (boolean: boolean) => void;
|
|
191
|
+
}> & Readonly<{
|
|
192
|
+
"onOn-submit"?: ((val: {
|
|
193
|
+
checkedModel: string[];
|
|
194
|
+
modalApi: TtModalExtendedModalApi;
|
|
195
|
+
isExport: boolean;
|
|
196
|
+
}) => any) | undefined;
|
|
197
|
+
}>, {
|
|
198
|
+
handleSubmit: () => void;
|
|
199
|
+
openModal: ({ columns, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
|
|
200
|
+
setModalProps(modalProps: import('../../../index').ModalRenderState): void;
|
|
201
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
202
|
+
"on-submit": (val: {
|
|
203
|
+
checkedModel: string[];
|
|
204
|
+
modalApi: TtModalExtendedModalApi;
|
|
205
|
+
isExport: boolean;
|
|
206
|
+
}) => any;
|
|
207
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
208
|
+
contentRef: HTMLDivElement;
|
|
209
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
210
|
+
P: {};
|
|
211
|
+
B: {};
|
|
212
|
+
D: {};
|
|
213
|
+
C: {};
|
|
214
|
+
M: {};
|
|
215
|
+
Defaults: {};
|
|
216
|
+
}, Readonly<{
|
|
217
|
+
openColumn?: (boolean: boolean) => void;
|
|
218
|
+
openExport?: (boolean: boolean) => void;
|
|
219
|
+
}> & Readonly<{
|
|
220
|
+
"onOn-submit"?: ((val: {
|
|
221
|
+
checkedModel: string[];
|
|
222
|
+
modalApi: TtModalExtendedModalApi;
|
|
223
|
+
isExport: boolean;
|
|
224
|
+
}) => any) | undefined;
|
|
225
|
+
}>, {
|
|
226
|
+
handleSubmit: () => void;
|
|
227
|
+
openModal: ({ columns, displayFields, disabledColumnField, isExport }: import('./components/TableColumnModal.vue').OpenModalParams) => void;
|
|
228
|
+
setModalProps(modalProps: import('../../../index').ModalRenderState): void;
|
|
229
|
+
}, {}, {}, {}, {}> | null;
|
|
230
|
+
}, HTMLDivElement>;
|
|
231
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
232
|
+
export default _default;
|
|
233
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
234
|
+
new (): {
|
|
235
|
+
$slots: S;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TtModalExtendedModalApi, ModalRenderState } from '../../../tt-modal';
|
|
2
2
|
import { VxeTableDefines } from 'vxe-table';
|
|
3
|
-
interface OpenModalParams {
|
|
3
|
+
export interface OpenModalParams {
|
|
4
4
|
columns: VxeTableDefines.ColumnOptions[];
|
|
5
5
|
displayFields?: string[];
|
|
6
6
|
disabledColumnField: string[];
|
|
@@ -30,11 +30,9 @@ declare function __VLS_template(): {
|
|
|
30
30
|
readonly showAfter?: number | undefined;
|
|
31
31
|
readonly hideAfter?: number | undefined;
|
|
32
32
|
readonly autoClose?: number | undefined;
|
|
33
|
+
readonly placement?: import('element-plus').Placement | undefined;
|
|
33
34
|
readonly style?: import('vue').StyleValue;
|
|
34
35
|
readonly id?: string | undefined;
|
|
35
|
-
readonly offset?: number | undefined;
|
|
36
|
-
readonly placement?: import('element-plus').Placement | undefined;
|
|
37
|
-
readonly zIndex?: number | undefined;
|
|
38
36
|
readonly className?: (string | {
|
|
39
37
|
[x: string]: boolean;
|
|
40
38
|
} | (string | {
|
|
@@ -95,10 +93,12 @@ declare function __VLS_template(): {
|
|
|
95
93
|
readonly triggerTargetEl?: HTMLElement | undefined;
|
|
96
94
|
readonly stopPopperMouseEvent?: boolean | undefined;
|
|
97
95
|
readonly virtualTriggering?: boolean | undefined;
|
|
96
|
+
readonly zIndex?: number | undefined;
|
|
98
97
|
readonly loop?: boolean | undefined;
|
|
99
98
|
readonly boundariesPadding?: number | undefined;
|
|
100
99
|
readonly fallbackPlacements?: import('element-plus').Placement[] | undefined;
|
|
101
100
|
readonly gpuAcceleration?: boolean | undefined;
|
|
101
|
+
readonly offset?: number | undefined;
|
|
102
102
|
readonly popperOptions?: Partial<import('element-plus').Options> | undefined;
|
|
103
103
|
readonly strategy?: ("fixed" | "absolute") | undefined;
|
|
104
104
|
readonly arrowOffset?: number | undefined;
|
|
@@ -243,7 +243,7 @@ declare function __VLS_template(): {
|
|
|
243
243
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
244
244
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
245
245
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
246
|
-
}>, "
|
|
246
|
+
}>, "placement" | "style" | "onClose" | "visible" | "effect" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "virtualTriggering" | "loop" | "boundariesPadding" | "gpuAcceleration" | "offset" | "popperOptions" | "strategy" | "arrowOffset" | "showArrow" | "role" | "content" | "teleported" | "showAfter" | "hideAfter" | "autoClose" | "trigger" | "triggerKeys" | "onOpen" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper" | "hide"> & import('vue').ShallowUnwrapRef<{
|
|
247
247
|
popperRef: import('vue').Ref<import('element-plus').PopperInstance | undefined, import('element-plus').PopperInstance | undefined>;
|
|
248
248
|
contentRef: import('vue').Ref<import('element-plus').TooltipContentInstance | undefined, import('element-plus').TooltipContentInstance | undefined>;
|
|
249
249
|
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
@@ -332,11 +332,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
332
332
|
readonly showAfter?: number | undefined;
|
|
333
333
|
readonly hideAfter?: number | undefined;
|
|
334
334
|
readonly autoClose?: number | undefined;
|
|
335
|
+
readonly placement?: import('element-plus').Placement | undefined;
|
|
335
336
|
readonly style?: import('vue').StyleValue;
|
|
336
337
|
readonly id?: string | undefined;
|
|
337
|
-
readonly offset?: number | undefined;
|
|
338
|
-
readonly placement?: import('element-plus').Placement | undefined;
|
|
339
|
-
readonly zIndex?: number | undefined;
|
|
340
338
|
readonly className?: (string | {
|
|
341
339
|
[x: string]: boolean;
|
|
342
340
|
} | (string | {
|
|
@@ -397,10 +395,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
397
395
|
readonly triggerTargetEl?: HTMLElement | undefined;
|
|
398
396
|
readonly stopPopperMouseEvent?: boolean | undefined;
|
|
399
397
|
readonly virtualTriggering?: boolean | undefined;
|
|
398
|
+
readonly zIndex?: number | undefined;
|
|
400
399
|
readonly loop?: boolean | undefined;
|
|
401
400
|
readonly boundariesPadding?: number | undefined;
|
|
402
401
|
readonly fallbackPlacements?: import('element-plus').Placement[] | undefined;
|
|
403
402
|
readonly gpuAcceleration?: boolean | undefined;
|
|
403
|
+
readonly offset?: number | undefined;
|
|
404
404
|
readonly popperOptions?: Partial<import('element-plus').Options> | undefined;
|
|
405
405
|
readonly strategy?: ("fixed" | "absolute") | undefined;
|
|
406
406
|
readonly arrowOffset?: number | undefined;
|
|
@@ -545,7 +545,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
545
545
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
546
546
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
547
547
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
548
|
-
}>, "
|
|
548
|
+
}>, "placement" | "style" | "onClose" | "visible" | "effect" | "enterable" | "pure" | "focusOnShow" | "trapping" | "popperStyle" | "stopPopperMouseEvent" | "virtualTriggering" | "loop" | "boundariesPadding" | "gpuAcceleration" | "offset" | "popperOptions" | "strategy" | "arrowOffset" | "showArrow" | "role" | "content" | "teleported" | "showAfter" | "hideAfter" | "autoClose" | "trigger" | "triggerKeys" | "onOpen" | "popperRef" | "contentRef" | "isFocusInsideContent" | "updatePopper" | "hide"> & import('vue').ShallowUnwrapRef<{
|
|
549
549
|
popperRef: import('vue').Ref<import('element-plus').PopperInstance | undefined, import('element-plus').PopperInstance | undefined>;
|
|
550
550
|
contentRef: import('vue').Ref<import('element-plus').TooltipContentInstance | undefined, import('element-plus').TooltipContentInstance | undefined>;
|
|
551
551
|
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VxeGridPropTypes } from 'vxe-table';
|
|
2
2
|
import { TtTableProps } from '../types/table';
|
|
3
3
|
import { ComputedRef } from 'vue';
|
|
4
|
+
import { VxePagerDefines, VxePagerEvents } from 'vxe-pc-ui';
|
|
4
5
|
type PaginationProps = VxeGridPropTypes.PagerConfig;
|
|
5
6
|
export declare function usePagination(refProps: ComputedRef<TtTableProps>, emit: (event: "page-change", data: any) => void): {
|
|
6
7
|
configRef: import('vue').Ref<{
|
|
@@ -23,7 +24,7 @@ export declare function usePagination(refProps: ComputedRef<TtTableProps>, emit:
|
|
|
23
24
|
total?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.TotalSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
24
25
|
} | undefined;
|
|
25
26
|
size?: import("vxe-pc-ui").VxePagerPropTypes.Size | undefined;
|
|
26
|
-
layouts?: ("
|
|
27
|
+
layouts?: ("Home" | "PrevJump" | "PrevPage" | "Number" | "JumpNumber" | "NextPage" | "NextJump" | "End" | "Sizes" | "Jump" | "FullJump" | "PageCount" | "Total")[] | undefined;
|
|
27
28
|
currentPage?: import("vxe-pc-ui").VxePagerPropTypes.CurrentPage | undefined;
|
|
28
29
|
loading?: import("vxe-pc-ui").VxePagerPropTypes.Loading | undefined;
|
|
29
30
|
pageSize?: import("vxe-pc-ui").VxePagerPropTypes.PageSize | undefined;
|
|
@@ -68,7 +69,7 @@ export declare function usePagination(refProps: ComputedRef<TtTableProps>, emit:
|
|
|
68
69
|
total?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.TotalSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
69
70
|
} | undefined;
|
|
70
71
|
size?: import("vxe-pc-ui").VxePagerPropTypes.Size | undefined;
|
|
71
|
-
layouts?: ("
|
|
72
|
+
layouts?: ("Home" | "PrevJump" | "PrevPage" | "Number" | "JumpNumber" | "NextPage" | "NextJump" | "End" | "Sizes" | "Jump" | "FullJump" | "PageCount" | "Total")[] | undefined;
|
|
72
73
|
currentPage?: import("vxe-pc-ui").VxePagerPropTypes.CurrentPage | undefined;
|
|
73
74
|
loading?: import("vxe-pc-ui").VxePagerPropTypes.Loading | undefined;
|
|
74
75
|
pageSize?: import("vxe-pc-ui").VxePagerPropTypes.PageSize | undefined;
|
|
@@ -97,6 +98,6 @@ export declare function usePagination(refProps: ComputedRef<TtTableProps>, emit:
|
|
|
97
98
|
getPagination: () => VxeGridPropTypes.PagerConfig | undefined;
|
|
98
99
|
getPaginationInfo: ComputedRef<VxeGridPropTypes.PagerConfig | undefined>;
|
|
99
100
|
setPagination: (info: Partial<PaginationProps>) => void;
|
|
100
|
-
handlePageChange: (data:
|
|
101
|
+
handlePageChange: (data: VxePagerDefines.PageChangeEventParams | Parameters<VxePagerEvents.PageChange>[0]) => void;
|
|
101
102
|
};
|
|
102
103
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
2
|
import { VxeGridInstance, VxeTableDefines, VxeTablePropTypes } from 'vxe-table';
|
|
3
3
|
import { InsertReturnData, RowSelectionHandlers, TtTableExtendedTableApi, TtTableProps } from '../types/table';
|
|
4
|
-
export declare function useTableEvents(xGrid: Ref<VxeGridInstance | undefined>, tableState:
|
|
4
|
+
export declare function useTableEvents(xGrid: Ref<VxeGridInstance | undefined>, tableState: Record<string, unknown>, emit: {
|
|
5
5
|
(e: "update:modelValue", data?: any): void;
|
|
6
6
|
}, tableApi: TtTableExtendedTableApi, propsRef: ComputedRef<TtTableProps>, rowSelection?: RowSelectionHandlers): {
|
|
7
7
|
/**
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
export declare function useTableSlot(): {
|
|
7
7
|
replaceTableSlotKey: (key: string | null) => string;
|
|
8
8
|
replaceFormSlotKey: (key: string | null) => string;
|
|
9
|
-
getTableSlotKeysFunc: (slots: import('vue').
|
|
10
|
-
getFormSlotKeysFunc: (slots: import('vue').
|
|
9
|
+
getTableSlotKeysFunc: (slots: import('vue').Slots) => string[];
|
|
10
|
+
getFormSlotKeysFunc: (slots: import('vue').Slots) => string[];
|
|
11
11
|
};
|
|
@@ -30,7 +30,7 @@ export declare const tableProps: {
|
|
|
30
30
|
/** 是否显示自定义行距 */
|
|
31
31
|
showLineHeight: {
|
|
32
32
|
type: BooleanConstructor;
|
|
33
|
-
default: () =>
|
|
33
|
+
default: () => boolean | undefined;
|
|
34
34
|
};
|
|
35
35
|
/** 不可自定义列数组 field数组 */
|
|
36
36
|
notSetColumnField: any;
|
|
@@ -171,7 +171,7 @@ export declare const tableProps: {
|
|
|
171
171
|
default: () => string | undefined;
|
|
172
172
|
};
|
|
173
173
|
modelValue: {
|
|
174
|
-
type:
|
|
174
|
+
type: PropType<Recordable[]>;
|
|
175
175
|
default: () => never[];
|
|
176
176
|
};
|
|
177
177
|
/** 标题内容 */
|
|
@@ -303,7 +303,7 @@ export declare const tableFormProps: {
|
|
|
303
303
|
/** table参数 */
|
|
304
304
|
table: {
|
|
305
305
|
type: PropType<Partial<TtTableProps>>;
|
|
306
|
-
default:
|
|
306
|
+
default: Record<string, unknown>;
|
|
307
307
|
};
|
|
308
308
|
/** 是否使用搜索form */
|
|
309
309
|
useSearchForm: any;
|
|
@@ -108,6 +108,14 @@ export type TtTableToolbarProps = {
|
|
|
108
108
|
columnsFieldSort?: string[];
|
|
109
109
|
/** 具体某些列不排序 field数组 */
|
|
110
110
|
columnsFieldNoSort?: string[];
|
|
111
|
+
/** 是否显示右边刷新按钮 */
|
|
112
|
+
showRefresh?: boolean;
|
|
113
|
+
/** 是否显示右边设置 */
|
|
114
|
+
showSetting?: boolean;
|
|
115
|
+
/** 是否显示自定义列 */
|
|
116
|
+
showSetColumn?: boolean;
|
|
117
|
+
/** 是否显示自定义行距 */
|
|
118
|
+
showLineHeight?: boolean;
|
|
111
119
|
/** 不可自定义列数组 field数组 */
|
|
112
120
|
notSetColumnField?: string[];
|
|
113
121
|
/** 需要对不显示的字段进行过滤 主要针对于自定义 field数组 */
|
|
@@ -40,7 +40,7 @@ export type TtTableFormInstance = {
|
|
|
40
40
|
};
|
|
41
41
|
export type TtTableFormActionType = {
|
|
42
42
|
setTableProps: (props: Partial<TtTableProps>) => void;
|
|
43
|
-
setFormProps:
|
|
43
|
+
setFormProps: (props: TtTableFormRenderFormProps) => void;
|
|
44
44
|
tableMethods: TtTableMethods;
|
|
45
45
|
formMethods: TtTableRenderFormInstance;
|
|
46
46
|
/** 设置props */
|
|
@@ -12,8 +12,8 @@ export declare const TtText: import('../../../../utils/src').SFCWithInstall<{
|
|
|
12
12
|
copy?: boolean;
|
|
13
13
|
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
14
14
|
placement: string;
|
|
15
|
-
visible: boolean;
|
|
16
15
|
copy: boolean;
|
|
16
|
+
visible: boolean;
|
|
17
17
|
toolTip: boolean;
|
|
18
18
|
toolTipLine: number;
|
|
19
19
|
toolTipMaxWidth: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
|
|
@@ -37,8 +37,8 @@ export declare const TtText: import('../../../../utils/src').SFCWithInstall<{
|
|
|
37
37
|
copy?: boolean;
|
|
38
38
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
39
39
|
placement: string;
|
|
40
|
-
visible: boolean;
|
|
41
40
|
copy: boolean;
|
|
41
|
+
visible: boolean;
|
|
42
42
|
toolTip: boolean;
|
|
43
43
|
toolTipLine: number;
|
|
44
44
|
toolTipMaxWidth: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
|
|
@@ -59,8 +59,8 @@ export declare const TtText: import('../../../../utils/src').SFCWithInstall<{
|
|
|
59
59
|
copy?: boolean;
|
|
60
60
|
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
61
61
|
placement: string;
|
|
62
|
-
visible: boolean;
|
|
63
62
|
copy: boolean;
|
|
63
|
+
visible: boolean;
|
|
64
64
|
toolTip: boolean;
|
|
65
65
|
toolTipLine: number;
|
|
66
66
|
toolTipMaxWidth: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
|
|
@@ -34,8 +34,8 @@ declare function __VLS_template(): {
|
|
|
34
34
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
35
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
36
36
|
placement: string;
|
|
37
|
-
visible: boolean;
|
|
38
37
|
copy: boolean;
|
|
38
|
+
visible: boolean;
|
|
39
39
|
toolTip: boolean;
|
|
40
40
|
toolTipLine: number;
|
|
41
41
|
toolTipMaxWidth: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
|