@dazhicheng/ui 1.6.79 → 1.6.81

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 (53) hide show
  1. package/dist/api/supplier.d.ts +16 -0
  2. package/dist/api/supplier.js +39 -12
  3. package/dist/assets/svg/download.svg.js +1 -1
  4. package/dist/components/tt-area/TtArea.vue.js +1 -1
  5. package/dist/components/tt-button/index.d.ts +28 -28
  6. package/dist/components/tt-button/index.vue.d.ts +16 -16
  7. package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +5 -5
  8. package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +3 -3
  9. package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +7 -7
  10. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +1 -1
  11. package/dist/components/tt-drawer/index.d.ts +109 -109
  12. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +60 -60
  13. package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
  14. package/dist/components/tt-empty/index.d.ts +4 -4
  15. package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +10 -10
  16. package/dist/components/tt-icon/index.vue.js +2 -2
  17. package/dist/components/tt-image/index.d.ts +29 -29
  18. package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
  19. package/dist/components/tt-image/tt-image.d.ts +29 -29
  20. package/dist/components/tt-input-textarea/index.vue.d.ts +40 -40
  21. package/dist/components/tt-loading/src/loading.vue.js +2 -2
  22. package/dist/components/tt-modal/index.d.ts +150 -150
  23. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +42 -42
  24. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +17 -17
  25. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +5 -5
  26. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +133 -122
  27. package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +77 -66
  28. package/dist/components/tt-panel-select/src/hooks/usePanelData.d.ts +2 -0
  29. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +14 -14
  30. package/dist/components/tt-panel-select/src/index.vue.d.ts +7 -5
  31. package/dist/components/tt-panel-select/src/index.vue.js +300 -219
  32. package/dist/components/tt-panel-select/src/types.d.ts +12 -0
  33. package/dist/components/tt-table/index.js +6 -5
  34. package/dist/components/tt-table/src/TableForm.vue.js +3 -2
  35. package/dist/components/tt-table/src/hooks/useQuery.js +52 -50
  36. package/dist/components/tt-upload/index.d.ts +60 -60
  37. package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
  38. package/dist/components/tt-upload/src/typing.d.ts +17 -17
  39. package/dist/hooks/basicDataCodes.d.ts +5 -0
  40. package/dist/hooks/basicDataCodes.js +61 -60
  41. package/dist/hooks/missingOptionsCache.d.ts +53 -0
  42. package/dist/hooks/missingOptionsCache.js +133 -0
  43. package/dist/hooks/panelSelectEchoFields.d.ts +12 -0
  44. package/dist/hooks/panelSelectEchoFields.js +46 -0
  45. package/dist/hooks/useBasicDataOptions.d.ts +2 -0
  46. package/dist/hooks/useBasicDataOptions.js +85 -78
  47. package/dist/hooks/useDataPermissionOptions.d.ts +10 -0
  48. package/dist/hooks/useDataPermissionOptions.js +83 -66
  49. package/dist/hooks/useFormSchemasLink.js +240 -194
  50. package/dist/hooks/usePanelSelectSchemas.d.ts +11 -0
  51. package/dist/hooks/usePanelSelectSchemas.js +158 -122
  52. package/dist/style.css +1 -1
  53. package/package.json +1 -1
@@ -28,14 +28,14 @@ function Me(l) {
28
28
  parentField: e.parentField ?? "pid",
29
29
  rootParentValue: e.rootParentValue ?? null
30
30
  };
