@dazhicheng/ui 1.6.41 → 1.6.43

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 (99) hide show
  1. package/dist/assets/svg/download.svg.js +1 -1
  2. package/dist/components/tt-api-component/index.vue2.js +73 -73
  3. package/dist/components/tt-area/TtArea.vue.js +1 -1
  4. package/dist/components/tt-button/index.d.ts +91 -105
  5. package/dist/components/tt-button/index.vue.d.ts +52 -60
  6. package/dist/components/tt-button/index.vue2.js +1 -1
  7. package/dist/components/tt-drawer/index.d.ts +352 -326
  8. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +196 -184
  9. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +1 -1
  10. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +1 -1
  11. package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
  12. package/dist/components/tt-empty/index.d.ts +4 -4
  13. package/dist/components/tt-empty/index.js +1 -1
  14. package/dist/components/tt-form/index.js +1 -1
  15. package/dist/components/tt-form/src/components/FormActions.vue2.js +1 -1
  16. package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +106 -110
  17. package/dist/components/tt-form/src/form/FormMessageToolTip.vue.js +12 -12
  18. package/dist/components/tt-form/src/form-render/FormField.vue2.js +164 -164
  19. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +34 -34
  20. package/dist/components/tt-form/src/form-render/expandable.js +20 -25
  21. package/dist/components/tt-form/src/form-render/form.vue2.js +1 -1
  22. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +1 -1
  23. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +124 -124
  24. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +99 -99
  25. package/dist/components/tt-form/src/index.vue.d.ts +8 -12
  26. package/dist/components/tt-form/src/index.vue2.js +1 -1
  27. package/dist/components/tt-form-item-error-tooltip/index.d.ts +30 -126
  28. package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +15 -63
  29. package/dist/components/tt-icon/components/AddIcon.vue.js +6 -6
  30. package/dist/components/tt-icon/components/SubIcon.vue.js +6 -6
  31. package/dist/components/tt-icon/index.d.ts +4 -4
  32. package/dist/components/tt-icon/index.vue.js +2 -2
  33. package/dist/components/tt-icon/index.vue2.js +28 -28
  34. package/dist/components/tt-image/index.d.ts +29 -29
  35. package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
  36. package/dist/components/tt-image/tt-image.d.ts +29 -29
  37. package/dist/components/tt-input-textarea/index.vue.d.ts +424 -440
  38. package/dist/components/tt-input-textarea/index.vue.js +153 -153
  39. package/dist/components/tt-keep-alive/core/Suspense.d.ts +3 -0
  40. package/dist/components/tt-keep-alive/core/Suspense.js +10 -0
  41. package/dist/components/tt-keep-alive/core/apiAsyncComponent.d.ts +2 -0
  42. package/dist/components/tt-keep-alive/core/apiAsyncComponent.js +6 -0
  43. package/dist/components/tt-keep-alive/core/component.d.ts +2 -0
  44. package/dist/components/tt-keep-alive/core/component.js +7 -0
  45. package/dist/components/tt-keep-alive/core/componentPublicInstance.d.ts +5 -0
  46. package/dist/components/tt-keep-alive/core/devtools.d.ts +2 -0
  47. package/dist/components/tt-keep-alive/core/errorHandling.d.ts +17 -0
  48. package/dist/components/tt-keep-alive/core/errorHandling.js +4 -0
  49. package/dist/components/tt-keep-alive/core/renderer.d.ts +32 -0
  50. package/dist/components/tt-keep-alive/core/renderer.js +8 -0
  51. package/dist/components/tt-keep-alive/core/shapeFlags.d.ts +13 -0
  52. package/dist/components/tt-keep-alive/core/vnode.d.ts +6 -0
  53. package/dist/components/tt-keep-alive/core/vnode.js +8 -0
  54. package/dist/components/tt-keep-alive/index.d.ts +26 -0
  55. package/dist/components/tt-keep-alive/index.js +139 -0
  56. package/dist/components/tt-loading/src/loading.vue.js +2 -2
  57. package/dist/components/tt-loading/src/loading.vue2.js +22 -22
  58. package/dist/components/tt-log/index.vue.js +1 -1
  59. package/dist/components/tt-modal/index.d.ts +182 -162
  60. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +54 -54
  61. package/dist/components/tt-modal/src/RenderModal.vue.js +236 -228
  62. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +1 -1
  63. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +26 -22
  64. package/dist/components/tt-modal/src/utils/resolve-modal-target.js +57 -53
  65. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +123 -123
  66. package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +24 -24
  67. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +63 -67
  68. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +145 -145
  69. package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +10 -12
  70. package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +48 -48
  71. package/dist/components/tt-panel-select/src/index.vue.d.ts +63 -67
  72. package/dist/components/tt-panel-select/src/index.vue.js +137 -137
  73. package/dist/components/tt-radio-group/index.vue.js +1 -1
  74. package/dist/components/tt-select/src/Select.vue.d.ts +8 -12
  75. package/dist/components/tt-select/src/Select.vue.js +1 -1
  76. package/dist/components/tt-select/src/components/SelectTable.vue.js +1 -1
  77. package/dist/components/tt-select/src/components/Table.vue.js +1 -1
  78. package/dist/components/tt-table/index.d.ts +20 -24
  79. package/dist/components/tt-table/index.js +1 -1
  80. package/dist/components/tt-table/src/Table.vue.d.ts +40 -48
  81. package/dist/components/tt-table/src/Table.vue.js +1 -1
  82. package/dist/components/tt-table/src/TableForm.vue.d.ts +8 -12
  83. package/dist/components/tt-table/src/TableForm.vue.js +1 -1
  84. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +1 -1
  85. package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +40 -48
  86. package/dist/components/tt-text/index.vue2.js +22 -22
  87. package/dist/components/tt-upload/index.d.ts +60 -60
  88. package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
  89. package/dist/components/tt-upload/src/TtUpload.vue.js +1 -1
  90. package/dist/components/tt-upload/src/typing.d.ts +17 -17
  91. package/dist/hooks/useScreenshotOss.js +1 -1
  92. package/dist/index.d.ts +1 -0
  93. package/dist/index.js +80 -78
  94. package/dist/node_modules/.pnpm/@vue_shared@3.5.34/node_modules/@vue/shared/dist/shared.esm-bundler.js +17 -0
  95. package/dist/packages/hooks/src/propTypes.js +1 -1
  96. package/dist/plugins/vxeTable/switchStatus.js +1 -1
  97. package/dist/style.css +1 -1
  98. package/package.json +3 -2
  99. /package/dist/node_modules/.pnpm/{vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_ → vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_}/node_modules/vue-types/shim/index.modern.js +0 -0
