dlzn-ui 1.78.0 → 1.80.0

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 (87) hide show
  1. package/assets/button-DssPYT-h.css +1 -0
  2. package/assets/menu-DaBAai1-.css +1 -0
  3. package/chunks/{MenuNode-Bsx5EX6G.mjs → MenuNode-B0BuD3Z-.mjs} +1 -1
  4. package/chunks/{Provider-DsjJAAKQ.mjs → Provider-D_6GI2ye.mjs} +16 -19
  5. package/chunks/{button-Ne9zVtg8.mjs → button-BgwgIEU8.mjs} +4 -4
  6. package/chunks/{checkbox-group-8yzWfZL_.mjs → checkbox-group-C5yBbQ8-.mjs} +3 -3
  7. package/chunks/{form-BBUFXU0H.mjs → form-BXPhm59W.mjs} +19 -19
  8. package/{hooks/useContextMenu/menu/Index.mjs → chunks/menu-DTGuCZKc.mjs} +8 -8
  9. package/chunks/{pagination-Ca_TCfrh.mjs → pagination-BtXI5_uR.mjs} +1 -1
  10. package/chunks/{radio-group-Bmx_ESrX.mjs → radio-group-a_ljkAoW.mjs} +3 -3
  11. package/chunks/{select-6VzBY_vu.mjs → select-rZD93RO4.mjs} +3 -3
  12. package/chunks/{tree-DDa08q83.mjs → tree-0bIqDJPq.mjs} +1 -1
  13. package/chunks/{tree-CnkGS9CU.mjs → tree-Y7LMh-WX.mjs} +1 -1
  14. package/chunks/{tree-select-ofeRjUNh.mjs → tree-select-BByQlCU-.mjs} +2 -2
  15. package/chunks/{upload-BRtusVF3.mjs → upload-B89N6BVO.mjs} +2 -2
  16. package/chunks/useAppContext-D47amIp5.mjs +32 -0
  17. package/chunks/{user-DpkUzWVu.mjs → user-DDXohI-o.mjs} +54 -54
  18. package/components/button/index.mjs +1 -1
  19. package/components/button/src/button.mjs +1 -1
  20. package/components/checkbox-group/index.mjs +1 -1
  21. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  22. package/components/form/index.mjs +1 -1
  23. package/components/form/src/form.mjs +1 -1
  24. package/components/index.mjs +10 -10
  25. package/components/pagination/index.mjs +1 -1
  26. package/components/pagination/src/pagination.mjs +1 -1
  27. package/components/provider/index.mjs +1 -1
  28. package/components/provider/src/Provider.mjs +1 -1
  29. package/components/radio-group/index.mjs +1 -1
  30. package/components/radio-group/src/radio-group.mjs +1 -1
  31. package/components/select/index.mjs +1 -1
  32. package/components/select/src/select.mjs +1 -1
  33. package/components/tree/index.mjs +2 -2
  34. package/components/tree/src/tree.mjs +1 -1
  35. package/components/tree-select/index.mjs +1 -1
  36. package/components/tree-select/src/tree-select.mjs +1 -1
  37. package/components/upload/index.mjs +1 -1
  38. package/components/upload/src/upload.mjs +1 -1
  39. package/hooks/{useAnimateAuto.mjs → useAnimateAuto/index.mjs} +1 -1
  40. package/hooks/useAppContext/index.mjs +2 -0
  41. package/hooks/{useCommon.mjs → useCommon/index.mjs} +1 -1
  42. package/hooks/useContextMenu/index.d.ts +1 -1
  43. package/hooks/useContextMenu/menu/index.d.ts +2 -0
  44. package/hooks/useContextMenu/menu/index.mjs +2 -0
  45. package/hooks/useContextMenu/menu/src/MenuNode.mjs +2 -0
  46. package/hooks/useContextMenu/menu/{MenuNode.vue.d.ts → src/MenuNode.vue.d.ts} +1 -1
  47. package/hooks/useContextMenu/menu/src/menu.mjs +2 -0
  48. package/hooks/{useDic.mjs → useDic/index.mjs} +1 -1
  49. package/hooks/{useList.mjs → useList/index.mjs} +2 -2
  50. package/hooks/{useSysUser.mjs → useSysUser/index.mjs} +1 -1
  51. package/index.mjs +10 -10
  52. package/package.json +5 -17
  53. package/plugins/alova/index.mjs +1 -1
  54. package/plugins/autoImport/{$confirm.d.ts → $confirm/index.d.ts} +1 -1
  55. package/plugins/autoImport/{$confirm.mjs → $confirm/index.mjs} +2 -2
  56. package/plugins/autoImport/{$dialog.mjs → $dialog/index.mjs} +3 -3
  57. package/plugins/autoImport/{$drawer.mjs → $drawer/index.mjs} +3 -3
  58. package/plugins/autoImport/{$loading.d.ts → $loading/index.d.ts} +1 -1
  59. package/plugins/autoImport/{$loading.mjs → $loading/index.mjs} +2 -2
  60. package/plugins/autoImport/{$msg.mjs → $msg/index.mjs} +2 -2
  61. package/plugins/autoImport/$notify/index.mjs +2 -0
  62. package/plugins/others/directive.mjs +1 -1
  63. package/store/modules/common.mjs +1 -1
  64. package/store/modules/login.mjs +1 -1
  65. package/store/modules/router.mjs +1 -1
  66. package/store/modules/user.mjs +1 -1
  67. package/assets/Index-BSZpeLbt.css +0 -1
  68. package/assets/button-CawLqS02.css +0 -1
  69. package/hooks/useAppContext.mjs +0 -9
  70. package/hooks/useContextMenu/menu/MenuNode.mjs +0 -2
  71. package/plugins/autoImport/$notify.mjs +0 -24
  72. /package/hooks/{useAnimateAuto.d.ts → useAnimateAuto/index.d.ts} +0 -0
  73. /package/hooks/{useAppContext.d.ts → useAppContext/index.d.ts} +0 -0
  74. /package/hooks/{useCommon.d.ts → useCommon/index.d.ts} +0 -0
  75. /package/hooks/useContextMenu/menu/{types.d.ts → src/menu.d.ts} +0 -0
  76. /package/hooks/useContextMenu/menu/{Index.vue.d.ts → src/menu.vue.d.ts} +0 -0
  77. /package/hooks/{useDic.d.ts → useDic/index.d.ts} +0 -0
  78. /package/hooks/{useList.d.ts → useList/index.d.ts} +0 -0
  79. /package/hooks/{useMQ.d.ts → useMQ/index.d.ts} +0 -0
  80. /package/hooks/{useMQ.mjs → useMQ/index.mjs} +0 -0
  81. /package/hooks/{useSysUser.d.ts → useSysUser/index.d.ts} +0 -0
  82. /package/plugins/autoImport/{$dialog.d.ts → $dialog/index.d.ts} +0 -0
  83. /package/plugins/autoImport/{$drawer.d.ts → $drawer/index.d.ts} +0 -0
  84. /package/plugins/autoImport/{$msg.d.ts → $msg/index.d.ts} +0 -0
  85. /package/plugins/autoImport/{$notify.d.ts → $notify/index.d.ts} +0 -0
  86. /package/plugins/autoImport/{dayjs.d.ts → dayjs/index.d.ts} +0 -0
  87. /package/plugins/autoImport/{dayjs.mjs → dayjs/index.mjs} +0 -0
