@dazhicheng/ui 1.6.49 → 1.6.51
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-custom-export-modal/src/TtCustomExportModal.vue.d.ts +36 -25
- package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue.js +56 -298
- package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue.js +71 -54
- package/dist/components/tt-custom-export-panel/index.d.ts +8 -0
- package/dist/components/tt-custom-export-panel/index.js +21 -0
- package/dist/components/tt-custom-export-panel/src/TtCustomExportPanel.vue.d.ts +19 -0
- package/dist/components/tt-custom-export-panel/src/TtCustomExportPanel.vue.js +289 -0
- package/dist/components/tt-custom-export-panel/src/TtCustomExportPanel.vue2.js +4 -0
- package/dist/components/tt-custom-export-panel/src/types/index.d.ts +6 -0
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +2 -2
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +1 -0
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +8 -7
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +1 -1
- package/dist/components/tt-panel-select/src/index.vue.d.ts +3 -0
- package/dist/components/tt-panel-select/src/index.vue.js +17 -14
- package/dist/components/tt-panel-select/src/types.d.ts +4 -0
- package/dist/components/tt-table/index.d.ts +27 -0
- package/dist/components/tt-table/index.js +8 -5
- package/dist/components/tt-table/src/Table.vue.d.ts +9 -0
- package/dist/components/tt-table/src/TableForm.vue.d.ts +74 -90
- package/dist/components/tt-table/src/TableForm.vue.js +179 -175
- package/dist/components/tt-table/src/components/TableExportButton.vue.d.ts +12 -0
- package/dist/components/tt-table/src/components/TableExportButton.vue.js +44 -0
- package/dist/components/tt-table/src/components/TableExportButton.vue2.js +4 -0
- package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +36 -42
- package/dist/components/tt-table/src/props.d.ts +6 -0
- package/dist/components/tt-table/src/props.js +5 -0
- package/dist/components/tt-table/src/types/table.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +111 -107
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as se, useTemplateRef as z, ref as m, computed as h, watch as
|
|
1
|
+
import { defineComponent as se, useTemplateRef as z, ref as m, computed as h, watch as M, nextTick as K, createElementBlock as f, openBlock as s, normalizeClass as n, createElementVNode as k, createCommentVNode as O, createVNode as p, createBlock as I, unref as i, withCtx as d, createTextVNode as b, normalizeStyle as P, Fragment as H, renderList as V, toDisplayString as E } from "vue";
|
|
2
2
|
import { TtButton as ne } from "../../../tt-button/index.js";
|
|
3
3
|
import { TtText as S } from "../../../tt-text/index.js";
|
|
4
4
|
import { Search as ie } from "@element-plus/icons-vue";
|
|
@@ -12,6 +12,7 @@ const he = ["data-virtual-index", "data-flash-seed"], Y = 2, be = /* @__PURE__ *
|
|
|
12
12
|
disabled: { type: Boolean, default: !1 },
|
|
13
13
|
prefixCls: {},
|
|
14
14
|
multiple: { type: Boolean },
|
|
15
|
+
showMultiple: { type: Boolean, default: !0 },
|
|
15
16
|
keyword: {},
|
|
16
17
|
rows: {},
|
|
17
18
|
optionPerRow: {},
|
|
@@ -38,7 +39,7 @@ const he = ["data-virtual-index", "data-flash-seed"], Y = 2, be = /* @__PURE__ *
|
|
|
38
39
|
}), te = h(
|
|
39
40
|
() => t.rows.filter((e) => e.type === "options").flatMap((e) => e.options).filter((e) => !e.disabled)
|
|
40
41
|
);
|
|
41
|
-
|
|
42
|
+
M(
|
|
42
43
|
() => t.keyword,
|
|
43
44
|
(e) => {
|
|
44
45
|
w.value = e;
|
|
@@ -113,13 +114,13 @@ const he = ["data-virtual-index", "data-flash-seed"], Y = 2, be = /* @__PURE__ *
|
|
|
113
114
|
function re(e) {
|
|
114
115
|
w.value = e, !R.value && v("update:keyword", e);
|
|
115
116
|
}
|
|
116
|
-
return
|
|
117
|
+
return M(
|
|
117
118
|
() => t.scrollToGroupValue,
|
|
118
119
|
async (e) => {
|
|
119
120
|
e !== void 0 && await N(e);
|
|
120
121
|
},
|
|
121
122
|
{ flush: "post" }
|
|
122
|
-
),
|
|
123
|
+
), M(
|
|
123
124
|
() => t.rows.length,
|
|
124
125
|
async () => {
|
|
125
126
|
await K(), B();
|
|
@@ -157,7 +158,7 @@ const he = ["data-virtual-index", "data-flash-seed"], Y = 2, be = /* @__PURE__ *
|
|
|
157
158
|
]),
|
|
158
159
|
_: 1
|
|
159
160
|
}, 8, ["model-value", "class", "placeholder"]),
|
|
160
|
-
l.multiple ? (s(),
|
|
161
|
+
l.multiple && l.showMultiple ? (s(), I(i(ne), {
|
|
161
162
|
key: 0,
|
|
162
163
|
disabled: l.disabled,
|
|
163
164
|
plain: "",
|
|
@@ -223,7 +224,7 @@ const he = ["data-virtual-index", "data-flash-seed"], Y = 2, be = /* @__PURE__ *
|
|
|
223
224
|
key: 0,
|
|
224
225
|
class: n(`${l.prefixCls}__panel-head`)
|
|
225
226
|
}, [
|
|
226
|
-
t.multiple ? (s(),
|
|
227
|
+
t.multiple ? (s(), I(i(F), {
|
|
227
228
|
key: 0,
|
|
228
229
|
"model-value": l.groupCheckedMap[String(o.group.value)],
|
|
229
230
|
indeterminate: l.groupIndeterminateMap[String(o.group.value)],
|
|
@@ -239,7 +240,7 @@ const he = ["data-virtual-index", "data-flash-seed"], Y = 2, be = /* @__PURE__ *
|
|
|
239
240
|
}, 1024)
|
|
240
241
|
]),
|
|
241
242
|
_: 2
|
|
242
|
-
}, 1032, ["model-value", "indeterminate", "disabled", "onChange"])) : (s(),
|
|
243
|
+
}, 1032, ["model-value", "indeterminate", "disabled", "onChange"])) : (s(), I(i(S), { key: 1 }, {
|
|
243
244
|
default: d(() => [
|
|
244
245
|
b(E(o.group.label), 1)
|
|
245
246
|
]),
|
|
@@ -35,6 +35,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
35
35
|
beforeFetch: import('../../../../../utils/src').AnyPromiseFunction<any, any>;
|
|
36
36
|
alwaysLoad: boolean;
|
|
37
37
|
leftPlaceholder: string;
|
|
38
|
+
showMultiple: boolean;
|
|
38
39
|
pasteSearch: boolean;
|
|
39
40
|
separator: import('./types').PanelSelectSeparator;
|
|
40
41
|
middlePlaceholder: string;
|
|
@@ -64,6 +65,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
64
65
|
optionsCheck: (values: PanelSelectValue[], checked: boolean) => any;
|
|
65
66
|
}, import('vue').PublicProps, {
|
|
66
67
|
disabled: boolean;
|
|
68
|
+
showMultiple: boolean;
|
|
67
69
|
scrollToGroupValue: PanelSelectValue;
|
|
68
70
|
pasteSearch: boolean;
|
|
69
71
|
separator: import('./types').PanelSelectSeparator;
|
|
@@ -400,6 +402,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
400
402
|
inputFocus: () => void;
|
|
401
403
|
}, {}, {}, {}, {
|
|
402
404
|
disabled: boolean;
|
|
405
|
+
showMultiple: boolean;
|
|
403
406
|
scrollToGroupValue: PanelSelectValue;
|
|
404
407
|
pasteSearch: boolean;
|
|
405
408
|
separator: import('./types').PanelSelectSeparator;
|
|
@@ -31,6 +31,7 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
31
31
|
disabled: { type: Boolean, default: !1 },
|
|
32
32
|
showNav: { type: Boolean, default: !0 },
|
|
33
33
|
multiple: { type: Boolean, default: !0 },
|
|
34
|
+
showMultiple: { type: Boolean, default: !0 },
|
|
34
35
|
api: {},
|
|
35
36
|
params: { default: () => ({}) },
|
|
36
37
|
resultField: { default: "" },
|
|
@@ -100,12 +101,12 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
100
101
|
}
|
|
101
102
|
Array.isArray(l) && (n.value = l.at(-1));
|
|
102
103
|
});
|
|
103
|
-
const b = v(), y = v(""), w = v(""), S = v(), V = E("middleRef"), g = E("selectWrapRef"),
|
|
104
|
-
function
|
|
104
|
+
const b = v(), y = v(""), w = v(""), S = v(), V = E("middleRef"), g = E("selectWrapRef"), B = E("selectRef"), O = v(0);
|
|
105
|
+
function N() {
|
|
105
106
|
const e = g.value;
|
|
106
107
|
e && (O.value = e.offsetWidth);
|
|
107
108
|
}
|
|
108
|
-
tl(g, () =>
|
|
109
|
+
tl(g, () => N());
|
|
109
110
|
const re = u(() => ({
|
|
110
111
|
componentProps: {
|
|
111
112
|
multiple: t.multiple,
|
|
@@ -115,7 +116,7 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
115
116
|
},
|
|
116
117
|
component: "TtPanelSelect",
|
|
117
118
|
selectWrapRef: g,
|
|
118
|
-
selectRef:
|
|
119
|
+
selectRef: B
|
|
119
120
|
})), { selectComponentProps: ue } = al(re), T = u(() => {
|
|
120
121
|
const e = y.value.trim().toLowerCase();
|
|
121
122
|
if (!e) return R.value;
|
|
@@ -241,12 +242,12 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
241
242
|
}
|
|
242
243
|
async function $e(e) {
|
|
243
244
|
var l;
|
|
244
|
-
C("visible-change", e), e && (w.value = "", y.value = "", await F(), (l = V.value) == null || l.inputFocus(),
|
|
245
|
+
C("visible-change", e), e && (w.value = "", y.value = "", await F(), (l = V.value) == null || l.inputFocus(), N(), t.alwaysLoad ? await f() : !t.immediate && !r(ae) && await f());
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
+
function Be() {
|
|
247
248
|
U(L);
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
+
function Ne(e) {
|
|
250
251
|
C("change", e, [...r(K)], Me(e));
|
|
251
252
|
}
|
|
252
253
|
function Te(e, l) {
|
|
@@ -255,7 +256,7 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
255
256
|
function U(e) {
|
|
256
257
|
F(() => {
|
|
257
258
|
const l = r(n);
|
|
258
|
-
Te(l, e) ||
|
|
259
|
+
Te(l, e) || Ne(l);
|
|
259
260
|
});
|
|
260
261
|
}
|
|
261
262
|
function d(e) {
|
|
@@ -329,19 +330,20 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
329
330
|
}, [
|
|
330
331
|
q(r(Z), Je({
|
|
331
332
|
ref_key: "selectRef",
|
|
332
|
-
ref:
|
|
333
|
+
ref: B,
|
|
333
334
|
modelValue: W.value,
|
|
334
335
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => W.value = a)
|
|
335
336
|
}, r(ue), {
|
|
336
|
-
multiple: s.multiple,
|
|
337
|
-
filterable: !1,
|
|
338
337
|
placeholder: s.placeholder,
|
|
339
338
|
persistent: !1,
|
|
339
|
+
multiple: "",
|
|
340
340
|
"fallback-placements": ["bottom-start", "bottom-end", "bottom", "top-start", "top-end", "top", "right", "left"],
|
|
341
341
|
disabled: s.disabled,
|
|
342
|
+
"allow-create": "",
|
|
343
|
+
"default-first-option": "",
|
|
342
344
|
"popper-class": `${r(p)}__popper vxe-table--ignore-clear`,
|
|
343
345
|
onVisibleChange: $e,
|
|
344
|
-
onChange:
|
|
346
|
+
onChange: Be,
|
|
345
347
|
onFocus: ze
|
|
346
348
|
}), {
|
|
347
349
|
empty: Qe(() => [
|
|
@@ -385,13 +387,14 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
385
387
|
"paste-search": s.pasteSearch,
|
|
386
388
|
separator: s.separator,
|
|
387
389
|
"middle-placeholder": s.middlePlaceholder,
|
|
390
|
+
"show-multiple": s.showMultiple,
|
|
388
391
|
"onUpdate:keyword": Le,
|
|
389
392
|
onAllCheck: Ge,
|
|
390
393
|
onCheckAll: We,
|
|
391
394
|
onGroupCheck: De,
|
|
392
395
|
onOptionCheck: Ke,
|
|
393
396
|
onOptionsCheck: Ue
|
|
394
|
-
}, null, 8, ["prefix-cls", "multiple", "keyword", "rows", "disabled", "show-all", "selected-value-set", "is-all-checked", "is-indeterminate", "all-checked", "scroll-to-group-value", "group-checked-map", "group-indeterminate-map", "paste-search", "separator", "middle-placeholder"]),
|
|
397
|
+
}, null, 8, ["prefix-cls", "multiple", "keyword", "rows", "disabled", "show-all", "selected-value-set", "is-all-checked", "is-indeterminate", "all-checked", "scroll-to-group-value", "group-checked-map", "group-indeterminate-map", "paste-search", "separator", "middle-placeholder", "show-multiple"]),
|
|
395
398
|
t.multiple ? (A(), H(ul, {
|
|
396
399
|
key: 1,
|
|
397
400
|
"prefix-cls": r(p),
|
|
@@ -406,7 +409,7 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
406
409
|
])
|
|
407
410
|
]),
|
|
408
411
|
_: 1
|
|
409
|
-
}, 16, ["modelValue", "
|
|
412
|
+
}, 16, ["modelValue", "placeholder", "disabled", "popper-class"])
|
|
410
413
|
], 2));
|
|
411
414
|
}
|
|
412
415
|
});
|
|
@@ -16,6 +16,8 @@ export interface PanelMiddleProps {
|
|
|
16
16
|
prefixCls: string;
|
|
17
17
|
/** 是否多选 */
|
|
18
18
|
multiple: boolean;
|
|
19
|
+
/** 是否显示全选按钮 */
|
|
20
|
+
showMultiple: boolean;
|
|
19
21
|
/** 搜索关键词 */
|
|
20
22
|
keyword: string;
|
|
21
23
|
/** 数据源 */
|
|
@@ -65,6 +67,8 @@ export interface PanelContainerProps {
|
|
|
65
67
|
showNav?: boolean;
|
|
66
68
|
/** 是否多选 */
|
|
67
69
|
multiple?: boolean;
|
|
70
|
+
/** 是否显示全选按钮 */
|
|
71
|
+
showMultiple?: boolean;
|
|
68
72
|
/** 远程加载函数 */
|
|
69
73
|
api?: (arg?: any) => Promise<any[] | any>;
|
|
70
74
|
/** 传给 api 的参数 */
|
|
@@ -105,6 +105,18 @@ export declare const TtTableButton: import('../../../../utils/src').SFCWithInsta
|
|
|
105
105
|
}, {}, {}, {
|
|
106
106
|
disabledTip: import('vue').Directive;
|
|
107
107
|
}, string, import('vue').ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
108
|
+
/** 表格导出按钮(可脱离表格工具栏单独使用) */
|
|
109
|
+
export declare const TtTableExportButton: import('../../../../utils/src').SFCWithInstall<import('vue').DefineComponent<{
|
|
110
|
+
label?: string;
|
|
111
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
112
|
+
click: () => any;
|
|
113
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
114
|
+
label?: string;
|
|
115
|
+
}> & Readonly<{
|
|
116
|
+
onClick?: (() => any) | undefined;
|
|
117
|
+
}>, {
|
|
118
|
+
label: string;
|
|
119
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>> & Record<string, any>;
|
|
108
120
|
/** 表格组件 */
|
|
109
121
|
export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
110
122
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -309,6 +321,10 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
309
321
|
customExportConfig: {
|
|
310
322
|
type: import('vue').PropType<import('.').TtTableProps["customExportConfig"]>;
|
|
311
323
|
};
|
|
324
|
+
columnFieldSource: {
|
|
325
|
+
type: import('vue').PropType<import('.').TtTableProps["columnFieldSource"]>;
|
|
326
|
+
default: string;
|
|
327
|
+
};
|
|
312
328
|
autoHeight: any;
|
|
313
329
|
leftSlotWidth: {
|
|
314
330
|
type: NumberConstructor;
|
|
@@ -527,6 +543,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
527
543
|
rightSlotWidth: number;
|
|
528
544
|
defaultDisplayFields: string[];
|
|
529
545
|
useSearchForm: any;
|
|
546
|
+
columnFieldSource: "visible" | "collect" | undefined;
|
|
530
547
|
toolTipErrorPlacement: "top" | "bottom" | "left" | "right";
|
|
531
548
|
afterFetch: ((data: any[], res: Recordable | Recordable[]) => Promise<any[]>) | undefined;
|
|
532
549
|
beforeFetch: ((params: Recordable) => Promise<Recordable>) | undefined;
|
|
@@ -1000,6 +1017,10 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1000
1017
|
customExportConfig: {
|
|
1001
1018
|
type: import('vue').PropType<import('.').TtTableProps["customExportConfig"]>;
|
|
1002
1019
|
};
|
|
1020
|
+
columnFieldSource: {
|
|
1021
|
+
type: import('vue').PropType<import('.').TtTableProps["columnFieldSource"]>;
|
|
1022
|
+
default: string;
|
|
1023
|
+
};
|
|
1003
1024
|
autoHeight: any;
|
|
1004
1025
|
leftSlotWidth: {
|
|
1005
1026
|
type: NumberConstructor;
|
|
@@ -1216,6 +1237,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1216
1237
|
rightSlotWidth: number;
|
|
1217
1238
|
defaultDisplayFields: string[];
|
|
1218
1239
|
useSearchForm: any;
|
|
1240
|
+
columnFieldSource: "visible" | "collect" | undefined;
|
|
1219
1241
|
toolTipErrorPlacement: "top" | "bottom" | "left" | "right";
|
|
1220
1242
|
afterFetch: ((data: any[], res: Recordable | Recordable[]) => Promise<any[]>) | undefined;
|
|
1221
1243
|
beforeFetch: ((params: Recordable) => Promise<Recordable>) | undefined;
|
|
@@ -1426,6 +1448,10 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1426
1448
|
customExportConfig: {
|
|
1427
1449
|
type: import('vue').PropType<import('.').TtTableProps["customExportConfig"]>;
|
|
1428
1450
|
};
|
|
1451
|
+
columnFieldSource: {
|
|
1452
|
+
type: import('vue').PropType<import('.').TtTableProps["columnFieldSource"]>;
|
|
1453
|
+
default: string;
|
|
1454
|
+
};
|
|
1429
1455
|
autoHeight: any;
|
|
1430
1456
|
leftSlotWidth: {
|
|
1431
1457
|
type: NumberConstructor;
|
|
@@ -1644,6 +1670,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1644
1670
|
rightSlotWidth: number;
|
|
1645
1671
|
defaultDisplayFields: string[];
|
|
1646
1672
|
useSearchForm: any;
|
|
1673
|
+
columnFieldSource: "visible" | "collect" | undefined;
|
|
1647
1674
|
toolTipErrorPlacement: "top" | "bottom" | "left" | "right";
|
|
1648
1675
|
afterFetch: ((data: any[], res: Recordable | Recordable[]) => Promise<any[]>) | undefined;
|
|
1649
1676
|
beforeFetch: ((params: Recordable) => Promise<Recordable>) | undefined;
|
|
@@ -15,7 +15,8 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs
|
|
|
15
15
|
import "lodash-es";
|
|
16
16
|
import o from "./src/components/TableAction.vue.js";
|
|
17
17
|
import r from "./src/components/TableButtons.js";
|
|
18
|
-
import m from "./src/
|
|
18
|
+
import m from "./src/components/TableExportButton.vue.js";
|
|
19
|
+
import i from "./src/Table.vue.js";
|
|
19
20
|
/* empty css */
|
|
20
21
|
import "@tanstack/vue-store";
|
|
21
22
|
import "../tt-button/index.js";
|
|
@@ -56,6 +57,7 @@ import "../tt-modal/index.js";
|
|
|
56
57
|
import "../../directives/disabled-tip/index.js";
|
|
57
58
|
import "../tt-log/index.js";
|
|
58
59
|
import "../tt-custom-export-modal/index.js";
|
|
60
|
+
import "../tt-custom-export-panel/index.js";
|
|
59
61
|
/* empty css */
|
|
60
62
|
/* empty css */
|
|
61
63
|
/* empty css */
|
|
@@ -70,9 +72,10 @@ import "./src/emits.js";
|
|
|
70
72
|
import "./src/props.js";
|
|
71
73
|
import "./src/table-mutation-events.js";
|
|
72
74
|
import "./src/utils/context.js";
|
|
73
|
-
const
|
|
75
|
+
const It = t(o), dt = t(r), gt = t(m), jt = t(i);
|
|
74
76
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
jt as TtTable,
|
|
78
|
+
It as TtTableAction,
|
|
79
|
+
dt as TtTableButton,
|
|
80
|
+
gt as TtTableExportButton
|
|
78
81
|
};
|
|
@@ -491,6 +491,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
491
491
|
customExportConfig: {
|
|
492
492
|
type: import('vue').PropType<TtTableProps["customExportConfig"]>;
|
|
493
493
|
};
|
|
494
|
+
columnFieldSource: {
|
|
495
|
+
type: import('vue').PropType<TtTableProps["columnFieldSource"]>;
|
|
496
|
+
default: string;
|
|
497
|
+
};
|
|
494
498
|
autoHeight: any;
|
|
495
499
|
leftSlotWidth: {
|
|
496
500
|
type: NumberConstructor;
|
|
@@ -849,6 +853,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
849
853
|
customExportConfig: {
|
|
850
854
|
type: import('vue').PropType<TtTableProps["customExportConfig"]>;
|
|
851
855
|
};
|
|
856
|
+
columnFieldSource: {
|
|
857
|
+
type: import('vue').PropType<TtTableProps["columnFieldSource"]>;
|
|
858
|
+
default: string;
|
|
859
|
+
};
|
|
852
860
|
autoHeight: any;
|
|
853
861
|
leftSlotWidth: {
|
|
854
862
|
type: NumberConstructor;
|
|
@@ -974,6 +982,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
974
982
|
rightSlotWidth: number;
|
|
975
983
|
defaultDisplayFields: string[];
|
|
976
984
|
useSearchForm: any;
|
|
985
|
+
columnFieldSource: "visible" | "collect" | undefined;
|
|
977
986
|
toolTipErrorPlacement: "top" | "bottom" | "left" | "right";
|
|
978
987
|
afterFetch: ((data: any[], res: globalThis.Recordable | globalThis.Recordable[]) => Promise<any[]>) | undefined;
|
|
979
988
|
beforeFetch: ((params: globalThis.Recordable) => Promise<globalThis.Recordable>) | undefined;
|
|
@@ -64,32 +64,45 @@ declare function __VLS_template(): {
|
|
|
64
64
|
}>, {
|
|
65
65
|
open: (options?: import('../../../index').TtCustomExportModalOpenOptions) => Promise<void>;
|
|
66
66
|
close: () => void;
|
|
67
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
68
|
export: (payload: import('../../../index').ExportConfirmPayload) => any;
|
|
69
69
|
templateChange: (template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any;
|
|
70
|
-
}, import('vue').PublicProps, {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
deleteTemplateApi: (params: {
|
|
70
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
71
|
+
panelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../index').TtCustomExportPanelProps> & Readonly<{
|
|
72
|
+
onTemplateChange?: ((template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any) | undefined;
|
|
73
|
+
}>, {
|
|
74
|
+
reload: () => Promise<void>;
|
|
75
|
+
ready: import('vue').ShallowRef<Promise<void>, Promise<void>>;
|
|
76
|
+
confirm: () => import('../../../index').ExportConfirmPayload | undefined;
|
|
77
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
78
|
+
fieldCount: import('vue').ComputedRef<number>;
|
|
79
|
+
selectedCount: import('vue').ComputedRef<number>;
|
|
80
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
81
|
+
templateChange: (template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any;
|
|
82
|
+
}, import('vue').PublicProps, {
|
|
83
|
+
listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
|
|
85
84
|
businessCode: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLElement, import('vue').ComponentProvideOptions, {
|
|
86
|
+
P: {};
|
|
87
|
+
B: {};
|
|
88
|
+
D: {};
|
|
89
|
+
C: {};
|
|
90
|
+
M: {};
|
|
91
|
+
Defaults: {};
|
|
92
|
+
}, Readonly<import('../../../index').TtCustomExportPanelProps> & Readonly<{
|
|
93
|
+
onTemplateChange?: ((template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any) | undefined;
|
|
94
|
+
}>, {
|
|
95
|
+
reload: () => Promise<void>;
|
|
96
|
+
ready: import('vue').ShallowRef<Promise<void>, Promise<void>>;
|
|
97
|
+
confirm: () => import('../../../index').ExportConfirmPayload | undefined;
|
|
98
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
99
|
+
fieldCount: import('vue').ComputedRef<number>;
|
|
100
|
+
selectedCount: import('vue').ComputedRef<number>;
|
|
101
|
+
}, {}, {}, {}, {
|
|
102
|
+
listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
|
|
89
103
|
businessCode: string;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
104
|
+
}> | null;
|
|
105
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
93
106
|
P: {};
|
|
94
107
|
B: {};
|
|
95
108
|
D: {};
|
|
@@ -102,29 +115,7 @@ declare function __VLS_template(): {
|
|
|
102
115
|
}>, {
|
|
103
116
|
open: (options?: import('../../../index').TtCustomExportModalOpenOptions) => Promise<void>;
|
|
104
117
|
close: () => void;
|
|
105
|
-
}, {}, {}, {}, {
|
|
106
|
-
title: string;
|
|
107
|
-
listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
|
|
108
|
-
businessCode: string;
|
|
109
|
-
availableFields: import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[];
|
|
110
|
-
fetchFieldsApi: (params?: {
|
|
111
|
-
businessCode?: string;
|
|
112
|
-
}) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[] | unknown>;
|
|
113
|
-
fetchTemplatesApi: (params?: {
|
|
114
|
-
businessCode?: string;
|
|
115
|
-
}) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO[] | unknown>;
|
|
116
|
-
saveTemplateApi: (data: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateSaveCmd & {
|
|
117
|
-
businessCode: string;
|
|
118
|
-
}) => Promise<unknown>;
|
|
119
|
-
deleteTemplateApi: (params: {
|
|
120
|
-
businessCode: string;
|
|
121
|
-
templateId: number;
|
|
122
|
-
}) => Promise<unknown>;
|
|
123
|
-
setDefaultTemplateApi: (params: {
|
|
124
|
-
businessCode: string;
|
|
125
|
-
templateId: number;
|
|
126
|
-
}) => Promise<unknown>;
|
|
127
|
-
}> | null;
|
|
118
|
+
}, {}, {}, {}, {}> | null;
|
|
128
119
|
columnModalRef: ({
|
|
129
120
|
$: import('vue').ComponentInternalInstance;
|
|
130
121
|
$data: {};
|
|
@@ -261,6 +252,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
261
252
|
clearTreeExpand?: boolean;
|
|
262
253
|
data?: import('vue').MaybeRef<any[]> | undefined;
|
|
263
254
|
columns?: import('vue').MaybeRef<import('../../../index').TtColumnOptions<any>[]> | undefined;
|
|
255
|
+
columnFieldSource?: "visible" | "collect";
|
|
264
256
|
testId?: string;
|
|
265
257
|
toolTipErrorPlacement?: "top" | "bottom" | "left" | "right";
|
|
266
258
|
id?: import("vxe-table").VxeTablePropTypes.ID<any> | undefined;
|
|
@@ -493,6 +485,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
493
485
|
clearTreeExpand?: boolean;
|
|
494
486
|
data?: import('vue').MaybeRef<any[]> | undefined;
|
|
495
487
|
columns?: import('vue').MaybeRef<import('../../../index').TtColumnOptions<any>[]> | undefined;
|
|
488
|
+
columnFieldSource?: "visible" | "collect";
|
|
496
489
|
testId?: string;
|
|
497
490
|
toolTipErrorPlacement?: "top" | "bottom" | "left" | "right";
|
|
498
491
|
id?: import("vxe-table").VxeTablePropTypes.ID<any> | undefined;
|
|
@@ -686,32 +679,45 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
686
679
|
}>, {
|
|
687
680
|
open: (options?: import('../../../index').TtCustomExportModalOpenOptions) => Promise<void>;
|
|
688
681
|
close: () => void;
|
|
689
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
682
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
690
683
|
export: (payload: import('../../../index').ExportConfirmPayload) => any;
|
|
691
684
|
templateChange: (template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any;
|
|
692
|
-
}, import('vue').PublicProps, {
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
deleteTemplateApi: (params: {
|
|
685
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
686
|
+
panelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../index').TtCustomExportPanelProps> & Readonly<{
|
|
687
|
+
onTemplateChange?: ((template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any) | undefined;
|
|
688
|
+
}>, {
|
|
689
|
+
reload: () => Promise<void>;
|
|
690
|
+
ready: import('vue').ShallowRef<Promise<void>, Promise<void>>;
|
|
691
|
+
confirm: () => import('../../../index').ExportConfirmPayload | undefined;
|
|
692
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
693
|
+
fieldCount: import('vue').ComputedRef<number>;
|
|
694
|
+
selectedCount: import('vue').ComputedRef<number>;
|
|
695
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
696
|
+
templateChange: (template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any;
|
|
697
|
+
}, import('vue').PublicProps, {
|
|
698
|
+
listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
|
|
707
699
|
businessCode: string;
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
700
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLElement, import('vue').ComponentProvideOptions, {
|
|
701
|
+
P: {};
|
|
702
|
+
B: {};
|
|
703
|
+
D: {};
|
|
704
|
+
C: {};
|
|
705
|
+
M: {};
|
|
706
|
+
Defaults: {};
|
|
707
|
+
}, Readonly<import('../../../index').TtCustomExportPanelProps> & Readonly<{
|
|
708
|
+
onTemplateChange?: ((template: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO | undefined) => any) | undefined;
|
|
709
|
+
}>, {
|
|
710
|
+
reload: () => Promise<void>;
|
|
711
|
+
ready: import('vue').ShallowRef<Promise<void>, Promise<void>>;
|
|
712
|
+
confirm: () => import('../../../index').ExportConfirmPayload | undefined;
|
|
713
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
714
|
+
fieldCount: import('vue').ComputedRef<number>;
|
|
715
|
+
selectedCount: import('vue').ComputedRef<number>;
|
|
716
|
+
}, {}, {}, {}, {
|
|
717
|
+
listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
|
|
711
718
|
businessCode: string;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
719
|
+
}> | null;
|
|
720
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
715
721
|
P: {};
|
|
716
722
|
B: {};
|
|
717
723
|
D: {};
|
|
@@ -724,29 +730,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
724
730
|
}>, {
|
|
725
731
|
open: (options?: import('../../../index').TtCustomExportModalOpenOptions) => Promise<void>;
|
|
726
732
|
close: () => void;
|
|
727
|
-
}, {}, {}, {}, {
|
|
728
|
-
title: string;
|
|
729
|
-
listColumns: string[] | VxeTableDefines.ColumnOptions<any>[] | import('vue').Ref<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ShallowRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').WritableComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined, string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | import('vue').ComputedRef<string[] | VxeTableDefines.ColumnOptions<any>[] | undefined> | (() => string[] | VxeTableDefines.ColumnOptions<any>[] | undefined);
|
|
730
|
-
businessCode: string;
|
|
731
|
-
availableFields: import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[];
|
|
732
|
-
fetchFieldsApi: (params?: {
|
|
733
|
-
businessCode?: string;
|
|
734
|
-
}) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportFieldCO[] | unknown>;
|
|
735
|
-
fetchTemplatesApi: (params?: {
|
|
736
|
-
businessCode?: string;
|
|
737
|
-
}) => Promise<import("@dazhicheng-ui/index").ReportAPI.ExportTemplateCO[] | unknown>;
|
|
738
|
-
saveTemplateApi: (data: import("@dazhicheng-ui/index").ReportAPI.ExportTemplateSaveCmd & {
|
|
739
|
-
businessCode: string;
|
|
740
|
-
}) => Promise<unknown>;
|
|
741
|
-
deleteTemplateApi: (params: {
|
|
742
|
-
businessCode: string;
|
|
743
|
-
templateId: number;
|
|
744
|
-
}) => Promise<unknown>;
|
|
745
|
-
setDefaultTemplateApi: (params: {
|
|
746
|
-
businessCode: string;
|
|
747
|
-
templateId: number;
|
|
748
|
-
}) => Promise<unknown>;
|
|
749
|
-
}> | null;
|
|
733
|
+
}, {}, {}, {}, {}> | null;
|
|
750
734
|
columnModalRef: ({
|
|
751
735
|
$: import('vue').ComponentInternalInstance;
|
|
752
736
|
$data: {};
|