@dazhicheng/ui 1.4.18 → 1.4.19
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/src/types.d.ts +2 -1
- package/dist/components/tt-modal/index.d.ts +36 -36
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +16 -16
- 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-part/index.d.ts +3 -3
- package/dist/components/tt-part/index.vue.d.ts +1 -1
- package/dist/components/tt-table/src/Table.vue.d.ts +43 -70
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +1 -1
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +2 -2
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts +28 -28
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +2 -1
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +1 -2
- package/dist/components/tt-table/src/props.d.ts +5 -20
- package/dist/components/tt-table/src/types/table.d.ts +2 -4
- package/dist/components/tt-table/src/types/tableForm.d.ts +4 -4
- package/dist/components/tt-table/src/utils/table-api.d.ts +0 -15
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +4 -4
- package/dist/components/types.d.ts +10 -9
- package/dist/index.js +1065 -1117
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -55,9 +55,9 @@ declare function __VLS_template(): {
|
|
|
55
55
|
readonly ariaLabel?: string | undefined;
|
|
56
56
|
readonly role?: string | undefined;
|
|
57
57
|
readonly tabindex?: number | string | undefined;
|
|
58
|
-
readonly always?: boolean | undefined;
|
|
59
58
|
readonly native?: boolean | undefined;
|
|
60
59
|
readonly noresize?: boolean | undefined;
|
|
60
|
+
readonly always?: boolean | undefined;
|
|
61
61
|
readonly ariaOrientation?: "horizontal" | "vertical" | "undefined" | undefined;
|
|
62
62
|
onScroll?: ((args_0: {
|
|
63
63
|
scrollTop: number;
|
|
@@ -108,9 +108,6 @@ declare function __VLS_template(): {
|
|
|
108
108
|
type: import('vue').PropType<string | number>;
|
|
109
109
|
default: string;
|
|
110
110
|
};
|
|
111
|
-
always: {
|
|
112
|
-
type: import('vue').PropType<boolean>;
|
|
113
|
-
};
|
|
114
111
|
distance: {
|
|
115
112
|
type: import('vue').PropType<number>;
|
|
116
113
|
default: number;
|
|
@@ -137,6 +134,9 @@ declare function __VLS_template(): {
|
|
|
137
134
|
noresize: {
|
|
138
135
|
type: import('vue').PropType<boolean>;
|
|
139
136
|
};
|
|
137
|
+
always: {
|
|
138
|
+
type: import('vue').PropType<boolean>;
|
|
139
|
+
};
|
|
140
140
|
minSize: {
|
|
141
141
|
type: import('vue').PropType<number>;
|
|
142
142
|
default: number;
|
|
@@ -234,9 +234,6 @@ declare function __VLS_template(): {
|
|
|
234
234
|
type: import('vue').PropType<string | number>;
|
|
235
235
|
default: string;
|
|
236
236
|
};
|
|
237
|
-
always: {
|
|
238
|
-
type: import('vue').PropType<boolean>;
|
|
239
|
-
};
|
|
240
237
|
distance: {
|
|
241
238
|
type: import('vue').PropType<number>;
|
|
242
239
|
default: number;
|
|
@@ -263,6 +260,9 @@ declare function __VLS_template(): {
|
|
|
263
260
|
noresize: {
|
|
264
261
|
type: import('vue').PropType<boolean>;
|
|
265
262
|
};
|
|
263
|
+
always: {
|
|
264
|
+
type: import('vue').PropType<boolean>;
|
|
265
|
+
};
|
|
266
266
|
minSize: {
|
|
267
267
|
type: import('vue').PropType<number>;
|
|
268
268
|
default: number;
|
|
@@ -319,9 +319,9 @@ declare function __VLS_template(): {
|
|
|
319
319
|
readonly ariaLabel?: string | undefined;
|
|
320
320
|
readonly role?: string | undefined;
|
|
321
321
|
readonly tabindex?: number | string | undefined;
|
|
322
|
-
readonly always?: boolean | undefined;
|
|
323
322
|
readonly native?: boolean | undefined;
|
|
324
323
|
readonly noresize?: boolean | undefined;
|
|
324
|
+
readonly always?: boolean | undefined;
|
|
325
325
|
readonly ariaOrientation?: "horizontal" | "vertical" | "undefined" | undefined;
|
|
326
326
|
onScroll?: ((args_0: {
|
|
327
327
|
scrollTop: number;
|
|
@@ -372,9 +372,6 @@ declare function __VLS_template(): {
|
|
|
372
372
|
type: import('vue').PropType<string | number>;
|
|
373
373
|
default: string;
|
|
374
374
|
};
|
|
375
|
-
always: {
|
|
376
|
-
type: import('vue').PropType<boolean>;
|
|
377
|
-
};
|
|
378
375
|
distance: {
|
|
379
376
|
type: import('vue').PropType<number>;
|
|
380
377
|
default: number;
|
|
@@ -401,6 +398,9 @@ declare function __VLS_template(): {
|
|
|
401
398
|
noresize: {
|
|
402
399
|
type: import('vue').PropType<boolean>;
|
|
403
400
|
};
|
|
401
|
+
always: {
|
|
402
|
+
type: import('vue').PropType<boolean>;
|
|
403
|
+
};
|
|
404
404
|
minSize: {
|
|
405
405
|
type: import('vue').PropType<number>;
|
|
406
406
|
default: number;
|
|
@@ -498,9 +498,6 @@ declare function __VLS_template(): {
|
|
|
498
498
|
type: import('vue').PropType<string | number>;
|
|
499
499
|
default: string;
|
|
500
500
|
};
|
|
501
|
-
always: {
|
|
502
|
-
type: import('vue').PropType<boolean>;
|
|
503
|
-
};
|
|
504
501
|
distance: {
|
|
505
502
|
type: import('vue').PropType<number>;
|
|
506
503
|
default: number;
|
|
@@ -527,6 +524,9 @@ declare function __VLS_template(): {
|
|
|
527
524
|
noresize: {
|
|
528
525
|
type: import('vue').PropType<boolean>;
|
|
529
526
|
};
|
|
527
|
+
always: {
|
|
528
|
+
type: import('vue').PropType<boolean>;
|
|
529
|
+
};
|
|
530
530
|
minSize: {
|
|
531
531
|
type: import('vue').PropType<number>;
|
|
532
532
|
default: number;
|
|
@@ -752,10 +752,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
752
752
|
type: StringConstructor;
|
|
753
753
|
default: () => string | undefined;
|
|
754
754
|
};
|
|
755
|
-
dragIcon: {
|
|
756
|
-
type: StringConstructor;
|
|
757
|
-
default: () => "ylwicon-tuozhuai";
|
|
758
|
-
};
|
|
759
755
|
emptyImageStyle: any;
|
|
760
756
|
emptyText: {
|
|
761
757
|
type: StringConstructor;
|
|
@@ -771,21 +767,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
771
767
|
};
|
|
772
768
|
isHanderSubmit: any;
|
|
773
769
|
columnsKey: any;
|
|
774
|
-
useCache: {
|
|
775
|
-
type: BooleanConstructor;
|
|
776
|
-
default: () => boolean | undefined;
|
|
777
|
-
};
|
|
778
770
|
useHttpCache: {
|
|
779
771
|
type: BooleanConstructor;
|
|
780
|
-
default: () =>
|
|
781
|
-
};
|
|
782
|
-
useHttpCustomerCache: {
|
|
783
|
-
type: BooleanConstructor;
|
|
784
|
-
default: () => any;
|
|
772
|
+
default: () => boolean | undefined;
|
|
785
773
|
};
|
|
786
774
|
defaultDisplayFields: {
|
|
787
775
|
type: import('vue').PropType<string[]>;
|
|
788
|
-
default: () =>
|
|
776
|
+
default: () => string[] | undefined;
|
|
789
777
|
};
|
|
790
778
|
isRowDrag: any;
|
|
791
779
|
treeNode: any;
|
|
@@ -799,7 +787,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
799
787
|
type: import('vue').PropType<TtTableExtendedTableApi>;
|
|
800
788
|
};
|
|
801
789
|
formApi: {
|
|
802
|
-
type: import('vue').PropType<import('
|
|
790
|
+
type: import('vue').PropType<import('../../tt-form').TtExtendedFormApi>;
|
|
803
791
|
};
|
|
804
792
|
useSearchForm: any;
|
|
805
793
|
disabledTeleport: any;
|
|
@@ -1054,10 +1042,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1054
1042
|
type: StringConstructor;
|
|
1055
1043
|
default: () => string | undefined;
|
|
1056
1044
|
};
|
|
1057
|
-
dragIcon: {
|
|
1058
|
-
type: StringConstructor;
|
|
1059
|
-
default: () => "ylwicon-tuozhuai";
|
|
1060
|
-
};
|
|
1061
1045
|
emptyImageStyle: any;
|
|
1062
1046
|
emptyText: {
|
|
1063
1047
|
type: StringConstructor;
|
|
@@ -1073,21 +1057,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1073
1057
|
};
|
|
1074
1058
|
isHanderSubmit: any;
|
|
1075
1059
|
columnsKey: any;
|
|
1076
|
-
useCache: {
|
|
1077
|
-
type: BooleanConstructor;
|
|
1078
|
-
default: () => boolean | undefined;
|
|
1079
|
-
};
|
|
1080
1060
|
useHttpCache: {
|
|
1081
1061
|
type: BooleanConstructor;
|
|
1082
|
-
default: () =>
|
|
1083
|
-
};
|
|
1084
|
-
useHttpCustomerCache: {
|
|
1085
|
-
type: BooleanConstructor;
|
|
1086
|
-
default: () => any;
|
|
1062
|
+
default: () => boolean | undefined;
|
|
1087
1063
|
};
|
|
1088
1064
|
defaultDisplayFields: {
|
|
1089
1065
|
type: import('vue').PropType<string[]>;
|
|
1090
|
-
default: () =>
|
|
1066
|
+
default: () => string[] | undefined;
|
|
1091
1067
|
};
|
|
1092
1068
|
isRowDrag: any;
|
|
1093
1069
|
treeNode: any;
|
|
@@ -1101,7 +1077,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1101
1077
|
type: import('vue').PropType<TtTableExtendedTableApi>;
|
|
1102
1078
|
};
|
|
1103
1079
|
formApi: {
|
|
1104
|
-
type: import('vue').PropType<import('
|
|
1080
|
+
type: import('vue').PropType<import('../../tt-form').TtExtendedFormApi>;
|
|
1105
1081
|
};
|
|
1106
1082
|
useSearchForm: any;
|
|
1107
1083
|
disabledTeleport: any;
|
|
@@ -1144,16 +1120,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1144
1120
|
tableRowId: string;
|
|
1145
1121
|
resultCode: string | number;
|
|
1146
1122
|
noSearchText: string;
|
|
1123
|
+
useHttpCache: boolean;
|
|
1147
1124
|
showSetting: boolean;
|
|
1148
1125
|
showRefresh: boolean;
|
|
1149
1126
|
showLineHeight: boolean;
|
|
1150
|
-
useCache: boolean;
|
|
1151
|
-
defaultDisplayFields: string[];
|
|
1152
|
-
showSetColumn: boolean;
|
|
1153
|
-
afterFetch: ((data: import("vxe-table").VxeTablePropTypes.Row[], res: globalThis.Recordable) => Promise<import("vxe-table").VxeTablePropTypes.Row[]>) | undefined;
|
|
1154
|
-
beforeFetch: ((params: globalThis.Recordable) => Promise<globalThis.Recordable>) | undefined;
|
|
1155
|
-
useHttpCache: boolean;
|
|
1156
|
-
useHttpCustomerCache: boolean;
|
|
1157
1127
|
showRadio: any;
|
|
1158
1128
|
showIndex: any;
|
|
1159
1129
|
isCellResize: any;
|
|
@@ -1180,20 +1150,23 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1180
1150
|
showScrollFetchLoading: boolean;
|
|
1181
1151
|
showTitle: any;
|
|
1182
1152
|
autoHeight: any;
|
|
1183
|
-
|
|
1184
|
-
rightSlotWidth: any;
|
|
1153
|
+
offsetHeight: any;
|
|
1185
1154
|
emptyImageStyle: any;
|
|
1155
|
+
emptyImageStatus: "no-data" | "no-search";
|
|
1186
1156
|
isHanderSubmit: any;
|
|
1187
1157
|
columnsKey: any;
|
|
1158
|
+
showSetColumn: boolean;
|
|
1159
|
+
leftSlotWidth: any;
|
|
1160
|
+
rightSlotWidth: any;
|
|
1161
|
+
defaultDisplayFields: string[];
|
|
1188
1162
|
isI18n: any;
|
|
1189
1163
|
isDataCloneDeep: any;
|
|
1190
|
-
emptyImageStatus: "no-data" | "no-search";
|
|
1191
|
-
dragIcon: string;
|
|
1192
|
-
offsetHeight: any;
|
|
1193
1164
|
useSearchForm: any;
|
|
1194
1165
|
testId: string;
|
|
1195
1166
|
isAreaCheckData: any;
|
|
1196
1167
|
api: (...arg: any[]) => Promise<any>;
|
|
1168
|
+
afterFetch: ((data: import("vxe-table").VxeTablePropTypes.Row[], res: globalThis.Recordable) => Promise<import("vxe-table").VxeTablePropTypes.Row[]>) | undefined;
|
|
1169
|
+
beforeFetch: ((params: globalThis.Recordable) => Promise<globalThis.Recordable>) | undefined;
|
|
1197
1170
|
disabledTeleport: any;
|
|
1198
1171
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
1199
1172
|
wrapRef: HTMLDivElement;
|
|
@@ -1229,9 +1202,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1229
1202
|
readonly ariaLabel?: string | undefined;
|
|
1230
1203
|
readonly role?: string | undefined;
|
|
1231
1204
|
readonly tabindex?: number | string | undefined;
|
|
1232
|
-
readonly always?: boolean | undefined;
|
|
1233
1205
|
readonly native?: boolean | undefined;
|
|
1234
1206
|
readonly noresize?: boolean | undefined;
|
|
1207
|
+
readonly always?: boolean | undefined;
|
|
1235
1208
|
readonly ariaOrientation?: "horizontal" | "vertical" | "undefined" | undefined;
|
|
1236
1209
|
onScroll?: ((args_0: {
|
|
1237
1210
|
scrollTop: number;
|
|
@@ -1282,9 +1255,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1282
1255
|
type: import('vue').PropType<string | number>;
|
|
1283
1256
|
default: string;
|
|
1284
1257
|
};
|
|
1285
|
-
always: {
|
|
1286
|
-
type: import('vue').PropType<boolean>;
|
|
1287
|
-
};
|
|
1288
1258
|
distance: {
|
|
1289
1259
|
type: import('vue').PropType<number>;
|
|
1290
1260
|
default: number;
|
|
@@ -1311,6 +1281,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1311
1281
|
noresize: {
|
|
1312
1282
|
type: import('vue').PropType<boolean>;
|
|
1313
1283
|
};
|
|
1284
|
+
always: {
|
|
1285
|
+
type: import('vue').PropType<boolean>;
|
|
1286
|
+
};
|
|
1314
1287
|
minSize: {
|
|
1315
1288
|
type: import('vue').PropType<number>;
|
|
1316
1289
|
default: number;
|
|
@@ -1408,9 +1381,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1408
1381
|
type: import('vue').PropType<string | number>;
|
|
1409
1382
|
default: string;
|
|
1410
1383
|
};
|
|
1411
|
-
always: {
|
|
1412
|
-
type: import('vue').PropType<boolean>;
|
|
1413
|
-
};
|
|
1414
1384
|
distance: {
|
|
1415
1385
|
type: import('vue').PropType<number>;
|
|
1416
1386
|
default: number;
|
|
@@ -1437,6 +1407,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1437
1407
|
noresize: {
|
|
1438
1408
|
type: import('vue').PropType<boolean>;
|
|
1439
1409
|
};
|
|
1410
|
+
always: {
|
|
1411
|
+
type: import('vue').PropType<boolean>;
|
|
1412
|
+
};
|
|
1440
1413
|
minSize: {
|
|
1441
1414
|
type: import('vue').PropType<number>;
|
|
1442
1415
|
default: number;
|
|
@@ -1493,9 +1466,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1493
1466
|
readonly ariaLabel?: string | undefined;
|
|
1494
1467
|
readonly role?: string | undefined;
|
|
1495
1468
|
readonly tabindex?: number | string | undefined;
|
|
1496
|
-
readonly always?: boolean | undefined;
|
|
1497
1469
|
readonly native?: boolean | undefined;
|
|
1498
1470
|
readonly noresize?: boolean | undefined;
|
|
1471
|
+
readonly always?: boolean | undefined;
|
|
1499
1472
|
readonly ariaOrientation?: "horizontal" | "vertical" | "undefined" | undefined;
|
|
1500
1473
|
onScroll?: ((args_0: {
|
|
1501
1474
|
scrollTop: number;
|
|
@@ -1546,9 +1519,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1546
1519
|
type: import('vue').PropType<string | number>;
|
|
1547
1520
|
default: string;
|
|
1548
1521
|
};
|
|
1549
|
-
always: {
|
|
1550
|
-
type: import('vue').PropType<boolean>;
|
|
1551
|
-
};
|
|
1552
1522
|
distance: {
|
|
1553
1523
|
type: import('vue').PropType<number>;
|
|
1554
1524
|
default: number;
|
|
@@ -1575,6 +1545,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1575
1545
|
noresize: {
|
|
1576
1546
|
type: import('vue').PropType<boolean>;
|
|
1577
1547
|
};
|
|
1548
|
+
always: {
|
|
1549
|
+
type: import('vue').PropType<boolean>;
|
|
1550
|
+
};
|
|
1578
1551
|
minSize: {
|
|
1579
1552
|
type: import('vue').PropType<number>;
|
|
1580
1553
|
default: number;
|
|
@@ -1672,9 +1645,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1672
1645
|
type: import('vue').PropType<string | number>;
|
|
1673
1646
|
default: string;
|
|
1674
1647
|
};
|
|
1675
|
-
always: {
|
|
1676
|
-
type: import('vue').PropType<boolean>;
|
|
1677
|
-
};
|
|
1678
1648
|
distance: {
|
|
1679
1649
|
type: import('vue').PropType<number>;
|
|
1680
1650
|
default: number;
|
|
@@ -1701,6 +1671,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1701
1671
|
noresize: {
|
|
1702
1672
|
type: import('vue').PropType<boolean>;
|
|
1703
1673
|
};
|
|
1674
|
+
always: {
|
|
1675
|
+
type: import('vue').PropType<boolean>;
|
|
1676
|
+
};
|
|
1704
1677
|
minSize: {
|
|
1705
1678
|
type: import('vue').PropType<number>;
|
|
1706
1679
|
default: number;
|
|
@@ -819,8 +819,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
819
819
|
showSetting: boolean;
|
|
820
820
|
showRefresh: boolean;
|
|
821
821
|
useCache: boolean;
|
|
822
|
-
showSetColumn: boolean;
|
|
823
822
|
columnsKey: any;
|
|
823
|
+
showSetColumn: boolean;
|
|
824
824
|
refreshIcon: string;
|
|
825
825
|
columnIcon: string;
|
|
826
826
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { VxeGridInstance, VxeGridPropTypes } from 'vxe-table';
|
|
2
1
|
import { Recordable } from '../../../../../../utils/src';
|
|
3
|
-
import { FetchParams, TtTableProps } from '../types/table';
|
|
4
2
|
import { ComputedRef, Ref } from 'vue';
|
|
3
|
+
import { VxeGridInstance, VxeGridPropTypes } from 'vxe-table';
|
|
4
|
+
import { FetchParams, TtTableProps } from '../types/table';
|
|
5
5
|
type ActionType = {
|
|
6
6
|
setLoading: (loading: boolean) => void;
|
|
7
7
|
setPagination: (info: Partial<VxeGridPropTypes.PagerConfig>) => void;
|
|
@@ -49,9 +49,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
49
49
|
readonly ariaLabel?: string | undefined;
|
|
50
50
|
readonly role?: string | undefined;
|
|
51
51
|
readonly tabindex?: number | string | undefined;
|
|
52
|
-
readonly always?: boolean | undefined;
|
|
53
52
|
readonly native?: boolean | undefined;
|
|
54
53
|
readonly noresize?: boolean | undefined;
|
|
54
|
+
readonly always?: boolean | undefined;
|
|
55
55
|
readonly ariaOrientation?: "horizontal" | "vertical" | "undefined" | undefined;
|
|
56
56
|
onScroll?: ((args_0: {
|
|
57
57
|
scrollTop: number;
|
|
@@ -102,9 +102,6 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
102
102
|
type: import('vue').PropType<string | number>;
|
|
103
103
|
default: string;
|
|
104
104
|
};
|
|
105
|
-
always: {
|
|
106
|
-
type: import('vue').PropType<boolean>;
|
|
107
|
-
};
|
|
108
105
|
distance: {
|
|
109
106
|
type: import('vue').PropType<number>;
|
|
110
107
|
default: number;
|
|
@@ -131,6 +128,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
131
128
|
noresize: {
|
|
132
129
|
type: import('vue').PropType<boolean>;
|
|
133
130
|
};
|
|
131
|
+
always: {
|
|
132
|
+
type: import('vue').PropType<boolean>;
|
|
133
|
+
};
|
|
134
134
|
minSize: {
|
|
135
135
|
type: import('vue').PropType<number>;
|
|
136
136
|
default: number;
|
|
@@ -228,9 +228,6 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
228
228
|
type: import('vue').PropType<string | number>;
|
|
229
229
|
default: string;
|
|
230
230
|
};
|
|
231
|
-
always: {
|
|
232
|
-
type: import('vue').PropType<boolean>;
|
|
233
|
-
};
|
|
234
231
|
distance: {
|
|
235
232
|
type: import('vue').PropType<number>;
|
|
236
233
|
default: number;
|
|
@@ -257,6 +254,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
257
254
|
noresize: {
|
|
258
255
|
type: import('vue').PropType<boolean>;
|
|
259
256
|
};
|
|
257
|
+
always: {
|
|
258
|
+
type: import('vue').PropType<boolean>;
|
|
259
|
+
};
|
|
260
260
|
minSize: {
|
|
261
261
|
type: import('vue').PropType<number>;
|
|
262
262
|
default: number;
|
|
@@ -312,9 +312,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
312
312
|
readonly ariaLabel?: string | undefined;
|
|
313
313
|
readonly role?: string | undefined;
|
|
314
314
|
readonly tabindex?: number | string | undefined;
|
|
315
|
-
readonly always?: boolean | undefined;
|
|
316
315
|
readonly native?: boolean | undefined;
|
|
317
316
|
readonly noresize?: boolean | undefined;
|
|
317
|
+
readonly always?: boolean | undefined;
|
|
318
318
|
readonly ariaOrientation?: "horizontal" | "vertical" | "undefined" | undefined;
|
|
319
319
|
onScroll?: ((args_0: {
|
|
320
320
|
scrollTop: number;
|
|
@@ -365,9 +365,6 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
365
365
|
type: import('vue').PropType<string | number>;
|
|
366
366
|
default: string;
|
|
367
367
|
};
|
|
368
|
-
always: {
|
|
369
|
-
type: import('vue').PropType<boolean>;
|
|
370
|
-
};
|
|
371
368
|
distance: {
|
|
372
369
|
type: import('vue').PropType<number>;
|
|
373
370
|
default: number;
|
|
@@ -394,6 +391,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
394
391
|
noresize: {
|
|
395
392
|
type: import('vue').PropType<boolean>;
|
|
396
393
|
};
|
|
394
|
+
always: {
|
|
395
|
+
type: import('vue').PropType<boolean>;
|
|
396
|
+
};
|
|
397
397
|
minSize: {
|
|
398
398
|
type: import('vue').PropType<number>;
|
|
399
399
|
default: number;
|
|
@@ -491,9 +491,6 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
491
491
|
type: import('vue').PropType<string | number>;
|
|
492
492
|
default: string;
|
|
493
493
|
};
|
|
494
|
-
always: {
|
|
495
|
-
type: import('vue').PropType<boolean>;
|
|
496
|
-
};
|
|
497
494
|
distance: {
|
|
498
495
|
type: import('vue').PropType<number>;
|
|
499
496
|
default: number;
|
|
@@ -520,6 +517,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
520
517
|
noresize: {
|
|
521
518
|
type: import('vue').PropType<boolean>;
|
|
522
519
|
};
|
|
520
|
+
always: {
|
|
521
|
+
type: import('vue').PropType<boolean>;
|
|
522
|
+
};
|
|
523
523
|
minSize: {
|
|
524
524
|
type: import('vue').PropType<number>;
|
|
525
525
|
default: number;
|
|
@@ -576,9 +576,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
576
576
|
readonly ariaLabel?: string | undefined;
|
|
577
577
|
readonly role?: string | undefined;
|
|
578
578
|
readonly tabindex?: number | string | undefined;
|
|
579
|
-
readonly always?: boolean | undefined;
|
|
580
579
|
readonly native?: boolean | undefined;
|
|
581
580
|
readonly noresize?: boolean | undefined;
|
|
581
|
+
readonly always?: boolean | undefined;
|
|
582
582
|
readonly ariaOrientation?: "horizontal" | "vertical" | "undefined" | undefined;
|
|
583
583
|
onScroll?: ((args_0: {
|
|
584
584
|
scrollTop: number;
|
|
@@ -629,9 +629,6 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
629
629
|
type: import('vue').PropType<string | number>;
|
|
630
630
|
default: string;
|
|
631
631
|
};
|
|
632
|
-
always: {
|
|
633
|
-
type: import('vue').PropType<boolean>;
|
|
634
|
-
};
|
|
635
632
|
distance: {
|
|
636
633
|
type: import('vue').PropType<number>;
|
|
637
634
|
default: number;
|
|
@@ -658,6 +655,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
658
655
|
noresize: {
|
|
659
656
|
type: import('vue').PropType<boolean>;
|
|
660
657
|
};
|
|
658
|
+
always: {
|
|
659
|
+
type: import('vue').PropType<boolean>;
|
|
660
|
+
};
|
|
661
661
|
minSize: {
|
|
662
662
|
type: import('vue').PropType<number>;
|
|
663
663
|
default: number;
|
|
@@ -755,9 +755,6 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
755
755
|
type: import('vue').PropType<string | number>;
|
|
756
756
|
default: string;
|
|
757
757
|
};
|
|
758
|
-
always: {
|
|
759
|
-
type: import('vue').PropType<boolean>;
|
|
760
|
-
};
|
|
761
758
|
distance: {
|
|
762
759
|
type: import('vue').PropType<number>;
|
|
763
760
|
default: number;
|
|
@@ -784,6 +781,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
784
781
|
noresize: {
|
|
785
782
|
type: import('vue').PropType<boolean>;
|
|
786
783
|
};
|
|
784
|
+
always: {
|
|
785
|
+
type: import('vue').PropType<boolean>;
|
|
786
|
+
};
|
|
787
787
|
minSize: {
|
|
788
788
|
type: import('vue').PropType<number>;
|
|
789
789
|
default: number;
|
|
@@ -839,9 +839,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
839
839
|
readonly ariaLabel?: string | undefined;
|
|
840
840
|
readonly role?: string | undefined;
|
|
841
841
|
readonly tabindex?: number | string | undefined;
|
|
842
|
-
readonly always?: boolean | undefined;
|
|
843
842
|
readonly native?: boolean | undefined;
|
|
844
843
|
readonly noresize?: boolean | undefined;
|
|
844
|
+
readonly always?: boolean | undefined;
|
|
845
845
|
readonly ariaOrientation?: "horizontal" | "vertical" | "undefined" | undefined;
|
|
846
846
|
onScroll?: ((args_0: {
|
|
847
847
|
scrollTop: number;
|
|
@@ -892,9 +892,6 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
892
892
|
type: import('vue').PropType<string | number>;
|
|
893
893
|
default: string;
|
|
894
894
|
};
|
|
895
|
-
always: {
|
|
896
|
-
type: import('vue').PropType<boolean>;
|
|
897
|
-
};
|
|
898
895
|
distance: {
|
|
899
896
|
type: import('vue').PropType<number>;
|
|
900
897
|
default: number;
|
|
@@ -921,6 +918,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
921
918
|
noresize: {
|
|
922
919
|
type: import('vue').PropType<boolean>;
|
|
923
920
|
};
|
|
921
|
+
always: {
|
|
922
|
+
type: import('vue').PropType<boolean>;
|
|
923
|
+
};
|
|
924
924
|
minSize: {
|
|
925
925
|
type: import('vue').PropType<number>;
|
|
926
926
|
default: number;
|
|
@@ -1018,9 +1018,6 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
1018
1018
|
type: import('vue').PropType<string | number>;
|
|
1019
1019
|
default: string;
|
|
1020
1020
|
};
|
|
1021
|
-
always: {
|
|
1022
|
-
type: import('vue').PropType<boolean>;
|
|
1023
|
-
};
|
|
1024
1021
|
distance: {
|
|
1025
1022
|
type: import('vue').PropType<number>;
|
|
1026
1023
|
default: number;
|
|
@@ -1047,6 +1044,9 @@ export declare function useLeftRightSlot(propsRef: ComputedRef<TtTableProps>, xG
|
|
|
1047
1044
|
noresize: {
|
|
1048
1045
|
type: import('vue').PropType<boolean>;
|
|
1049
1046
|
};
|
|
1047
|
+
always: {
|
|
1048
|
+
type: import('vue').PropType<boolean>;
|
|
1049
|
+
};
|
|
1050
1050
|
minSize: {
|
|
1051
1051
|
type: import('vue').PropType<number>;
|
|
1052
1052
|
default: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
+
import { TtFormProps } from '../../../tt-form';
|
|
2
3
|
import { VxeGridPropTypes } from 'vxe-table';
|
|
3
4
|
import { FetchParams, TtTableProps } from '../types/table';
|
|
4
5
|
import { TtTableFormProps } from '../types/tableForm';
|
|
@@ -7,7 +8,7 @@ export declare function useTableForm(propsRef: ComputedRef<TtTableFormProps>, fe
|
|
|
7
8
|
(e: "update:table-data", data?: Recordable): void;
|
|
8
9
|
}): {
|
|
9
10
|
tableData: import('vue').Ref<Recordable<any>[], Recordable<any>[]>;
|
|
10
|
-
getFormProps: ComputedRef<TtFormProps
|
|
11
|
+
getFormProps: ComputedRef<TtFormProps<keyof import('../../../tt-form').BaseFormComponentMap>>;
|
|
11
12
|
handleSearchInfoChange: (info: Recordable) => Promise<void>;
|
|
12
13
|
getTableProps: ComputedRef<Partial<TtTableProps>>;
|
|
13
14
|
getTableToolProps: ComputedRef<TtTableToolsProps>;
|
|
@@ -53,7 +53,7 @@ export declare function useTableRender(options: TtTableProps): readonly [DefineS
|
|
|
53
53
|
emptyImageStatus?: "no-data" | "no-search";
|
|
54
54
|
isHanderSubmit?: boolean;
|
|
55
55
|
modelValue?: Array<Recordable>;
|
|
56
|
-
formApi?: Partial<import('
|
|
56
|
+
formApi?: Partial<import('../../../tt-form').TtExtendedFormApi>;
|
|
57
57
|
columnsKey?: string;
|
|
58
58
|
showSetting?: boolean;
|
|
59
59
|
showSetColumn?: boolean;
|
|
@@ -61,7 +61,6 @@ export declare function useTableRender(options: TtTableProps): readonly [DefineS
|
|
|
61
61
|
fullscreen?: boolean;
|
|
62
62
|
leftSlotWidth?: number;
|
|
63
63
|
rightSlotWidth?: number;
|
|
64
|
-
dragIcon?: string;
|
|
65
64
|
showLineHeight?: boolean;
|
|
66
65
|
showRefresh?: boolean;
|
|
67
66
|
useHttpCache?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExtendedFormApi, VbenFormProps } from 'vben-core-form-ui';
|
|
2
1
|
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { TtExtendedFormApi, TtFormProps } from '../../tt-form';
|
|
3
3
|
import { VxeTableDefines, VxeTablePropTypes } from 'vxe-table';
|
|
4
4
|
import { TtTableExtendedTableApi, TtTableProps } from './types/table';
|
|
5
5
|
import { TtTableExtendedTableFormApi } from './types/tableForm';
|
|
@@ -192,11 +192,6 @@ export declare const tableProps: {
|
|
|
192
192
|
type: StringConstructor;
|
|
193
193
|
default: () => string | undefined;
|
|
194
194
|
};
|
|
195
|
-
/** 拖拽icon */
|
|
196
|
-
dragIcon: {
|
|
197
|
-
type: StringConstructor;
|
|
198
|
-
default: () => "ylwicon-tuozhuai";
|
|
199
|
-
};
|
|
200
195
|
/** 暂无数据的样式 */
|
|
201
196
|
emptyImageStyle: any;
|
|
202
197
|
/** 暂无数据 */
|
|
@@ -221,25 +216,15 @@ export declare const tableProps: {
|
|
|
221
216
|
isHanderSubmit: any;
|
|
222
217
|
/** 储存的key值 */
|
|
223
218
|
columnsKey: any;
|
|
224
|
-
/** 是否开启本地缓存 */
|
|
225
|
-
useCache: {
|
|
226
|
-
type: BooleanConstructor;
|
|
227
|
-
default: () => boolean | undefined;
|
|
228
|
-
};
|
|
229
219
|
/** 是否开启服务端缓存 */
|
|
230
220
|
useHttpCache: {
|
|
231
221
|
type: BooleanConstructor;
|
|
232
|
-
default: () =>
|
|
233
|
-
};
|
|
234
|
-
/** 是否开启服务端自定义列组件字段 */
|
|
235
|
-
useHttpCustomerCache: {
|
|
236
|
-
type: BooleanConstructor;
|
|
237
|
-
default: () => any;
|
|
222
|
+
default: () => boolean | undefined;
|
|
238
223
|
};
|
|
239
224
|
/** 开启服务端缓存时默认展示的列 用户列为null时默认展示的列 */
|
|
240
225
|
defaultDisplayFields: {
|
|
241
226
|
type: PropType<string[]>;
|
|
242
|
-
default: () =>
|
|
227
|
+
default: () => string[] | undefined;
|
|
243
228
|
};
|
|
244
229
|
/**
|
|
245
230
|
* 是否需要行拖拽
|
|
@@ -273,7 +258,7 @@ export declare const tableProps: {
|
|
|
273
258
|
};
|
|
274
259
|
/** 表格的api */
|
|
275
260
|
formApi: {
|
|
276
|
-
type: PropType<
|
|
261
|
+
type: PropType<TtExtendedFormApi>;
|
|
277
262
|
};
|
|
278
263
|
/** 是否使用搜索form */
|
|
279
264
|
useSearchForm: any;
|
|
@@ -343,7 +328,7 @@ export declare const tableFormProps: {
|
|
|
343
328
|
useSearchForm: any;
|
|
344
329
|
/** BasicFormProps 的配置 */
|
|
345
330
|
form: {
|
|
346
|
-
type: PropType<Partial<
|
|
331
|
+
type: PropType<Partial<TtFormProps>>;
|
|
347
332
|
default: () => {};
|
|
348
333
|
};
|
|
349
334
|
/** 查询条件请求之前处理 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExtendedFormApi } from 'vben-core-form-ui';
|
|
2
1
|
import { ComputedRef, CSSProperties, MaybeRef, Ref, VNode } from 'vue';
|
|
3
2
|
import { VxeGridMethods, VxeGridProps, VxeGridPropTypes, VxeTableDefines, VxeTablePropTypes } from 'vxe-table';
|
|
4
3
|
import { TableApi } from '../utils/table-api';
|
|
4
|
+
import { TtExtendedFormApi } from '../../../tt-form';
|
|
5
5
|
export type TtTablePagerProps = {
|
|
6
6
|
/** 是否显示分页 */
|
|
7
7
|
showPager?: boolean;
|
|
@@ -150,7 +150,7 @@ export type TtTableProps = {
|
|
|
150
150
|
isHanderSubmit?: boolean;
|
|
151
151
|
modelValue?: Array<Recordable>;
|
|
152
152
|
/** form-methods */
|
|
153
|
-
formApi?: Partial<
|
|
153
|
+
formApi?: Partial<TtExtendedFormApi>;
|
|
154
154
|
/** 储存的列key值 */
|
|
155
155
|
columnsKey?: string;
|
|
156
156
|
/**
|
|
@@ -171,8 +171,6 @@ export type TtTableProps = {
|
|
|
171
171
|
leftSlotWidth?: number;
|
|
172
172
|
/** 右侧插槽的宽度 */
|
|
173
173
|
rightSlotWidth?: number;
|
|
174
|
-
/** 拖拽icon */
|
|
175
|
-
dragIcon?: string;
|
|
176
174
|
/**
|
|
177
175
|
* 是否显示行高设置icon
|
|
178
176
|
* @default true
|