@@ -0,0 +1 @@
1
+ [data-v-3c1aac41] .iconify{flex-shrink:0;font-size:var(--td-font-size-body-large)!important}[data-v-3c1aac41] .iconify+.t-button__text:not(:empty){margin-left:8px}.t-size-s[data-v-3c1aac41] .iconify{font-size:var(--td-font-size-body-medium)!important}.t-size-l[data-v-3c1aac41] .iconify{font-size:var(--td-font-size-title-large)!important}.t-button+.t-button[data-v-3c1aac41]{margin-left:var(--td-comp-margin-m)}.t-button+.t-button.t-size-s[data-v-3c1aac41]{margin-left:var(--td-comp-margin-xs)}
@@ -0,0 +1 @@
1
+ .custom_context_menu[data-v-1f602ec6]{--td-bg-color-container-hover:var(--td-bg-color-secondarycontainer-hover);border:.5px solid var(--td-component-border);border-radius:var(--td-radius-medium);min-width:100px;box-shadow:var(--td-shadow-2)}.custom_context_menu[data-v-1f602ec6] .t-menu--scroll{padding:8px 0!important}.custom_context_menu[data-v-1f602ec6] .t-menu__item{height:var(--td-comp-size-s);line-height:var(--td-comp-size-s);margin-top:0!important;padding:0 12px!important}.custom_context_menu[data-v-1f602ec6] .t-submenu{margin-top:0!important}.custom_context_menu[data-v-1f602ec6] .t-fake-arrow{transform:rotate(270deg)!important}.custom_context_menu[data-v-1f602ec6] .t-fake-arrow path{d:path("M3.75 5.7998L7.99274 10.0425L12.2361 5.79921")!important}
@@ -1,7 +1,7 @@
1
1
  import { Fragment as e, createBlock as t, createElementBlock as n, createSlots as r, createVNode as i, defineComponent as a, mergeProps as o, openBlock as s, renderList as c, resolveComponent as l, unref as u, withCtx as d } from "vue";
2
2
  import { Icon as f, MenuItem as p, Submenu as m } from "tdesign-vue-next";
3
3
  import '../assets/MenuNode-BWhgOPrH.css';//#endregion
4
- //#region ../../packages/dlzn-ui/hooks/useContextMenu/menu/MenuNode.vue
4
+ //#region ../../packages/dlzn-ui/hooks/useContextMenu/menu/src/MenuNode.vue
5
5
  var h = /* @__PURE__ */ a({
6
6
  name: "MenuNode",
7
7
  __name: "MenuNode",
@@ -1,5 +1,5 @@
1
- import { createBlock as e, createVNode as t, defineComponent as n, openBlock as r, renderSlot as i, resolveComponent as a, unref as o, withCtx as s } from "vue";
2
- import { Button as c, Icon as l } from "tdesign-vue-next";
1
+ import { createBlock as e, createVNode as t, defineComponent as n, openBlock as r, renderSlot as i, unref as a, withCtx as o } from "vue";
2
+ import { Button as s, ConfigProvider as c, Icon as l } from "tdesign-vue-next";
3
3
  import { ElConfigProvider as u } from "element-plus";
4
4
  import d from "element-plus/es/locale/lang/zh-cn";
5
5
  //#endregion
@@ -9,35 +9,32 @@ var f = /* @__PURE__ */ n({
9
9
  __name: "Provider",
10
10
  setup(n) {
11
11
  let f = { table: {
12
- expandIcon: (e) => e(c, {
12
+ expandIcon: (e) => e(s, {
13
13
  shape: "circle",
14
14
  variant: "text"
15
15
  }, { icon: () => e(l, { icon: "ph:caret-right-bold" }) }),
16
- sortIcon: (e) => e(c, {
16
+ sortIcon: (e) => e(s, {
17
17
  shape: "circle",
18
18
  size: "small",
19
19
  variant: "text"
20
20
  }, { icon: () => e(l, { icon: "heroicons-solid:sort-descending" }) }),
21
- treeExpandAndFoldIcon: (e, { type: t }) => e(c, {
21
+ treeExpandAndFoldIcon: (e, { type: t }) => e(s, {
22
22
  shape: "circle",
23
23
  variant: "text"
24
24
  }, { icon: () => e(l, { icon: `ph:caret-${t === "expand" ? "right" : "down"}-bold` }) })
25
25
  } };
26
- return (n, c) => {
27
- let l = a("TConfigProvider");
28
- return r(), e(o(u), {
29
- "empty-values": [""],
30
- locale: o(d),
31
- "value-on-clear": "",
32
- "z-index": 5500
33
- }, {
34
- default: s(() => [t(l, { "global-config": f }, {
35
- default: s(() => [i(n.$slots, "default")]),
36
- _: 3
37
- })]),
26
+ return (n, s) => (r(), e(a(u), {
27
+ "empty-values": [""],
28
+ locale: a(d),
29
+ "value-on-clear": "",
30
+ "z-index": 5500
31
+ }, {
32
+ default: o(() => [t(a(c), { "global-config": f }, {
33
+ default: o(() => [i(n.$slots, "default")]),
38
34
  _: 3
39
- }, 8, ["locale"]);
40
- };
35
+ })]),
36
+ _: 3
37
+ }, 8, ["locale"]));
41
38
  }
42
39
  });
43
40
  //#endregion
@@ -1,12 +1,12 @@
1
- import e from "../plugins/autoImport/$loading.mjs";
2
- import { n as t } from "./user-DpkUzWVu.mjs";
1
+ import e from "../plugins/autoImport/$loading/index.mjs";
2
+ import { n as t } from "./user-DDXohI-o.mjs";
3
3
  import { t as n } from "./icon-COjp1yrx.mjs";
4
4
  import { t as r } from "./popconfirm-DxWa7vWm.mjs";
5
5
  import { t as i } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
6
6
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createSlots as u, createVNode as d, defineComponent as f, getCurrentInstance as p, guardReactiveProps as m, h, mergeDefaults as g, mergeProps as _, normalizeProps as v, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as C, unref as w, useAttrs as T, watch as E, withCtx as D } from "vue";
7
7
  import { useFocus as O } from "@vueuse/core";
8
8
  import { Button as k } from "tdesign-vue-next";
9
- import '../assets/button-CawLqS02.css';//#region ../../packages/dlzn-ui/components/button/src/button.ts
9
+ import '../assets/button-DssPYT-h.css';//#region ../../packages/dlzn-ui/components/button/src/button.ts
10
10
  var A = {
11
11
  autoIcon: !0,
12
12
  autoLoading: !0,
@@ -197,6 +197,6 @@ var A = {
197
197
  fn: D((n) => [S(e.$slots, t, v(m(n)), void 0, !0)])
198
198
  }))]), 1536))], 64)) : c("v-if", !0);
199
199
  }
200
- }), [["__scopeId", "data-v-5556b131"]]);
200
+ }), [["__scopeId", "data-v-3c1aac41"]]);
201
201
  //#endregion
202
202
  export { A as n, j as t };
@@ -1,7 +1,7 @@
1
- import e from "../plugins/autoImport/$notify.mjs";
2
- import { m as t } from "./user-DpkUzWVu.mjs";
1
+ import { n as e } from "./useAppContext-D47amIp5.mjs";
2
+ import { m as t } from "./user-DDXohI-o.mjs";
3
3
  import { isFalsy as n, isValidNumberString as r } from "../utils/boolean.mjs";
4
- import { useList as i } from "../hooks/useList.mjs";
4
+ import { useList as i } from "../hooks/useList/index.mjs";
5
5
  import { computed as a, createBlock as o, defineComponent as s, getCurrentInstance as c, h as l, mergeProps as u, openBlock as d, resolveDynamicComponent as f, unref as p } from "vue";
