@dazhicheng/ui 1.6.48 → 1.6.50

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.
Files changed (30) hide show
  1. package/dist/components/tt-custom-export-modal/src/TtCustomExportModal.vue.js +177 -177
  2. package/dist/components/tt-custom-export-modal/src/api.d.ts +12 -12
  3. package/dist/components/tt-custom-export-modal/src/api.js +23 -29
  4. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.d.ts +2 -2
  5. package/dist/components/tt-custom-export-modal/src/components/FieldToolbarSection.vue.d.ts +1 -1
  6. package/dist/components/tt-custom-export-modal/src/components/TemplateManagerSection.vue.js +71 -54
  7. package/dist/components/tt-custom-export-modal/src/types/report.d.ts +8 -19
  8. package/dist/components/tt-drawer/index.d.ts +3 -3
  9. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +1 -1
  10. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +2 -2
  11. package/dist/components/tt-modal/index.d.ts +32 -32
  12. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +22 -22
  13. package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +2 -2
  14. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +5 -5
  15. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +1 -1
  16. package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +1 -1
  17. package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
  18. package/dist/components/tt-table/index.d.ts +17 -8
  19. package/dist/components/tt-table/src/Table.vue.d.ts +12 -6
  20. package/dist/components/tt-table/src/TableForm.vue.d.ts +9 -9
  21. package/dist/components/tt-table/src/TableForm.vue.js +68 -68
  22. package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +4 -4
  23. package/dist/components/tt-table/src/props.d.ts +7 -4
  24. package/dist/components/tt-table/src/props.js +4 -4
  25. package/dist/components/tt-table/src/types/table.d.ts +6 -0
  26. package/dist/components/tt-table/src/types/tableForm.d.ts +0 -6
  27. package/dist/components/tt-upload/index.d.ts +11 -11
  28. package/dist/components/tt-upload/src/TtUpload.vue.d.ts +4 -4
  29. package/dist/style.css +1 -1
  30. package/package.json +1 -1
@@ -129,7 +129,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
129
129
  scrollLeft: number;
130
130
  }) => any) | undefined;
131
131
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
132
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
132
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
133
133
  wrapRef: HTMLDivElement | undefined;
134
134
  update: () => void;
135
135
  scrollTo: {
@@ -256,7 +256,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
256
256
  scrollLeft: number;
257
257
  }) => any) | undefined;
258
258
  "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