31
- }), F = w(!1), A = w([]), C = w(!1), P = w(!1), S = m(() => re(y(l.api) ? A.value : l.options || [])), M = m(() => R(S.value)), I = m(() => !D() && l.showPinyinMode ? $(O.value) : G(M.value)), N = m(() => q(M.value)), B = m(() => N.value.filter((e) => {
31
+ }), F = w(!1), A = w([]), S = w(!1), C = w(!1), P = m(() => re(y(l.api) ? A.value : l.options || [])), M = m(() => R(P.value)), I = m(() => !D() && l.showPinyinMode ? $(O.value) : G(M.value)), N = m(() => q(M.value)), B = m(() => N.value.filter((e) => {
32
32
  var t;
33
33
  return (t = e.children) == null ? void 0 : t.length;
34
34
  })), O = m(() => N.value.filter((e) => e.children === void 0));
35
- async function k() {
35
+ async function L() {
36
36
  if (!(!l.api || !y(l.api))) {
37
37
  if (F.value) {
38
- C.value = !0;
38
+ S.value = !0;
39
39
  return;
40
40
  }
41
41
  A.value = [];
@@ -44,11 +44,11 @@ function Me(l) {
44
44
  let e = ne(l.params);
45
45
  l.beforeFetch && y(l.beforeFetch) && (e = await l.beforeFetch(le(e)) || e);
46
46
  let t = await l.api(e);
47
- l.afterFetch && y(l.afterFetch) && (t = await l.afterFetch(t) || t), P.value = !0, A.value = Array.isArray(t) ? t : o(t, l.resultField || "") || [];
47
+ l.afterFetch && y(l.afterFetch) && (t = await l.afterFetch(t) || t), C.value = !0, A.value = Array.isArray(t) ? t : o(t, l.resultField || "") || [];
48
48
  } catch {
49
- P.value = !1;
49
+ C.value = !1;
50
50
  } finally {
51
- F.value = !1, C.value && (C.value = !1, await ie(), k());
51
+ F.value = !1, S.value && (S.value = !1, await ie(), L());
52
52
  }
53
53
  }
54
54
  }
@@ -143,19 +143,19 @@ function Me(l) {
143
143
  function j(e) {
144
144
  return se(e, l.separator).map((t) => t.toLowerCase());
145
145
  }
146
- function L(e, t) {
146
+ function k(e, t) {
147
147
  const r = j(t);
148
148
  return r.length ? e.filter((n) => {
149
- const i = n.label.toLowerCase();
150
- return r.some((s) => i.includes(s));
149
+ const i = String(n.label ?? "").toLowerCase(), s = String(n.value ?? "").toLowerCase();
150
+ return r.some((u) => i.includes(u) || s.includes(u));
151
151
  }) : e;
152
152
  }
153
153
  function H(e, t) {
154
- const r = L(e, t);
154
+ const r = k(e, t);
155
155
  return l.showOriginMode ? Q(r) : l.showPinyinMode ? K(r) : D() ? J(r) : E(r);
156
156
  }
157
157
  function D() {
158
- const { childrenField: e, transform: t } = T.value, r = S.value.some((s) => Array.isArray(o(s, e))), n = S.value.some((s) => {
158
+ const { childrenField: e, transform: t } = T.value, r = P.value.some((s) => Array.isArray(o(s, e))), n = P.value.some((s) => {
159
159
  const u = o(s, e);
160
160
  return Array.isArray(u) && !!u.length;
161
161
  });
@@ -202,14 +202,14 @@ function Me(l) {
202
202
  }
203
203
  return {
204
204
  loading: F,
205
- fetchApi: k,
205
+ fetchApi: L,
206
206
  treeOptions: M,
207
207
  navTreeOptions: I,
208
208
  navNodes: B,
209
209
  leafNodes: O,
210
- filterNodes: L,
210
+ filterNodes: k,
211
211
  buildOptionGroups: H,
212
- isFirstLoaded: P
212
+ isFirstLoaded: C
213
213
  };
214
214
  }
215
215
  export {
@@ -41,6 +41,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
41
41
  separator: import('./types').PanelSelectSeparator;
42
42
  middlePlaceholder: string;
43
43
  showNav: boolean;
44
+ resolveMissingOptions: (codes: Array<string | number>) => Promise<PanelSelectOption[]>;
45
+ missingEchoKey: string;
44
46
  showAllField: PanelSelectValue;
45
47
  showPinyinMode: boolean;
46
48
  showOriginMode: boolean;
@@ -94,12 +96,12 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
94
96
  readonly form?: string | undefined;
95
97
  readonly readonly?: boolean | undefined;
96
98
  readonly clearable?: boolean | undefined;
97
- readonly clearIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
99
+ readonly clearIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
98
100
  readonly showPassword?: boolean | undefined;
99
101
  readonly showWordLimit?: boolean | undefined;
100
102
  readonly wordLimitPosition?: "inside" | "outside" | undefined;
101
- readonly suffixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
102
- readonly prefixIcon?: import('element-plus/es/utils/vue/icon.mjs').IconPropType | undefined;
103
+ readonly suffixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
104
+ readonly prefixIcon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
103
105
  readonly containerRole?: string | undefined;
104
106
  readonly tabindex?: string | number | undefined;
105
107
  readonly validateEvent?: boolean | undefined;
@@ -180,7 +182,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
180
182
  disabled: boolean;
181
183
  modelModifiers: import('element-plus').InputModelModifiers;
182
184
  autocomplete: string;
183
- clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
185
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
184
186
  wordLimitPosition: "inside" | "outside";
185
187
  tabindex: string | number;
186
188
  validateEvent: boolean;
@@ -212,7 +214,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
212
214
  disabled: boolean;
213
215
  modelModifiers: import('element-plus').InputModelModifiers;
214
216
  autocomplete: string;
215
- clearIcon: import('element-plus/es/utils/vue/icon.mjs').IconPropType;
217
+ clearIcon: import('element-plus/es/utils/index.mjs').IconPropType;
216
218
  wordLimitPosition: "inside" | "outside";
217
219
  tabindex: string | number;
218
220
  validateEvent: boolean;