6
6
  import { CheckboxGroup as m } from "tdesign-vue-next";
7
7
  //#endregion
@@ -1,21 +1,21 @@
1
- import e from "../plugins/autoImport/$msg.mjs";
2
- import t from "../plugins/autoImport/$notify.mjs";
1
+ import { n as e } from "./useAppContext-D47amIp5.mjs";
2
+ import t from "../plugins/autoImport/$msg/index.mjs";
3
3
  import { isFalsy as n } from "../utils/boolean.mjs";
4
4
  import { t as r } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
5
5
  import { t as i } from "./checkbox-CLlUEbkk.mjs";
6
- import { t as a } from "./checkbox-group-8yzWfZL_.mjs";
6
+ import { t as a } from "./checkbox-group-C5yBbQ8-.mjs";
7
7
  import { t as o } from "./input-number-Bt1mbd1D.mjs";
8
8
  import { t as s } from "./input-B8jjJrK5.mjs";
9
- import { t as c } from "./radio-group-Bmx_ESrX.mjs";
9
+ import { t as c } from "./radio-group-a_ljkAoW.mjs";
10
10
  import { t as l } from "./range-input-8ddDrOBB.mjs";
11
- import { t as u } from "./select-6VzBY_vu.mjs";
11
+ import { t as u } from "./select-rZD93RO4.mjs";
12
12
  import { t as d } from "./slider-C63Gzbld.mjs";
13
13
  import { t as f } from "./switch-CqV3-avv.mjs";
14
14
  import { t as p } from "./tag-input-iNXrRXk2.mjs";
15
15
  import { t as m } from "./textarea-xkwOhNut.mjs";
16
- import { t as ee } from "./tree-select-ofeRjUNh.mjs";
17
- import { t as te } from "./tree-CnkGS9CU.mjs";
18
- import { t as ne } from "./upload-BRtusVF3.mjs";
16
+ import { t as ee } from "./tree-select-BByQlCU-.mjs";
17
+ import { t as te } from "./tree-Y7LMh-WX.mjs";
18
+ import { t as ne } from "./upload-B89N6BVO.mjs";
19
19
  import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, defineAsyncComponent as b, defineComponent as x, getCurrentInstance as S, mergeDefaults as C, mergeProps as w, nextTick as T, onMounted as re, openBlock as E, provide as D, reactive as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, shallowRef as N, unref as P, watch as F, withCtx as I } from "vue";
20
20
  import { useMutationObserver as L, useResizeObserver as R } from "@vueuse/core";
21
21
  import { Form as z, FormItem as B } from "tdesign-vue-next";
@@ -108,7 +108,7 @@ var H = {
108
108
  deep: 2,
109
109
  immediate: !0
110
110
  }), F(() => C.data, () => {
111
- t.error("TForm: data is changed");
111
+ e.error("TForm: data is changed");
112
112
  });
113
113
  let q = /* @__PURE__ */ new Map(), J = {
114
114
  TCheckbox: i,
@@ -181,18 +181,18 @@ var H = {
181
181
  t.show === !1 && delete e[t.model];
182
182
  }), e;
183
183
  };