259
- }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "update" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "setScrollTop" | "setScrollLeft"> & {
259
+ }>, "height" | "tabindex" | "tag" | "handleScroll" | "maxHeight" | "scrollTo" | "distance" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "minSize" | "wrapRef" | "update" | "setScrollTop" | "setScrollLeft"> & {
260
260
  wrapRef: HTMLDivElement | undefined;
261
261
  update: () => void;
262
262
  scrollTo: {
@@ -18,9 +18,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
18
18
  selectByListColumns: () => any;
19
19
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
20
  onClearAll?: (() => any) | undefined;
21
- "onUpdate:keyword"?: ((value: string) => any) | undefined;
22
21
  onToggleSelectAll?: (() => any) | undefined;
23
22
  onSelectByListColumns?: (() => any) | undefined;
23
+ "onUpdate:keyword"?: ((value: string) => any) | undefined;
24
24
  }>, {
25
25
  isAllSelected: boolean;
26
26
  hasListColumns: boolean;
@@ -1,36 +1,36 @@
1
- import { defineComponent as B, mergeModels as k, useModel as D, ref as E, computed as N, watch as I, createElementBlock as c, openBlock as r, createElementVNode as a, createVNode as u, createCommentVNode as f, createBlock as v, unref as s, withCtx as i, Fragment as h, renderList as z, toDisplayString as g, createTextVNode as x } from "vue";
1
+ import { defineComponent as B, mergeModels as N, useModel as D, ref as E, computed as S, watch as I, createElementBlock as y, openBlock as r, createElementVNode as l, createVNode as u, createCommentVNode as c, createBlock as f, unref as s, withCtx as i, Fragment as h, renderList as z, toDisplayString as v, createTextVNode as g } from "vue";
2
2
  import { TtButton as T } from "../../../tt-button/index.js";
3
- import { ElSelect as H, ElOption as j, ElTag as S, ElInput as U } from "element-plus";
3
+ import { ElSelect as H, ElOption as j, ElTag as b, ElInput as U } from "element-plus";
4
4
  import F from "../assets/star.svg.js";
5
5
  import O from "../assets/trash.svg.js";
6
- const q = { class: "space-y-2.5 rounded-md border border-(--el-border-color-lighter) bg-(--el-fill-color-light)/40 p-3.5" }, A = { class: "flex flex-wrap items-center gap-2.5" }, G = { class: "flex h-full items-center justify-between text-xs" }, J = ["innerHTML"], K = ["innerHTML"], P = {
6
+ const q = { class: "space-y-2.5 rounded-md border border-(--el-border-color-lighter) bg-(--el-fill-color-light)/40 p-3.5" }, A = { class: "flex flex-wrap items-center gap-2.5" }, G = { class: "flex items-center gap-2" }, J = { class: "min-w-0 truncate" }, K = { class: "flex h-full items-center justify-between text-xs" }, P = ["innerHTML"], Q = ["innerHTML"], R = {
7
7
  key: 0,
8
8
  class: "text-xs text-(--el-text-color-secondary)"
9
- }, Q = { class: "flex flex-wrap items-center gap-2.5" }, $ = /* @__PURE__ */ B({
9
+ }, W = { class: "flex flex-wrap items-center gap-2.5" }, te = /* @__PURE__ */ B({
10
10
  name: "TemplateManagerSection",
11
11
  __name: "TemplateManagerSection",
12
- props: /* @__PURE__ */ k({
12
+ props: /* @__PURE__ */ N({
13
13
  templateList: { default: () => [] },
14
14
  isSaving: { type: Boolean, default: !1 }
15
15
  }, {
16
16
  selectedTemplateId: {},
17
17
  selectedTemplateIdModifiers: {}
18
18
  }),
19
- emits: /* @__PURE__ */ k(["selectTemplate", "setDefault", "delete", "save"], ["update:selectedTemplateId"]),
19
+ emits: /* @__PURE__ */ N(["selectTemplate", "setDefault", "delete", "save"], ["update:selectedTemplateId"]),
20
20
  setup(m, { emit: V }) {
21
- const C = m, p = V, l = D(m, "selectedTemplateId"), d = E(""), o = N(() => {
22
- if (l.value)
23
- return C.templateList.find((t) => t.id === l.value);
24
- }), y = N(() => {
21
+ const _ = m, p = V, n = D(m, "selectedTemplateId"), d = E(""), o = S(() => {
22
+ if (n.value)
23
+ return _.templateList.find((t) => t.id === n.value);
24
+ }), x = S(() => {
25
25
  var t;
26
26
  return !!((t = o.value) != null && t.defaultTemplate);
27
- }), M = (t) => {
27
+ }), w = (t) => {
28
28
  p("selectTemplate", t);
29
- }, w = () => {
30
- l.value && p("setDefault", l.value);
29
+ }, C = () => {
30
+ n.value && p("setDefault", n.value);
31
+ }, M = () => {
32
+ !n.value || !o.value || p("delete", n.value, o.value.templateName || "未命名模板");
31
33
  }, L = () => {
32
- !l.value || !o.value || p("delete", l.value, o.value.templateName || "未命名模板");
33
- }, _ = () => {
34
34
  const t = d.value.trim();
35
35
  t && p("save", t);
36
36
  };
@@ -41,39 +41,56 @@ const q = { class: "space-y-2.5 rounded-md border border-(--el-border-color-ligh
41
41
  },
42
42
  { immediate: !0 }
43
43
  ), (t, e) => {
44
- var b;
45
- return r(), c("div", q, [
46
- a("div", A, [
47
- e[6] || (e[6] = a("span", { class: "shrink-0 text-sm font-medium text-(--el-text-color-regular)" }, "导出模板", -1)),
44
+ var k;
45
+ return r(), y("div", q, [
46
+ l("div", A, [
47
+ e[7] || (e[7] = l("span", { class: "shrink-0 text-sm font-medium text-(--el-text-color-regular)" }, "导出模板", -1)),
48
48
  u(s(H), {
49
- modelValue: l.value,
50
- "onUpdate:modelValue": e[0] || (e[0] = (n) => l.value = n),
49
+ modelValue: n.value,
50
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => n.value = a),
51
51
  placeholder: "请选择导出模板",
52
52
  clearable: "",
53
53
  style: { width: "240px" },
54
- onChange: M
54
+ onChange: w
55
55
  }, {
56
+ label: i(({ label: a }) => [
57
+ l("span", G, [
58
+ l("span", J, v(a), 1),
59
+ x.value ? (r(), f(s(b), {
60
+ key: 0,
61
+ type: "success",
62
+ size: "small",
63
+ effect: "plain",
64
+ class: "shrink-0"
65
+ }, {
66
+ default: i(() => [...e[2] || (e[2] = [
67
+ g(" 默认 ", -1)
68
+ ])]),
69
+ _: 1
70
+ })) : c("", !0)
71
+ ])
72
+ ]),
56
73
  default: i(() => [
57
- (r(!0), c(h, null, z(m.templateList, (n) => (r(), v(s(j), {
58
- key: n.id,
59
- label: n.templateName,
60
- value: n.id ?? 0
74
+ (r(!0), y(h, null, z(m.templateList, (a) => (r(), f(s(j), {
75
+ key: a.id,
76
+ label: a.templateName,
77
+ value: a.id ?? 0
61
78
  }, {
62
79
  default: i(() => [
63
- a("div", G, [
64
- a("span", null, g(n.templateName), 1),
65
- n.defaultTemplate ? (r(), v(s(S), {
80
+ l("div", K, [
81
+ l("span", null, v(a.templateName), 1),
82
+ a.defaultTemplate ? (r(), f(s(b), {
66
83
  key: 0,
67
84
  type: "success",
68
85
  size: "small",
69
86
  effect: "plain",
70
87
  class: "ml-2"
71
88
  }, {
72
- default: i(() => [...e[2] || (e[2] = [
73
- x("默认", -1)
89
+ default: i(() => [...e[3] || (e[3] = [
90
+ g("默认", -1)
74
91
  ])]),
75
92
  _: 1
76
- })) : f("", !0)
93
+ })) : c("", !0)
77
94
  ])
78
95
  ]),
79
96
  _: 2
@@ -82,50 +99,50 @@ const q = { class: "space-y-2.5 rounded-md border border-(--el-border-color-ligh
82
99
  _: 1
83
100
  }, 8, ["modelValue"]),
84
101
  u(s(T), {
85
- disabled: !l.value || y.value,
86
- onClick: w
102
+ disabled: !n.value || x.value,
103
+ onClick: C
87
104
  }, {
88
105
  default: i(() => [
89
- a("span", {
106
+ l("span", {
90
107
  class: "mr-1 inline-flex items-center justify-center align-middle [&_svg]:block [&_svg]:size-3.5",
91
108
  innerHTML: s(F)
92
- }, null, 8, J),
93
- e[3] || (e[3] = a("span", null, "设为默认", -1))
109
+ }, null, 8, P),
110
+ e[4] || (e[4] = l("span", null, "设为默认", -1))
94
111
  ]),
95
112
  _: 1
96
113
  }, 8, ["disabled"]),
97
114
  u(s(T), {
98
115
  type: "danger",
99
116
  plain: "",
100
- disabled: !l.value,
101
- onClick: L
117
+ disabled: !n.value,
118
+ onClick: M
102
119
  }, {
103
120
  default: i(() => [
104
- a("span", {
121
+ l("span", {
105
122
  class: "mr-1 inline-flex items-center justify-center align-middle [&_svg]:block [&_svg]:size-3.5",
106
123
  innerHTML: s(O)
107
- }, null, 8, K),
108
- e[4] || (e[4] = a("span", null, "删除", -1))
124
+ }, null, 8, Q),
125
+ e[5] || (e[5] = l("span", null, "删除", -1))
109
126
  ]),
110
127
  _: 1
111
128
  }, 8, ["disabled"]),
112
- o.value ? (r(), c("span", P, " 当前:" + g(o.value.templateName) + "(" + g(((b = o.value.fields) == null ? void 0 : b.length) ?? 0) + " 字段) ", 1)) : f("", !0),
113
- y.value ? (r(), v(s(S), {
129
+ o.value ? (r(), y("span", R, " 当前:" + v(o.value.templateName) + "(" + v(((k = o.value.fields) == null ? void 0 : k.length) ?? 0) + " 字段) ", 1)) : c("", !0),
130
+ x.value ? (r(), f(s(b), {
114
131
  key: 1,
115
132
  type: "success",
116
133
  size: "small",
117
134
  effect: "plain"
118
135
  }, {
119
- default: i(() => [...e[5] || (e[5] = [
120
- x("默认字段", -1)
136
+ default: i(() => [...e[6] || (e[6] = [
137
+ g("默认字段", -1)
121
138
  ])]),
122
139
  _: 1
123
- })) : f("", !0)
140
+ })) : c("", !0)
124
141
  ]),
125
- a("div", Q, [
142
+ l("div", W, [
126
143
  u(s(U), {
127
144
  modelValue: d.value,
128
- "onUpdate:modelValue": e[1] || (e[1] = (n) => d.value = n),
145
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => d.value = a),
129
146
  placeholder: "输入模板名称,保存当前勾选字段",
130
147
  clearable: "",
131
148
  style: { width: "280px" }
@@ -134,19 +151,19 @@ const q = { class: "space-y-2.5 rounded-md border border-(--el-border-color-ligh
134
151
  type: "primary",
135
152
  loading: m.isSaving,
136
153
  disabled: !d.value.trim(),
137
- onClick: _
154
+ onClick: L
138
155
  }, {
139
- default: i(() => [...e[7] || (e[7] = [
140
- x(" 保存为模板 ", -1)
156
+ default: i(() => [...e[8] || (e[8] = [
157
+ g(" 保存为模板 ", -1)
141
158
  ])]),
142
159
  _: 1
143
160
  }, 8, ["loading", "disabled"]),
144
- e[8] || (e[8] = a("span", { class: "text-xs text-(--el-text-color-secondary)" }, "同名模板将被覆盖", -1))
161
+ e[9] || (e[9] = l("span", { class: "text-xs text-(--el-text-color-secondary)" }, "同名模板将被覆盖", -1))
145
162
  ])
146
163
  ]);
147
164
  };
148
165
  }
149
166
  });
150
167
  export {
151
- $ as default
168
+ te as default
152
169
  };
@@ -84,17 +84,6 @@ export declare namespace ReportAPI {
84
84
  /** 格式化规则 */
85
85
  formatPattern?: string;
86
86
  };
87
- type fieldsTemplatesExportApiParams = {
88
- businessCode: string;
89
- keyword?: string;
90
- };
91
- type templatesExportApiParams = {
92
- businessCode: string;
93
- };
94
- type defaultTemplatesExportApiParams = {
95
- businessCode: string;
96
- templateId: number;
97
- };
98
87
  type ResponseResultExportTemplateCO = {
99
88
  code?: number;
100
89
  msg?: string;
@@ -115,15 +104,15 @@ export declare namespace ReportAPI {
115
104
  msg?: string;
116
105
  data?: any;
117
106
  };
118
- type deleteTemplatesExportApiParams = {
119
- businessCode: string;
120
- templateId: number;
107
+ type BusinessCodeCmd = {
108
+ businessCode?: string;
121
109
  };
122
- type detailTemplatesExportApiParams = {
123
- businessCode: string;
124
- templateId: number;
110
+ type FieldsCmd = {
111
+ businessCode?: string;
112
+ keyword?: string;
125
113
  };
126
- type defaultTemplateTemplatesExportApiParams = {
127
- businessCode: string;
114
+ type TemplateIdCmd = {
115
+ businessCode?: string;
116
+ templateId?: number;
128
117
  };
129
118
  }
@@ -497,7 +497,6 @@ export declare const RenderDrawer: import('../../../../utils/src').SFCWithInstal
497
497
  direction: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
498
498
  overflow: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
499
499
  testId: any;
500
- modal: boolean;
501
500
  cancelText: any;
502
501
  okText: any;
503
502
  showCancelBtn: any;
@@ -505,6 +504,7 @@ export declare const RenderDrawer: import('../../../../utils/src').SFCWithInstal
505
504
  confirmLoading: any;
506
505
  okButtonProps: Partial<import('element-plus').ButtonProps>;
507
506
  cancelButtonProps: Partial<import('element-plus').ButtonProps>;
507
+ modal: boolean;
508
508
  appendToBody: boolean;
509
509
  destroyOnClose: boolean;
510
510
  closeOnClickModal: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -1213,7 +1213,6 @@ export declare const RenderDrawer: import('../../../../utils/src').SFCWithInstal
1213
1213
  direction: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
1214
1214
  overflow: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
1215
1215
  testId: any;
1216
- modal: boolean;
1217
1216
  cancelText: any;
1218
1217
  okText: any;
1219
1218
  showCancelBtn: any;
@@ -1221,6 +1220,7 @@ export declare const RenderDrawer: import('../../../../utils/src').SFCWithInstal
1221
1220
  confirmLoading: any;
1222
1221
  okButtonProps: Partial<import('element-plus').ButtonProps>;
1223
1222
  cancelButtonProps: Partial<import('element-plus').ButtonProps>;
1223
+ modal: boolean;
1224
1224
  appendToBody: boolean;
1225
1225
  destroyOnClose: boolean;
1226
1226
  closeOnClickModal: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -1746,7 +1746,6 @@ export declare const RenderDrawer: import('../../../../utils/src').SFCWithInstal
1746
1746
  direction: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
1747
1747
  overflow: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
1748
1748
  testId: any;
1749
- modal: boolean;
1750
1749
  cancelText: any;
1751
1750
  okText: any;
1752
1751
  showCancelBtn: any;
@@ -1754,6 +1753,7 @@ export declare const RenderDrawer: import('../../../../utils/src').SFCWithInstal
1754
1753
  confirmLoading: any;
1755
1754
  okButtonProps: Partial<import('element-plus').ButtonProps>;
1756
1755
  cancelButtonProps: Partial<import('element-plus').ButtonProps>;
1756
+ modal: boolean;
1757
1757
  appendToBody: boolean;
1758
1758
  destroyOnClose: boolean;
1759
1759
  closeOnClickModal: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -804,7 +804,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
804
804
  direction: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
805
805
  overflow: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
806
806
  testId: any;
807
- modal: boolean;
808
807
  cancelText: any;
809
808
  okText: any;
810
809
  showCancelBtn: any;
@@ -812,6 +811,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
812
811
  confirmLoading: any;
813
812
  okButtonProps: Partial<import('element-plus').ButtonProps>;
814
813
  cancelButtonProps: Partial<import('element-plus').ButtonProps>;
814
+ modal: boolean;
815
815
  appendToBody: boolean;
816
816
  destroyOnClose: boolean;
817
817
  closeOnClickModal: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -6,10 +6,10 @@ export declare const FormArrayRegister: import('vue').DefineComponent<{
6
6
  hide?: boolean | undefined;
7
7
  rules?: import('../../types').FormSchemaRuleType | undefined;
8
8
  defaultValue?: any;
9
+ fieldName: string;
9
10
  wrapperClass?: string | undefined;
10
11
  arraySchema?: FormSchema<Record<string, any>>[] | ((entry: FieldEntry<Recordable>, currentIndex: number, ctx: ArraySchemaContext) => FormSchema<Record<string, any>>[]) | undefined;
11
12
  dependencies?: import('./types').ArrayRegisterDependencies<Record<string, any>> | undefined;
12
- fieldName: string;
13
13
  formItemClass?: (() => string) | string | undefined;
14
14
  virtual?: boolean | undefined;
15
15
  progressive?: boolean | undefined;
@@ -18,10 +18,10 @@ export declare const FormArrayRegister: import('vue').DefineComponent<{
18
18
  hide?: boolean | undefined;
19
19
  rules?: import('../../types').FormSchemaRuleType | undefined;
20
20
  defaultValue?: any;
21
+ fieldName: string;
21
22
  wrapperClass?: string | undefined;
22
23
  arraySchema?: FormSchema<Record<string, any>>[] | ((entry: FieldEntry<Recordable>, currentIndex: number, ctx: ArraySchemaContext) => FormSchema<Record<string, any>>[]) | undefined;
23
24
  dependencies?: import('./types').ArrayRegisterDependencies<Record<string, any>> | undefined;
24
- fieldName: string;
25
25
  formItemClass?: (() => string) | string | undefined;
26
26
  virtual?: boolean | undefined;
27
27
  progressive?: boolean | undefined;