@@ -0,0 +1,6 @@
1
+ import { ComponentInternalInstance, VNode } from 'vue';
2
+ type VNodeMountHook = (vnode: VNode) => void;
3
+ type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
4
+ export type VNodeHook = VNodeMountHook | VNodeUpdateHook | VNodeMountHook[] | VNodeUpdateHook[];
5
+ export declare function invokeVNodeHook(hook: VNodeHook, instance: ComponentInternalInstance | null, vnode: VNode, prevVNode?: VNode | null): void;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { callWithAsyncErrorHandling as l } from "vue";
2
+ import { ErrorCodes as t } from "./errorHandling.js";
3
+ function c(o, r, n, i = null) {
4
+ l(o, r, t.VNODE_HOOK, [n, i]);
5
+ }
6
+ export {
7
+ c as invokeVNodeHook
8
+ };
@@ -0,0 +1,26 @@
1
+ import { VNode, VNodeProps } from 'vue';
2
+ type MatchPattern = string | RegExp | Array<string | RegExp>;
3
+ export type TtKeepAliveProps = {
4
+ include?: MatchPattern;
5
+ exclude?: MatchPattern;
6
+ max?: number | string;
7
+ includeKey?: MatchPattern;
8
+ excludeKey?: MatchPattern;
9
+ };
10
+ export type TtKeepAliveExposed = {
11
+ /** 精确删除指定缓存 key 对应的页面实例。 */
12
+ remove: (key: string | number | symbol) => void;
13
+ /** 清空当前 KeepAlive 的全部缓存实例。 */
14
+ clear: () => void;
15
+ };
16
+ export declare const TtKeepAlive: {
17
+ __isKeepAlive: true;
18
+ new (): {
19
+ $props: VNodeProps & TtKeepAliveProps;
20
+ $slots: {
21
+ default: () => VNode[];
22
+ };
23
+ $exposed: TtKeepAliveExposed;
24
+ };
25
+ };
26
+ export {};
@@ -0,0 +1,139 @@
1
+ import { isArray as z, isString as L, invokeArrayFns as I } from "../../node_modules/.pnpm/@vue_shared@3.5.34/node_modules/@vue/shared/dist/shared.esm-bundler.js";
2
+ import { getCurrentInstance as P, watch as k, onMounted as W, onUpdated as j, onBeforeUnmount as G, isVNode as J, cloneVNode as O, setTransitionHooks as Q } from "vue";
3
+ import { isAsyncWrapper as X } from "./core/apiAsyncComponent.js";
4
+ import { getComponentName as w } from "./core/component.js";
5
+ import { MoveType as H, queuePostRenderEffect as v } from "./core/renderer.js";
6
+ import { isSuspense as Y } from "./core/Suspense.js";
7
+ import { invokeVNodeHook as M } from "./core/vnode.js";
8
+ const Z = {
9
+ name: "TtKeepAlive",
10
+ // Marker for special handling inside the renderer. We are not using a ===
11
+ // check directly on KeepAlive in the renderer, because importing it directly
12
+ // would prevent it from being tree-shaken.
13
+ __isKeepAlive: !0,
14
+ props: {
15
+ include: [String, RegExp, Array],
16
+ exclude: [String, RegExp, Array],
17
+ max: [String, Number],
18
+ includeKey: [String, RegExp, Array],
19
+ excludeKey: [String, RegExp, Array]
20
+ },
21
+ setup(o, { slots: r, expose: y }) {
22
+ const d = P(), E = d.ctx, a = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Set();
23
+ let u = null;
24
+ const f = d.suspense, {
25
+ renderer: {
26
+ p: U,
27
+ m: N,
28
+ um: B,
29
+ o: { createElement: D }
30
+ }
31
+ } = E, q = D("div");
32
+ E.activate = (e, n, t, i, c) => {
33
+ const s = e.component;
34
+ N(e, n, t, H.ENTER, f), U(
35
+ s.vnode,
36
+ e,
37
+ n,
38
+ t,
39
+ s,
40
+ f,
41
+ i,
42
+ e.slotScopeIds,
43
+ c
44
+ ), v(() => {
45
+ s.isDeactivated = !1, s.a && I(s.a);
46
+ const g = e.props && e.props.onVnodeMounted;
47
+ g && M(g, s.parent, e);
48
+ }, f);
49
+ }, E.deactivate = (e) => {
50
+ const n = e.component;
51
+ N(e, q, null, H.LEAVE, f), v(() => {
52
+ n.da && I(n.da);
53
+ const t = e.props && e.props.onVnodeUnmounted;
54
+ t && M(t, n.parent, e), n.isDeactivated = !0;
55
+ }, f);
56
+ };
57
+ function K(e) {
58
+ C(e), B(e, d, f, !0);
59
+ }
60
+ function V(e) {
61
+ a.forEach((n, t) => {
62
+ const i = w(n.type);
63
+ i && (!e || !e(i)) && m(t);
64
+ });
65
+ }
66
+ function R(e) {
67
+ a.forEach((n, t) => {
68
+ (!e || !e(t)) && m(t);
69
+ });
70
+ }
71
+ function m(e) {
72
+ const n = a.get(e);
73
+ !u || n.type !== u.type ? K(n) : u && C(u), a.delete(e), p.delete(e);
74
+ }
75
+ y({ remove: (e) => {
76
+ a.has(e) && m(e);
77
+ }, clear: () => {
78
+ a.forEach((e, n) => m(n));
79
+ } }), k(
80
+ () => [o.include, o.exclude],
81
+ ([e, n]) => {
82
+ e && V((t) => l(e, t)), n && V((t) => !l(n, t));
83
+ },
84
+ // prune post-render after `current` has been updated
85
+ { flush: "post", deep: !0 }
86
+ ), k(
87
+ () => [o.includeKey, o.excludeKey],
88
+ ([e, n]) => {
89
+ e && e.length && R((t) => typeof t == "string" && l(e, t)), n && n.length && R((t) => typeof t != "string" || !l(n, t));
90
+ },
91
+ // prune post-render after `current` has been updated
92
+ { flush: "post", deep: !0 }
93
+ );
94
+ let h = null;
95
+ const T = () => {
96
+ h != null && a.set(h, F(d.subTree));
97
+ };
98
+ return W(T), j(T), G(() => {
99
+ a.forEach((e) => {
100
+ const { subTree: n, suspense: t } = d, i = F(n);
101
+ if (e.type === i.type) {
102
+ C(i);
103
+ const c = i.component.da;
104
+ c && v(c, t);
105
+ return;
106
+ }
107
+ K(e);
108
+ });
109
+ }), () => {
110
+ if (h = null, !r.default) return null;
111
+ const e = r.default(), n = e[0];
112
+ if (e.length > 1)
113
+ return u = null, e;
114
+ if (!J(n) || !(n.shapeFlag & 4) && !(n.shapeFlag & 128))
115
+ return u = null, n;
116
+ let t = F(n);
117
+ const i = t.type, c = w(
118
+ X(t) ? t.type.__asyncResolved || {} : i
119
+ ), s = t.key == null ? i : t.key, { include: g, exclude: _, includeKey: x, excludeKey: A, max: b } = o;
120
+ if (g && (!c || !l(g, c)) || _ && c && l(_, c) || x && x.length && (typeof s != "string" || !l(x, s)) || A && A.length && typeof s == "string" && l(A, s))
121
+ return u = t, n;
122
+ const S = a.get(s);
123
+ return t.el && (t = O(t), n.shapeFlag & 128 && (n.ssContent = t)), h = s, S ? (t.el = S.el, t.component = S.component, t.transition && Q(t, t.transition), t.shapeFlag |= 512, p.delete(s), p.add(s)) : (p.add(s), b && p.size > Number.parseInt(b, 10) && m(p.values().next().value || "")), t.shapeFlag |= 256, u = t, Y(n.type) ? n : t;
124
+ };
125
+ }
126
+ }, ce = Z;
127
+ function l(o, r) {
128
+ return z(o) ? o.some((y) => l(y, r)) : L(o) ? o.split(",").includes(r) : o.test ? o.test(r) : !1;
129
+ }
130
+ function C(o) {
131
+ let r = o.shapeFlag;
132
+ r & 256 && (r -= 256), r & 512 && (r -= 512), o.shapeFlag = r;
133
+ }
134
+ function F(o) {
135
+ return o.shapeFlag & 128 ? o.ssContent : o;
136
+ }
137
+ export {
138
+ ce as TtKeepAlive
139
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./loading.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5d760747"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7e6228e4"]]);
5
5
  export {
6
- a as default
6
+ r as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as s, computed as r, createBlock as c, openBlock as o, Transition as d, withCtx as f, createElementBlock as n, createCommentVNode as a, normalizeStyle as u, normalizeClass as g, createElementVNode as m, createVNode as p, unref as y, toDisplayString as h } from "vue";
2
- import { TtIcon as x } from "../../tt-icon/index.js";
3
- const v = { class: "tt-loading__spinner" }, _ = {
1
+ import { defineComponent as i, computed as s, createBlock as c, openBlock as n, Transition as r, withCtx as d, createElementBlock as o, createCommentVNode as a, normalizeStyle as f, normalizeClass as u, createElementVNode as g, createVNode as m, unref as y, toDisplayString as x } from "vue";
2
+ import { TtIcon as h } from "../../tt-icon/index.js";
3
+ const p = { class: "tt-loading__spinner" }, v = {
4
4
  key: 0,
5
5
  class: "tt-loading__text"
6
6
  }, k = `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
@@ -20,7 +20,7 @@ const v = { class: "tt-loading__spinner" }, _ = {
20
20
  <circle class="dot" cx="20" cy="32" r="4"/>
21
21
  <circle class="dot" cx="8" cy="20" r="4"/>
22
22
  </g>
23
- </svg>`, z = /* @__PURE__ */ s({
23
+ </svg>`, B = /* @__PURE__ */ i({
24
24
  name: "TtLoading",
25
25
  inheritAttrs: !1,
26
26
  __name: "loading",
@@ -35,35 +35,35 @@ const v = { class: "tt-loading__spinner" }, _ = {
35
35
  textColor: { default: "#606266" },
36
36
  spinnerColor: { default: "#409eff" }
37
37
  },
38
- setup(l) {
39
- const t = l, i = r(() => ({
40
- backgroundColor: t.background,
41
- zIndex: t.fullscreen ? "9999999" : t.zIndex,
42
- "--tt-loading-spinner-color": t.spinnerColor,
43
- "--tt-loading-text-color": t.textColor
38
+ setup(t) {
39
+ const e = t, l = s(() => ({
40
+ backgroundColor: e.background,
41
+ zIndex: e.fullscreen ? "9999999" : e.zIndex,
42
+ "--tt-loading-spinner-color": e.spinnerColor,
43
+ "--tt-loading-text-color": e.textColor
44
44
  }));
45
- return (e, C) => (o(), c(d, {
45
+ return (C, b) => (n(), c(r, {
46
46
  name: "tt-loading-fade",
47
47
  appear: ""
48
48
  }, {
49
- default: f(() => [
50
- e.visible ? (o(), n("div", {
49
+ default: d(() => [
50
+ t.visible ? (n(), o("div", {
51
51
  key: 0,
52
- class: g(["tt-loading", {
53
- "tt-loading--fullscreen": e.fullscreen,
54
- "tt-loading--absolute": !e.fullscreen
52
+ class: u(["tt-loading", {
53
+ "tt-loading--fullscreen": t.fullscreen,
54
+ "tt-loading--absolute": !t.fullscreen
55
55
  }]),
56
- style: u(i.value)
56
+ style: f(l.value)
57
57
  }, [
58
- m("div", v, [
59
- p(y(x), {
58
+ g("div", p, [
59
+ m(y(h), {
60
60
  "is-custom-svg": "",
61
- icon: e.svg || k,
61
+ icon: t.svg || k,
62
62
  size: 52,
63
63
  class: "tt-loading__circular"
64
64
  }, null, 8, ["icon"])
65
65
  ]),
66
- e.text ? (o(), n("p", _, h(e.text), 1)) : a("", !0)
66
+ t.text ? (n(), o("p", v, x(t.text), 1)) : a("", !0)
67
67
  ], 6)) : a("", !0)
68
68
  ]),
69
69
  _: 1
@@ -71,5 +71,5 @@ const v = { class: "tt-loading__spinner" }, _ = {
71
71
  }
72
72
  });
73
73
  export {
74
- z as default
74
+ B as default
75
75
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, createBlock as m, openBlock as s, unref as t, mergeProps as n } from "vue";
2
- import "../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
2
+ import "../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
3
3
  import { useDesign as a } from "../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
5
5
  import "element-plus";