184
- function se(t) {
185
- if (t !== null) {
186
- let r = t;
184
+ function se(e) {
185
+ if (e !== null) {
186
+ let r = e;
187
187
  if (!r.validate._alreadyReplace) {
188
- let t = r.validate;
188
+ let e = r.validate;
189
189
  r.validate = (...n) => new Promise((r, i) => {
190
- t(...n).then((t) => {
191
- t === !0 ? r(Z()) : (C.msgErrorWhenValidate && Object.keys(t).forEach((n) => {
192
- t[n].forEach((t) => {
193
- t.result === !1 && e.error(t.message);
190
+ e(...n).then((e) => {
191
+ e === !0 ? r(Z()) : (C.msgErrorWhenValidate && Object.keys(e).forEach((n) => {
192
+ e[n].forEach((e) => {
193
+ e.result === !1 && t.error(e.message);
194
194
  });
195
- }), i(t));
195
+ }), i(e));
196
196
  });
197
197
  }), r.validate._alreadyReplace = !0;
198
198
  }
@@ -227,7 +227,7 @@ var H = {
227
227
  }), Object.assign(C.data, o);
228
228
  };
229
229
  }
230
- let r = t ?? {};
230
+ let r = e ?? {};
231
231
  W.value = r, U.exposed = r;
232
232
  }
233
233
  let Q = N();
@@ -1,12 +1,12 @@
1
- import { t as e } from "../../../chunks/plugin-vue_export-helper-B3ysoDQm.mjs";
2
- import t from "../index.mjs";
3
- import { t as n } from "../../../chunks/MenuNode-Bsx5EX6G.mjs";
1
+ import { t as e } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
2
+ import t from "../hooks/useContextMenu/index.mjs";
3
+ import { t as n } from "./MenuNode-B0BuD3Z-.mjs";
4
4
  import { createBlock as r, createCommentVNode as i, createVNode as a, defineComponent as o, normalizeStyle as s, openBlock as c, unref as l, withCtx as u } from "vue";
5
5
  import { Menu as d } from "tdesign-vue-next";
6
- import '../../../assets/Index-BSZpeLbt.css';//#endregion
7
- //#region ../../packages/dlzn-ui/hooks/useContextMenu/menu/Index.vue
6
+ import '../assets/menu-DaBAai1-.css';//#endregion
7
+ //#region ../../packages/dlzn-ui/hooks/useContextMenu/menu/src/menu.vue
8
8
  var f = /*#__PURE__*/ e(/* @__PURE__ */ o({
9
- __name: "Index",
9
+ __name: "menu",
10
10
  setup(e) {
11
11
  let { items: o, showMenu: f, x: p, y: m } = t();
12
12
  return (e, t) => l(f) ? (c(), r(l(d), {
@@ -23,6 +23,6 @@ var f = /*#__PURE__*/ e(/* @__PURE__ */ o({
23
23
  _: 1
24
24
  }, 8, ["style"])) : i("v-if", !0);
25
25
  }
26
- }), [["__scopeId", "data-v-ed6ea484"]]);
26
+ }), [["__scopeId", "data-v-1f602ec6"]]);
27
27
  //#endregion
28
- export { f as default };
28
+ export { f as t };
@@ -1,4 +1,4 @@
1
- import e from "../plugins/autoImport/$confirm.mjs";
1
+ import e from "../plugins/autoImport/$confirm/index.mjs";
2
2
  import { t } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
3
3
  import { computed as n, createBlock as r, defineComponent as i, getCurrentInstance as a, h as o, mergeProps as s, openBlock as c, resolveDynamicComponent as l, unref as u } from "vue";
4
4
  import { Pagination as d } from "tdesign-vue-next";
@@ -1,8 +1,8 @@
1
- import e from "../plugins/autoImport/$notify.mjs";
2
- import { m as t } from "./user-DpkUzWVu.mjs";
1
+ import { n as e } from "./useAppContext-D47amIp5.mjs";
2
+ import { m as t } from "./user-DDXohI-o.mjs";
3
3
  import { isFalsy as n, isValidNumberString as r } from "../utils/boolean.mjs";
4
4
  import { stringDisplay as i } from "../utils/string.mjs";
5
- import { useList as a } from "../hooks/useList.mjs";
5
+ import { useList as a } from "../hooks/useList/index.mjs";
6
6
  import { computed as o, createBlock as s, defineComponent as c, getCurrentInstance as l, h as u, mergeProps as d, openBlock as f, resolveDynamicComponent as p, unref as m } from "vue";
7
7
  import { RadioGroup as h } from "tdesign-vue-next";
8
8
  //#endregion
@@ -1,8 +1,8 @@
1
- import e from "../plugins/autoImport/$notify.mjs";
2
- import { m as t } from "./user-DpkUzWVu.mjs";
1
+ import { n as e } from "./useAppContext-D47amIp5.mjs";
2
+ import { m as t } from "./user-DDXohI-o.mjs";
3
3
  import { isFalsy as n, isValidNumberString as r } from "../utils/boolean.mjs";
4
4
  import { stringDisplay as i } from "../utils/string.mjs";
5
- import { useList as a } from "../hooks/useList.mjs";
5
+ import { useList as a } from "../hooks/useList/index.mjs";
6
6
  import { computed as o, createBlock as s, defineComponent as c, getCurrentInstance as l, h as u, mergeDefaults as d, mergeProps as f, onMounted as p, openBlock as m, ref as h, resolveDynamicComponent as g, unref as _ } from "vue";
7
7
  import { useResizeObserver as v } from "@vueuse/core";
8
8
  import { InputAdornment as y, Select as b } from "tdesign-vue-next";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./button-Ne9zVtg8.mjs";
1
+ import { t as e } from "./button-BgwgIEU8.mjs";
2
2
  import { t } from "./icon-COjp1yrx.mjs";
3
3
  import { h as n } from "vue";
4
4
  //#region ../../packages/dlzn-ui/components/tree/src/tree.ts
@@ -1,4 +1,4 @@
1
- import { t as e } from "./tree-DDa08q83.mjs";
1
+ import { t as e } from "./tree-0bIqDJPq.mjs";
2
2
  import { computed as t, createBlock as n, defineComponent as r, getCurrentInstance as i, h as a, mergeDefaults as o, mergeProps as s, openBlock as c, resolveDynamicComponent as l, unref as u, useSlots as d } from "vue";
3
3
  import { Tree as f } from "tdesign-vue-next";
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
- import { useList as e } from "../hooks/useList.mjs";
2
- import { t } from "./tree-DDa08q83.mjs";
1
+ import { useList as e } from "../hooks/useList/index.mjs";
2
+ import { t } from "./tree-0bIqDJPq.mjs";
3
3
  import { computed as n, createBlock as r, defineComponent as i, getCurrentInstance as a, h as o, mergeProps as s, onMounted as c, openBlock as l, ref as u, resolveDynamicComponent as d, unref as f } from "vue";
4
4
  import { useResizeObserver as p } from "@vueuse/core";
5
5
  import { TreeSelect as m } from "tdesign-vue-next";
@@ -1,5 +1,5 @@
1
- import { t as e } from "./button-Ne9zVtg8.mjs";
2
- import { r as t } from "./user-DpkUzWVu.mjs";
1
+ import { t as e } from "./button-BgwgIEU8.mjs";
2
+ import { r as t } from "./user-DDXohI-o.mjs";
3
3
  import { saveAs as n } from "../utils/tool.mjs";
4
4
  import { t as r } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
5
5
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, guardReactiveProps as m, h, mergeProps as g, normalizeProps as _, openBlock as v, renderList as y, renderSlot as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, withCtx as w, withModifiers as T } from "vue";
@@ -0,0 +1,32 @@
1
+ import { getCurrentInstance as e } from "vue";
2
+ import { NotifyPlugin as t } from "tdesign-vue-next";
3
+ //#region ../../packages/dlzn-ui/plugins/autoImport/$notify/index.ts
4
+ var n = /* @__PURE__ */ function(e) {
5
+ return e.error = "error", e.info = "info", e.success = "success", e.warning = "warning", e;
6
+ }(n || {});
7
+ async function r(e, n, r) {
8
+ let i = { ...r ?? {} };
9
+ return t[e]({
10
+ closeBtn: !0,
11
+ content: n,
12
+ duration: 15e3,
13
+ title: "提示",
14
+ ...i
15
+ }, o());
16
+ }
17
+ var i = async function(...e) {
18
+ return r("success", ...e);
19
+ };
20
+ Object.values(n).forEach((e) => {
21
+ i[e] = async (...t) => r(e, ...t);
22
+ }), i.closeAll = () => t.closeAll(), i.close = (...e) => t.close(...e);
23
+ //#endregion
24
+ //#region ../../packages/dlzn-ui/hooks/useAppContext/index.ts
25
+ var a, o = () => {
26
+ if (a !== void 0) return a;
27
+ let t = e();
28
+ if (t !== null) return a = t.appContext, a;
29
+ i.error("useAppContext must be used within a setup function");
30
+ };
31
+ //#endregion
32
+ export { i as n, o as t };
@@ -1,7 +1,7 @@
1
- import e from "../plugins/autoImport/$loading.mjs";
2
- import t from "../plugins/autoImport/$confirm.mjs";
3
- import n from "../plugins/autoImport/$msg.mjs";
4
- import r from "../plugins/autoImport/$notify.mjs";
1
+ import { n as e } from "./useAppContext-D47amIp5.mjs";
2
+ import t from "../plugins/autoImport/$loading/index.mjs";
3
+ import n from "../plugins/autoImport/$confirm/index.mjs";
4
+ import r from "../plugins/autoImport/$msg/index.mjs";
5
5
  import i, { getTopRoute as a } from "../router/index.mjs";
6
6
  import { isFalsy as o } from "../utils/boolean.mjs";
7
7
  import { stringDisplay as s } from "../utils/string.mjs";
@@ -108,7 +108,7 @@ function A(e) {
108
108
  });
109
109
  }
110
110
  //#endregion
111
- //#region ../../packages/dlzn-ui/hooks/useSysUser.ts
111
+ //#region ../../packages/dlzn-ui/hooks/useSysUser/index.ts
112
112
  var j = /* @__PURE__ */ new Map();
113
113
  function oe(e) {
114
114
  let t = X.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
@@ -297,10 +297,10 @@ function Y(e, t = !0) {
297
297
  }
298
298
  var X = ee({
299
299
  baseURL: VITE_BASE_URL,
300
- beforeRequest(t) {
301
- t.config.credentials = t.config.credentials ?? "omit";
300
+ beforeRequest(e) {
301
+ e.config.credentials = e.config.credentials ?? "omit";
302
302
  let [n, ...r] = VITE_API_PREFIX_ARRAY;
303
- !t.url.startsWith("http") && !r.some((e) => b.join("/", t.url).startsWith(b.join("/", e, "/"))) && (t.url = b.join(n, t.url)), t.meta = {
303
+ !e.url.startsWith("http") && !r.some((t) => b.join("/", e.url).startsWith(b.join("/", t, "/"))) && (e.url = b.join(n, e.url)), e.meta = {
304
304
  use600Alert: !0,
305
305
  useDataResult: !0,
306
306
  useDownload: !1,
@@ -315,43 +315,43 @@ var X = ee({
315
315
  useSuccessMsg: !1,
316
316
  useSysFailMsg: !0,
317
317
  useToken: !0,
318
- ...t.meta ?? {}
318
+ ...e.meta ?? {}
319
319
  };
320
- let i = G(), { useEmptyData: a, useEmptyParams: s, useFormData: c, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = t.meta;
321
- l || S().requestActive(), f && (i.token ? t.config.headers.Authorization = i.token : t.abort()), u !== !1 && e.show(u === !0 ? void 0 : u);
322
- let p = t.config.params;
323
- if (typeof p != "string" && (t.config.params = Y(p, s)), a && _(t.data)) {
324
- let e = {}, n = t.data;
325
- Object.keys(n).forEach((t) => {
326
- o(n[t]) || (e[t] = n[t]);
327
- }), t.data = e;
320
+ let i = G(), { useEmptyData: a, useEmptyParams: s, useFormData: c, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
321
+ l || S().requestActive(), f && (i.token ? e.config.headers.Authorization = i.token : e.abort()), u !== !1 && t.show(u === !0 ? void 0 : u);
322
+ let p = e.config.params;
323
+ if (typeof p != "string" && (e.config.params = Y(p, s)), a && _(e.data)) {
324
+ let t = {}, n = e.data;
325
+ Object.keys(n).forEach((e) => {
326
+ o(n[e]) || (t[e] = n[e]);
327
+ }), e.data = t;
328
328
  }
329
329
  if (c) {
330
- let e = new FormData();
331
- Object.keys(t.data).forEach((n) => {
332
- e.append(n, t.data[n]);
333
- }), t.data = e;
330
+ let t = new FormData();
331
+ Object.keys(e.data).forEach((n) => {
332
+ t.append(n, e.data[n]);
333
+ }), e.data = t;
334
334
  }
335
- t.config.timeout === K && (c || t.data instanceof FormData || d) && (t.config.timeout = 0);
335
+ e.config.timeout === K && (c || e.data instanceof FormData || d) && (e.config.timeout = 0);
336
336
  },
337
337
  cacheFor: null,
338
338
  requestAdapter: te(),
339
339
  responded: {
340
- onComplete: (t) => {
341
- t.meta.useLoading !== !1 && e.hide();
340
+ onComplete: (e) => {
341
+ e.meta.useLoading !== !1 && t.hide();
342
342
  },
343
343
  onError: async (e, t) => {
344
- let { useSysFailMsg: r } = t.meta;
344
+ let { useSysFailMsg: n } = t.meta;
345
345
  if (e instanceof Error) {
346
346
  let { message: t } = e;
347
347
  if (t.toLowerCase().includes("abort")) return Promise.reject(e);
348
- if (t.toLowerCase().includes("timeout")) return r && n.error("请求超时"), Promise.reject(e);
348
+ if (t.toLowerCase().includes("timeout")) return n && r.error("请求超时"), Promise.reject(e);
349
349
  }
350
- return r && n.error(q), Promise.reject(e);
350
+ return n && r.error(q), Promise.reject(e);
351
351
  },
352
- onSuccess: async (e, a) => {
353
- if (typeof e == "string") return e;
354
- let { useDataResult: o, useDownload: s, useFailMsg: l, useResponseBlob: u, useResponseText: d, useSuccessMsg: f, useSysFailMsg: p, useToken: m } = a.meta, { headers: h, ok: g, status: _ } = e;
352
+ onSuccess: async (t, a) => {
353
+ if (typeof t == "string") return t;
354
+ let { useDataResult: o, useDownload: s, useFailMsg: l, useResponseBlob: u, useResponseText: d, useSuccessMsg: f, useSysFailMsg: p, useToken: m } = a.meta, { headers: h, ok: g, status: _ } = t;
355
355
  if (g === !1) {
356
356
  if (p) {
357
357
  let e = {
@@ -359,56 +359,56 @@ var X = ee({
359
359
  404: "访问资源不存在",
360
360
  500: "服务不可用,请稍后再试或联系管理员!"
361
361
  }[_] ?? q;
362
- n.error(e);
362
+ r.error(e);
363
363
  }
364
- return Promise.reject(e);
364
+ return Promise.reject(t);
365
365
  }
366
366
  if (u && !h.get("content-type")?.includes("application/json")) {
367
- let t;
367
+ let n;
368
368
  try {
369
- t = await e.blob();
370
- } catch (e) {
371
- return r.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
369
+ n = await t.blob();
370
+ } catch (t) {
371
+ return e.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(t);
372
372
  }
373
373
  if (s !== !1) {
374
- if (typeof s == "string") c(t, s);
374
+ if (typeof s == "string") c(n, s);
375
375
  else {
376
- let n = new URLSearchParams((e.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
377
- n ? c(t, n) : r.error("返回的 response header 没有文件名");
376
+ let r = new URLSearchParams((t.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
377
+ r ? c(n, r) : e.error("返回的 response header 没有文件名");
378
378
  }
379
379
  }
380
- return t;
380
+ return n;
381
381
  }
382
382
  if (d && !h.get("content-type")?.includes("application/json")) {
383
- let t;
383
+ let n;
384
384
  try {
385
- t = await e.text();
386
- } catch (e) {
387
- return r.error("返回的 response text() 方法所解析"), Promise.reject(e);
385
+ n = await t.text();
386
+ } catch (t) {
387
+ return e.error("返回的 response text() 方法所解析"), Promise.reject(t);
388
388
  }
389
- return t;
389
+ return n;
390
390
  }
391
391
  let v;
392
392
  try {
393
- v = await e.json();
394
- } catch (e) {
395
- return r.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
393
+ v = await t.json();
394
+ } catch (t) {
395
+ return e.error("返回的 response 不能被json() 方法所解析"), Promise.reject(t);
396
396
  }
397
397
  if (v?.code !== void 0) {
398
- let { code: e, data: r, msg: a } = v;
398
+ let { code: e, data: t, msg: a } = v;
399
399
  if (e >= 400) {
400
400
  if (e === 600) {
401
401
  if (!u) return v;
402
- } else e === 401 && m ? i.push({ name: "Login" }) : l !== !1 && n.error(l === !0 ? a : l);
402
+ } else e === 401 && m ? i.push({ name: "Login" }) : l !== !1 && r.error(l === !0 ? a : l);
403
403
  return Promise.reject(v);
404
404
  }
405
- if (VITE_APP_ID === "1" && r?.taskId !== void 0) {
406
- let e = r;
407
- return t(e.message).then(() => {
405
+ if (VITE_APP_ID === "1" && t?.taskId !== void 0) {
406
+ let e = t;
407
+ return n(e.message).then(() => {
408
408
  i.push({ name: "ExportTask" });
409
409
  }), e;
410
410
  }
411
- return f && n(a), o ? r === void 0 ? v : r : v;
411
+ return f && r(a), o ? t === void 0 ? v : t : v;
412
412
  }
413
413
  return v;
414
414
  }
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/button-Ne9zVtg8.mjs";
1
+ import { n as e, t } from "../../chunks/button-BgwgIEU8.mjs";
2
2
  export { t as TButton, e as buttonPropsInit };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/button-Ne9zVtg8.mjs";
1
+ import { t as e } from "../../../chunks/button-BgwgIEU8.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/checkbox-group-8yzWfZL_.mjs";
1
+ import { t as e } from "../../chunks/checkbox-group-C5yBbQ8-.mjs";
2
2
  export { e as TCheckboxGroup };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/checkbox-group-8yzWfZL_.mjs";
1
+ import { t as e } from "../../../chunks/checkbox-group-C5yBbQ8-.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/form-BBUFXU0H.mjs";
1
+ import { n as e, t } from "../../chunks/form-BXPhm59W.mjs";
2
2
  export { t as TForm, e as formPropsInit };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/form-BBUFXU0H.mjs";
1
+ import { t as e } from "../../../chunks/form-BXPhm59W.mjs";
2
2
  export { e as default };
@@ -1,27 +1,27 @@
1
- import { n as e, t } from "../chunks/button-Ne9zVtg8.mjs";
1
+ import { n as e, t } from "../chunks/button-BgwgIEU8.mjs";
2
2
  import { t as n } from "../chunks/icon-COjp1yrx.mjs";
3
3
  import { t as r } from "../chunks/popconfirm-DxWa7vWm.mjs";
4
4
  import { n as i, t as a } from "../chunks/card-BfHb58zl.mjs";
5
5
  import { t as o } from "../chunks/checkbox-CLlUEbkk.mjs";
6
- import { t as s } from "../chunks/checkbox-group-8yzWfZL_.mjs";
7
- import { n as c, t as l } from "../chunks/form-BBUFXU0H.mjs";
6
+ import { t as s } from "../chunks/checkbox-group-C5yBbQ8-.mjs";
7
+ import { n as c, t as l } from "../chunks/form-BXPhm59W.mjs";
8
8
  import { n as u, t as d } from "../chunks/input-number-Bt1mbd1D.mjs";
9
9
  import { n as f, t as p } from "../chunks/input-B8jjJrK5.mjs";
10
- import { t as m } from "../chunks/radio-group-Bmx_ESrX.mjs";
10
+ import { t as m } from "../chunks/radio-group-a_ljkAoW.mjs";
11
11
  import { t as h } from "../chunks/range-input-8ddDrOBB.mjs";
12
- import { n as g, t as _ } from "../chunks/select-6VzBY_vu.mjs";
12
+ import { n as g, t as _ } from "../chunks/select-rZD93RO4.mjs";
13
13
  import { n as v, t as y } from "../chunks/slider-C63Gzbld.mjs";
14
14
  import { n as b, t as x } from "../chunks/switch-CqV3-avv.mjs";
15
15
  import { n as S, t as C } from "../chunks/tag-input-iNXrRXk2.mjs";
16
16
  import { t as w } from "../chunks/textarea-xkwOhNut.mjs";
17
- import { t as T } from "../chunks/tree-DDa08q83.mjs";
18
- import { t as E } from "../chunks/tree-select-ofeRjUNh.mjs";
19
- import { t as D } from "../chunks/tree-CnkGS9CU.mjs";
20
- import { n as O, t as k } from "../chunks/upload-BRtusVF3.mjs";
17
+ import { t as T } from "../chunks/tree-0bIqDJPq.mjs";
18
+ import { t as E } from "../chunks/tree-select-BByQlCU-.mjs";
19
+ import { t as D } from "../chunks/tree-Y7LMh-WX.mjs";
20
+ import { n as O, t as k } from "../chunks/upload-B89N6BVO.mjs";
21
21
  import { n as A, t as j } from "../chunks/image-BEsiUWeF.mjs";
22
22
  import { n as M, t as N } from "../chunks/image-viewer-BZux9RvX.mjs";
23
23
  import { n as P, t as F } from "../chunks/link-Byr_BYPx.mjs";
24
- import { t as I } from "../chunks/pagination-Ca_TCfrh.mjs";
24
+ import { t as I } from "../chunks/pagination-BtXI5_uR.mjs";
25
25
  import { t as L } from "../chunks/popup-BO_hNSY5.mjs";
26
26
  import { t as R } from "../chunks/tab-panel-CtYeK29i.mjs";
27
27
  import { n as z, t as B } from "../chunks/tag-B-ovDWQi.mjs";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/pagination-Ca_TCfrh.mjs";
1
+ import { t as e } from "../../chunks/pagination-BtXI5_uR.mjs";
2
2
  export { e as TPagination };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/pagination-Ca_TCfrh.mjs";
1
+ import { t as e } from "../../../chunks/pagination-BtXI5_uR.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/Provider-DsjJAAKQ.mjs";
1
+ import { t as e } from "../../chunks/Provider-D_6GI2ye.mjs";
2
2
  export { e as TProvider };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/Provider-DsjJAAKQ.mjs";
1
+ import { t as e } from "../../../chunks/Provider-D_6GI2ye.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/radio-group-Bmx_ESrX.mjs";
1
+ import { t as e } from "../../chunks/radio-group-a_ljkAoW.mjs";
2
2
  export { e as TRadioGroup };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/radio-group-Bmx_ESrX.mjs";
1
+ import { t as e } from "../../../chunks/radio-group-a_ljkAoW.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/select-6VzBY_vu.mjs";
1
+ import { n as e, t } from "../../chunks/select-rZD93RO4.mjs";
2
2
  export { t as TSelect, e as selectPropsInit };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/select-6VzBY_vu.mjs";
1
+ import { t as e } from "../../../chunks/select-rZD93RO4.mjs";
2
2
  export { e as default };
@@ -1,3 +1,3 @@
1
- import { t as e } from "../../chunks/tree-DDa08q83.mjs";
2
- import { t } from "../../chunks/tree-CnkGS9CU.mjs";
1
+ import { t as e } from "../../chunks/tree-0bIqDJPq.mjs";
2
+ import { t } from "../../chunks/tree-Y7LMh-WX.mjs";
3
3
  export { t as TTree, e as treePropsInit };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/tree-CnkGS9CU.mjs";
1
+ import { t as e } from "../../../chunks/tree-Y7LMh-WX.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../chunks/tree-select-ofeRjUNh.mjs";
1
+ import { t as e } from "../../chunks/tree-select-BByQlCU-.mjs";
2
2
  export { e as TTreeSelect };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/tree-select-ofeRjUNh.mjs";
1
+ import { t as e } from "../../../chunks/tree-select-BByQlCU-.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/upload-BRtusVF3.mjs";
1
+ import { n as e, t } from "../../chunks/upload-B89N6BVO.mjs";
2
2
  export { e as DEFAULT_ACCEPT, t as TUpload };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../chunks/upload-BRtusVF3.mjs";
1
+ import { t as e } from "../../../chunks/upload-B89N6BVO.mjs";
2
2
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import { onUnmounted as e, ref as t } from "vue";
2
2
  import n from "@formkit/auto-animate";
3
- //#region ../../packages/dlzn-ui/hooks/useAnimateAuto.ts
3
+ //#region ../../packages/dlzn-ui/hooks/useAnimateAuto/index.ts
4
4
  var r = () => {
5
5
  let r = t(null);
6
6
  function i(...e) {
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../chunks/useAppContext-D47amIp5.mjs";
2
+ export { e as default };
@@ -1,5 +1,5 @@
1
1
  import { useCssVar as e } from "@vueuse/core";
2
- //#region ../../packages/dlzn-ui/hooks/useCommon.ts
2
+ //#region ../../packages/dlzn-ui/hooks/useCommon/index.ts
3
3
  function t() {
4
4
  return e("--td-brand-color", document.documentElement, { observe: !0 });
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { Items } from './menu/types';
2
+ import { Items } from './menu';
3
3
  interface HookReturnType {
4
4
  items: Ref<Items>;
5
5
  showMenu: Ref<boolean>;
@@ -0,0 +1,2 @@
1
+ export * from './src/menu';
2
+ export { default as Menu } from './src/menu.vue';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../chunks/menu-DTGuCZKc.mjs";
2
+ export { e as Menu };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../chunks/MenuNode-B0BuD3Z-.mjs";
2
+ export { e as default };
@@ -1,4 +1,4 @@
1
- import { Items } from './types';
1
+ import { Items } from './menu';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = {
4
4
  level?: number;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../chunks/menu-DTGuCZKc.mjs";
2
+ export { e as default };
@@ -1,2 +1,2 @@
1
- import { f as e, h as t, m as n, p as r } from "../chunks/user-DpkUzWVu.mjs";
1
+ import { f as e, h as t, m as n, p as r } from "../../chunks/user-DDXohI-o.mjs";
2
2
  export { e as useClearDic, r as useDicLabel, n as useDicOptions, t as useRefreshDic };
@@ -1,7 +1,7 @@
1
- import { stringDisplay as e } from "../utils/string.mjs";
1
+ import { stringDisplay as e } from "../../utils/string.mjs";
2
2
  import { computed as t, ref as n } from "vue";
3
3
  import r from "virtual:dlzn-ui/app-params";
4
- //#region ../../packages/dlzn-ui/hooks/useList.ts
4
+ //#region ../../packages/dlzn-ui/hooks/useList/index.ts
5
5
  var i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = r.useListPromiseMap;
6
6
  function s() {
7
7
  i.clear(), a.clear();
@@ -1,2 +1,2 @@
1
- import { d as e, l as t, u as n } from "../chunks/user-DpkUzWVu.mjs";
1
+ import { d as e, l as t, u as n } from "../../chunks/user-DDXohI-o.mjs";
2
2
  export { t as useClearSysUser, n as useRefreshSysUser, e as useSysUser };
package/index.mjs CHANGED
@@ -1,27 +1,27 @@
1
- import { n as e, t } from "./chunks/button-Ne9zVtg8.mjs";
1
+ import { n as e, t } from "./chunks/button-BgwgIEU8.mjs";
2
2
  import { t as n } from "./chunks/icon-COjp1yrx.mjs";
3
3
  import { t as r } from "./chunks/popconfirm-DxWa7vWm.mjs";
4
4
  import { n as i, t as a } from "./chunks/card-BfHb58zl.mjs";
5
5
  import { t as o } from "./chunks/checkbox-CLlUEbkk.mjs";
6
- import { t as s } from "./chunks/checkbox-group-8yzWfZL_.mjs";
7
- import { n as c, t as l } from "./chunks/form-BBUFXU0H.mjs";
6
+ import { t as s } from "./chunks/checkbox-group-C5yBbQ8-.mjs";
7
+ import { n as c, t as l } from "./chunks/form-BXPhm59W.mjs";
8
8
  import { n as u, t as d } from "./chunks/input-number-Bt1mbd1D.mjs";
9
9
  import { n as f, t as p } from "./chunks/input-B8jjJrK5.mjs";
10
- import { t as m } from "./chunks/radio-group-Bmx_ESrX.mjs";
10
+ import { t as m } from "./chunks/radio-group-a_ljkAoW.mjs";
11
11
  import { t as h } from "./chunks/range-input-8ddDrOBB.mjs";
12
- import { n as g, t as _ } from "./chunks/select-6VzBY_vu.mjs";
12
+ import { n as g, t as _ } from "./chunks/select-rZD93RO4.mjs";
13
13
  import { n as v, t as y } from "./chunks/slider-C63Gzbld.mjs";
14
14
  import { n as b, t as x } from "./chunks/switch-CqV3-avv.mjs";
15
15
  import { n as S, t as C } from "./chunks/tag-input-iNXrRXk2.mjs";
16
16
  import { t as w } from "./chunks/textarea-xkwOhNut.mjs";
17
- import { t as T } from "./chunks/tree-DDa08q83.mjs";
18
- import { t as E } from "./chunks/tree-select-ofeRjUNh.mjs";
19
- import { t as D } from "./chunks/tree-CnkGS9CU.mjs";
20
- import { n as O, t as k } from "./chunks/upload-BRtusVF3.mjs";
17
+ import { t as T } from "./chunks/tree-0bIqDJPq.mjs";
18
+ import { t as E } from "./chunks/tree-select-BByQlCU-.mjs";
19
+ import { t as D } from "./chunks/tree-Y7LMh-WX.mjs";
20
+ import { n as O, t as k } from "./chunks/upload-B89N6BVO.mjs";
21
21
  import { n as A, t as j } from "./chunks/image-BEsiUWeF.mjs";
22
22
  import { n as M, t as N } from "./chunks/image-viewer-BZux9RvX.mjs";
23
23
  import { n as P, t as F } from "./chunks/link-Byr_BYPx.mjs";
24
- import { t as I } from "./chunks/pagination-Ca_TCfrh.mjs";
24
+ import { t as I } from "./chunks/pagination-BtXI5_uR.mjs";
25
25
  import { t as L } from "./chunks/popup-BO_hNSY5.mjs";
26
26
  import { t as R } from "./chunks/tab-panel-CtYeK29i.mjs";
27
27
  import { n as z, t as B } from "./chunks/tag-B-ovDWQi.mjs";
package/package.json CHANGED
@@ -12,24 +12,12 @@
12
12
  "import": "./components/*/index.mjs"
13
13
  },
14
14
  "./plugins/*": {
15
- "types": [
16
- "./plugins/*.d.ts",
17
- "./plugins/*/index.d.ts"
18
- ],
19
- "import": [
20
- "./plugins/*.mjs",
21
- "./plugins/*/index.mjs"
22
- ]
15
+ "types": "./plugins/*/index.d.ts",
16
+ "import": "./plugins/*/index.mjs"
23
17
  },
24
18
  "./hooks/*": {
25
- "types": [
26
- "./hooks/*.d.ts",
27
- "./hooks/*/index.d.ts"
28
- ],
29
- "import": [
30
- "./hooks/*.mjs",
31
- "./hooks/*/index.mjs"
32
- ]
19
+ "types": "./hooks/*/index.d.ts",
20
+ "import": "./hooks/*/index.mjs"
33
21
  },
34
22
  "./utils": {
35
23
  "types": "./utils/index.d.ts",
@@ -87,5 +75,5 @@
87
75
  "> 1%",
88
76
  "not dead"
89
77
  ],
90
- "version": "1.78.0"
78
+ "version": "1.80.0"
91
79
  }
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, r as n } from "../../chunks/user-DpkUzWVu.mjs";
1
+ import { a as e, i as t, r as n } from "../../chunks/user-DDXohI-o.mjs";
2
2
  export { n as default, t as getFilterEmptyParamsObj, e as getParamsString };
@@ -1,4 +1,4 @@
1
- import { CreateDialogFnType } from './$dialog';
1
+ import { CreateDialogFnType } from '../$dialog';
2
2
  declare const _default: (arg1: (Omit<Parameters<CreateDialogFnType>[0], "onCancel" | "onConfirm"> & {
3
3
  onCancelCallback?: () => Promise<void> | void;
4
4
  onConfirmCallback?: () => Promise<void> | void;
@@ -1,6 +1,6 @@
1
- import e from "./$dialog.mjs";
1
+ import e from "../$dialog/index.mjs";
2
2
  import { reactive as t } from "vue";
3
- //#region ../../packages/dlzn-ui/plugins/autoImport/$confirm.ts
3
+ //#region ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
4
4
  var n = (n, r) => {
5
5
  let i = { ...typeof n == "string" ? {} : n };
6
6
  return delete i.useReject, delete i.onCancelCallback, delete i.onConfirmCallback, new Promise((a, o) => {
@@ -1,9 +1,9 @@
1
- import e from "../../hooks/useAppContext.mjs";
2
- import { t } from "../../chunks/Provider-DsjJAAKQ.mjs";
1
+ import { t as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
2
+ import { t } from "../../../chunks/Provider-D_6GI2ye.mjs";
3
3
  import { computed as n, h as r, ref as i } from "vue";
4
4
  import { useElementVisibility as a } from "@vueuse/core";
5
5
  import { Button as o, DialogPlugin as s } from "tdesign-vue-next";
6
- //#region ../../packages/dlzn-ui/plugins/autoImport/$dialog.ts
6
+ //#region ../../packages/dlzn-ui/plugins/autoImport/$dialog/index.ts
7
7
  var c = /* @__PURE__ */ function(e) {
8
8
  return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
9
9
  }(c || {}), l = /* @__PURE__ */ new Set();
@@ -1,8 +1,8 @@
1
- import e from "../../hooks/useAppContext.mjs";
2
- import { t } from "../../chunks/Provider-DsjJAAKQ.mjs";
1
+ import { t as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
2
+ import { t } from "../../../chunks/Provider-D_6GI2ye.mjs";
3
3
  import { computed as n, h as r } from "vue";
4
4
  import { DrawerPlugin as i } from "tdesign-vue-next";
5
- //#region ../../packages/dlzn-ui/plugins/autoImport/$drawer.ts
5
+ //#region ../../packages/dlzn-ui/plugins/autoImport/$drawer/index.ts
6
6
  var a = /* @__PURE__ */ new Set();
7
7
  function o(o, s) {
8
8
  let c = n(() => typeof o.body == "function" ? o.body(r) : o.body), l = {
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { CreateMessageFnType } from './$msg';
2
+ import { CreateMessageFnType } from '../$msg';
3
3
  type LoadingText = Parameters<CreateMessageFnType>[0];
4
4
  declare class LoadingService {
5
5
  isLoading: Ref<boolean, boolean>;
@@ -1,8 +1,8 @@
1
- import e from "../../hooks/useAppContext.mjs";
1
+ import { t as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
2
2
  import { ref as t } from "vue";
3
3
  import { LoadingPlugin as n, Message as r } from "tdesign-vue-next";
4
4
  import { BProgress as i } from "@bprogress/core";
5
- //#region ../../packages/dlzn-ui/plugins/autoImport/$loading.ts
5
+ //#region ../../packages/dlzn-ui/plugins/autoImport/$loading/index.ts
6
6
  i.configure({ showSpinner: !1 });
7
7
  var a = new class {
8
8
  isLoading = t(!1);
@@ -1,6 +1,6 @@
1
- import e from "../../hooks/useAppContext.mjs";
1
+ import { t as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
2
2
  import { MessagePlugin as t } from "tdesign-vue-next";
3
- //#region ../../packages/dlzn-ui/plugins/autoImport/$msg.ts
3
+ //#region ../../packages/dlzn-ui/plugins/autoImport/$msg/index.ts
4
4
  var n = /* @__PURE__ */ function(e) {
5
5
  return e.error = "error", e.info = "info", e.loading = "loading", e.question = "question", e.success = "success", e.warning = "warning", e;
6
6
  }(n || {});
@@ -0,0 +1,2 @@
1
+ import { n as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
2
+ export { e as default };
@@ -1,4 +1,4 @@
1
- import { n as e } from "../../chunks/user-DpkUzWVu.mjs";
1
+ import { n as e } from "../../chunks/user-DDXohI-o.mjs";
2
2
  import { isFalsy as t } from "../../utils/boolean.mjs";
3
3
  import { useClipboard as n } from "@vueuse/core";
4
4
  //#region ../../packages/dlzn-ui/plugins/others/directive.ts
@@ -1,2 +1,2 @@
1
- import { g as e } from "../../chunks/user-DpkUzWVu.mjs";
1
+ import { g as e } from "../../chunks/user-DDXohI-o.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { o as e } from "../../chunks/user-DpkUzWVu.mjs";
1
+ import { o as e } from "../../chunks/user-DDXohI-o.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { c as e, s as t } from "../../chunks/user-DpkUzWVu.mjs";
1
+ import { c as e, s as t } from "../../chunks/user-DDXohI-o.mjs";
2
2
  export { e as default, t as getRoutersMethod };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../chunks/user-DpkUzWVu.mjs";
1
+ import { n as e, t } from "../../chunks/user-DDXohI-o.mjs";
2
2
  export { e as default, t as getUserInfoMethod };
@@ -1 +0,0 @@
1
- .custom_context_menu[data-v-ed6ea484]{--td-bg-color-container-hover:var(--td-bg-color-secondarycontainer-hover);border:.5px solid var(--td-component-border);border-radius:var(--td-radius-medium);min-width:100px;box-shadow:var(--td-shadow-2)}.custom_context_menu[data-v-ed6ea484] .t-menu--scroll{padding:8px 0!important}.custom_context_menu[data-v-ed6ea484] .t-menu__item{height:var(--td-comp-size-s);line-height:var(--td-comp-size-s);margin-top:0!important;padding:0 12px!important}.custom_context_menu[data-v-ed6ea484] .t-submenu{margin-top:0!important}.custom_context_menu[data-v-ed6ea484] .t-fake-arrow{transform:rotate(270deg)!important}.custom_context_menu[data-v-ed6ea484] .t-fake-arrow path{d:path("M3.75 5.7998L7.99274 10.0425L12.2361 5.79921")!important}
@@ -1 +0,0 @@
1
- [data-v-5556b131] .iconify{flex-shrink:0;font-size:var(--td-font-size-body-large)!important}[data-v-5556b131] .iconify+.t-button__text:not(:empty){margin-left:8px}.t-size-s[data-v-5556b131] .iconify{font-size:var(--td-font-size-body-medium)!important}.t-size-l[data-v-5556b131] .iconify{font-size:var(--td-font-size-title-large)!important}.t-button+.t-button[data-v-5556b131]{margin-left:var(--td-comp-margin-m)}.t-button+.t-button.t-size-s[data-v-5556b131]{margin-left:var(--td-comp-margin-xs)}
@@ -1,9 +0,0 @@
1
- import { getCurrentInstance as e } from "vue";
2
- //#region ../../packages/dlzn-ui/hooks/useAppContext.ts
3
- var t, n = () => {
4
- if (t !== void 0) return t;
5
- let n = e();
6
- if (n !== null) return t = n.appContext, t;
7
- };
8
- //#endregion
9
- export { n as default };
@@ -1,2 +0,0 @@
1
- import { t as e } from "../../../chunks/MenuNode-Bsx5EX6G.mjs";
2
- export { e as default };
@@ -1,24 +0,0 @@
1
- import e from "../../hooks/useAppContext.mjs";
2
- import { NotifyPlugin as t } from "tdesign-vue-next";
3
- //#region ../../packages/dlzn-ui/plugins/autoImport/$notify.ts
4
- var n = /* @__PURE__ */ function(e) {
5
- return e.error = "error", e.info = "info", e.success = "success", e.warning = "warning", e;
6
- }(n || {});
7
- async function r(n, r, i) {
8
- let a = { ...i ?? {} };
9
- return t[n]({
10
- closeBtn: !0,
11
- content: r,
12
- duration: 15e3,
13
- title: "提示",
14
- ...a
15
- }, e());
16
- }
17
- var i = async function(...e) {
18
- return r("success", ...e);
19
- };
20
- Object.values(n).forEach((e) => {
21
- i[e] = async (...t) => r(e, ...t);
22
- }), i.closeAll = () => t.closeAll(), i.close = (...e) => t.close(...e);
23
- //#endregion
24
- export { i as default };
File without changes
File without changes
File without changes
File without changes
File without changes