@das-fed/upf-ui 6.4.0-dev.284 → 6.4.0-dev.286

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.
@@ -732,19 +732,19 @@ export default {
732
732
  "点击下载": "",
733
733
  "仅支持上传": "",
734
734
  "重复数据以最后一条为准": "",
735
- "请重新支付": "",
736
735
  "删除流程定义": "",
737
736
  "对应的实例和任务会一起删除": "",
737
+ "请重新支付": "",
738
738
  "添加组织": "",
739
739
  "用户": "",
740
740
  "预订上午": "",
741
741
  "的会议室": "",
742
+ "数据趋势": "",
742
743
  "数字": "",
743
744
  "小写字母": "",
744
745
  "大写字母": "",
745
746
  "符号": "",
746
747
  "修改密码成功": "",
747
- "数据趋势": "",
748
748
  "引用": "",
749
749
  "篇资料作为参考": "",
750
750
  "思考中": "",
@@ -719,19 +719,19 @@ export default {
719
719
  "点击下载": "点击下载",
720
720
  "仅支持上传": "仅支持上传",
721
721
  "重复数据以最后一条为准": "重复数据以最后一条为准",
722
- "请重新支付": "请重新支付",
723
722
  "删除流程定义": "删除流程定义",
724
723
  "对应的实例和任务会一起删除": "对应的实例和任务会一起删除",
724
+ "请重新支付": "请重新支付",
725
725
  "添加组织": "添加组织",
726
726
  "用户": "用户",
727
727
  "预订上午": "预订上午",
728
728
  "的会议室": "的会议室",
729
+ "数据趋势": "数据趋势",
729
730
  "数字": "数字",
730
731
  "小写字母": "小写字母",
731
732
  "大写字母": "大写字母",
732
733
  "符号": "符号",
733
734
  "修改密码成功": "修改密码成功",
734
- "数据趋势": "数据趋势",
735
735
  "引用": "引用",
736
736
  "篇资料作为参考": "篇资料作为参考",
737
737
  "思考中": "思考中",
@@ -718,19 +718,19 @@ export default {
718
718
  "点击下载": "",
719
719
  "仅支持上传": "",
720
720
  "重复数据以最后一条为准": "",
721
- "请重新支付": "",
722
721
  "删除流程定义": "",
723
722
  "对应的实例和任务会一起删除": "",
723
+ "请重新支付": "",
724
724
  "添加组织": "",
725
725
  "用户": "",
726
726
  "预订上午": "",
727
727
  "的会议室": "",
728
+ "数据趋势": "",
728
729
  "数字": "",
729
730
  "小写字母": "",
730
731
  "大写字母": "",
731
732
  "符号": "",
732
733
  "修改密码成功": "",
733
- "数据趋势": "",
734
734
  "引用": "",
735
735
  "篇资料作为参考": "",
736
736
  "思考中": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/upf-ui",
3
- "version": "6.4.0-dev.284",
3
+ "version": "6.4.0-dev.286",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -55,8 +55,8 @@
55
55
  "vue-tsc": "^2.0.29"
56
56
  },
57
57
  "dependencies": {
58
- "@das-fed/upf-cli": "6.4.0-dev.284",
59
- "@das-fed/upf-utils": "6.4.0-dev.284",
58
+ "@das-fed/upf-cli": "6.4.0-dev.286",
59
+ "@das-fed/upf-utils": "6.4.0-dev.286",
60
60
  "@types/markdown-it": "^14.1.2",
61
61
  "@wangeditor-next/editor": "5.6.31",
62
62
  "@wangeditor-next/editor-for-vue": "5.1.14",
@@ -1,5 +1,5 @@
1
- import { inject as R, ref as I, computed as b, unref as j, openBlock as V, createElementBlock as A, createStaticVNode as K, createElementVNode as E, reactive as W, defineComponent as X, h as _, Transition as ee, withCtx as te, withDirectives as ne, createVNode as se, vShow as ae, createApp as oe, toRefs as re, nextTick as F, isRef as ce } from "vue";
2
- import { setI18nRule as de, t as le } from "@das-fed/upf-web/packages/i18n/index"
1
+ import { inject as D, ref as I, computed as x, unref as Z, openBlock as N, createElementBlock as V, createStaticVNode as R, createElementVNode as z, reactive as J, defineComponent as Q, h as _, Transition as W, withCtx as X, withDirectives as ee, createVNode as te, vShow as ne, createApp as se, toRefs as ae, nextTick as j, isRef as oe } from "vue";
2
+ import { setI18nRule as re, t as ce } from "@das-fed/upf-web/packages/i18n/index"
3
3
  import '@das-fed/upf-ui/packages/components/loading/style.css';
4
4
  ;
5
5
  /**
@@ -9,189 +9,187 @@ import '@das-fed/upf-ui/packages/components/loading/style.css';
9
9
  **/
10
10
  process.env.NODE_ENV !== "production" && Object.freeze({});
11
11
  process.env.NODE_ENV !== "production" && Object.freeze([]);
12
- const G = (t) => typeof t == "string", q = (t) => t !== null && typeof t == "object", M = (t) => {
12
+ const K = (t) => typeof t == "string", F = (t) => t !== null && typeof t == "object", G = (t) => {
13
13
  const e = /* @__PURE__ */ Object.create(null);
14
14
  return (n) => e[n] || (e[n] = t(n));
15
- }, ie = /-\w/g, ue = M(
16
- (t) => t.replace(ie, (e) => e.slice(1).toUpperCase())
17
- ), fe = /\B([A-Z])/g, me = M(
18
- (t) => t.replace(fe, "-$1").toLowerCase()
19
- ), ve = (t) => typeof t == "number";
20
- var O;
21
- const k = typeof window < "u";
22
- k && ((O = window == null ? void 0 : window.navigator) != null && O.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
23
- const U = (t = "") => t.split(" ").filter((e) => !!e.trim()), S = (t, e) => {
24
- !t || !e.trim() || t.classList.add(...U(e));
15
+ }, de = /-\w/g, ie = G(
16
+ (t) => t.replace(de, (e) => e.slice(1).toUpperCase())
17
+ ), le = /\B([A-Z])/g, ue = G(
18
+ (t) => t.replace(le, "-$1").toLowerCase()
19
+ ), fe = (t) => typeof t == "number";
20
+ var B;
21
+ const A = typeof window < "u";
22
+ A && ((B = window == null ? void 0 : window.navigator) != null && B.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
23
+ const q = (t = "") => t.split(" ").filter((e) => !!e.trim()), E = (t, e) => {
24
+ !t || !e.trim() || t.classList.add(...q(e));
25
25
  }, $ = (t, e) => {
26
- !t || !e.trim() || t.classList.remove(...U(e));
27
- }, y = (t, e) => {
28
- var o;
29
- if (!k || !t || !e) return "";
30
- let n = ue(e);
26
+ !t || !e.trim() || t.classList.remove(...q(e));
27
+ }, b = (t, e) => {
28
+ var s;
29
+ if (!A || !t || !e) return "";
30
+ let n = ie(e);
31
31
  n === "float" && (n = "cssFloat");
32
32
  try {
33
33
  const c = t.style[n];
34
34
  if (c) return c;
35
- const s = (o = document.defaultView) == null ? void 0 : o.getComputedStyle(t, "");
36
- return s ? s[n] : "";
35
+ const o = (s = document.defaultView) == null ? void 0 : s.getComputedStyle(t, "");
36
+ return o ? o[n] : "";
37
37
  } catch {
38
38
  return t.style[n];
39
39
  }
40
- }, w = "das", ge = "is-", f = (t, e, n, o, c) => {
41
- let s = `${t}-${e}`;
42
- return n && (s += `-${n}`), o && (s += `__${o}`), c && (s += `--${c}`), s;
43
- }, pe = Symbol("namespaceContextKey"), ye = (t) => {
44
- const e = t || R(pe, I(w));
45
- return b(() => j(e) || w);
46
- }, be = (t, e) => {
47
- const n = ye(e);
40
+ }, L = "das", me = "is-", v = (t, e, n, s, c) => {
41
+ let o = `${t}-${e}`;
42
+ return n && (o += `-${n}`), s && (o += `__${s}`), c && (o += `--${c}`), o;
43
+ }, ve = Symbol("namespaceContextKey"), ge = (t) => {
44
+ const e = t || D(ve, I(L));
45
+ return x(() => Z(e) || L);
46
+ }, pe = (t, e) => {
47
+ const n = ge(e);
48
48
  return {
49
49
  namespace: n,
50
- b: (a = "") => f(n.value, t, a, "", ""),
51
- e: (a) => a ? f(n.value, t, "", a, "") : "",
52
- m: (a) => a ? f(n.value, t, "", "", a) : "",
53
- be: (a, r) => a && r ? f(n.value, t, a, r, "") : "",
54
- em: (a, r) => a && r ? f(n.value, t, "", a, r) : "",
55
- bm: (a, r) => a && r ? f(n.value, t, a, "", r) : "",
56
- bem: (a, r, l) => a && r && l ? f(n.value, t, a, r, l) : "",
50
+ b: (a = "") => v(n.value, t, a, "", ""),
51
+ e: (a) => a ? v(n.value, t, "", a, "") : "",
52
+ m: (a) => a ? v(n.value, t, "", "", a) : "",
53
+ be: (a, r) => a && r ? v(n.value, t, a, r, "") : "",
54
+ em: (a, r) => a && r ? v(n.value, t, "", a, r) : "",
55
+ bm: (a, r) => a && r ? v(n.value, t, a, "", r) : "",
56
+ bem: (a, r, i) => a && r && i ? v(n.value, t, a, r, i) : "",
57
57
  is: (a, ...r) => {
58
- const l = r.length >= 1 ? r[0] : !0;
59
- return a && l ? `${ge}${a}` : "";
58
+ const i = r.length >= 1 ? r[0] : !0;
59
+ return a && i ? `${me}${a}` : "";
60
60
  },
61
61
  // css
62
62
  cssVar: (a) => {
63
63
  const r = {};
64
- for (const l in a)
65
- a[l] && (r[`--${n.value}-${l}`] = a[l]);
64
+ for (const i in a)
65
+ a[i] && (r[`--${n.value}-${i}`] = a[i]);
66
66
  return r;
67
67
  },
68
68
  cssVarName: (a) => `--${n.value}-${a}`,
69
69
  cssVarBlock: (a) => {
70
70
  const r = {};
71
- for (const l in a)
72
- a[l] && (r[`--${n.value}-${t}-${l}`] = a[l]);
71
+ for (const i in a)
72
+ a[i] && (r[`--${n.value}-${t}-${i}`] = a[i]);
73
73
  return r;
74
74
  },
75
75
  cssVarBlockName: (a) => `--${n.value}-${t}-${a}`
76
76
  };
77
- }, P = I(0), Y = 2e3, xe = Symbol("zIndexContextKey"), _e = (t) => {
78
- const e = t || R(xe, void 0), n = b(() => {
79
- const s = j(e);
80
- return ve(s) ? s : Y;
81
- }), o = b(() => n.value + P.value);
77
+ }, O = I(0), M = 2e3, ye = Symbol("zIndexContextKey"), be = (t) => {
78
+ const e = t || D(ye, void 0), n = x(() => {
79
+ const o = Z(e);
80
+ return fe(o) ? o : M;
81
+ }), s = x(() => n.value + O.value);
82
82
  return {
83
83
  initialZIndex: n,
84
- currentZIndex: o,
85
- nextZIndex: () => (P.value++, o.value)
84
+ currentZIndex: s,
85
+ nextZIndex: () => (O.value++, s.value)
86
86
  };
87
87
  };
88
- function Ce(t) {
89
- const e = be(
88
+ function xe(t) {
89
+ const e = pe(
90
90
  t,
91
- b(() => w)
92
- ), n = _e(
93
- b(() => Y)
91
+ x(() => L)
92
+ ), n = be(
93
+ x(() => M)
94
94
  );
95
95
  return {
96
96
  ns: e,
97
97
  zIndex: n
98
98
  };
99
99
  }
100
- const z = (t, e) => {
100
+ const k = (t, e) => {
101
101
  const n = t.__vccOpts || t;
102
- for (const [o, c] of e)
103
- n[o] = c;
102
+ for (const [s, c] of e)
103
+ n[s] = c;
104
104
  return n;
105
- }, $e = {}, Ie = { class: "das-loading-container das-loading-page" };
106
- function he(t, e) {
107
- return V(), A("div", Ie, [...e[0] || (e[0] = [
108
- K('<div class="das-loading-dot-loading" data-v-556fdb62><i class="das-loading-dot-item" data-v-556fdb62></i><i class="das-loading-dot-item" data-v-556fdb62></i><i class="das-loading-dot-item" data-v-556fdb62></i><i class="das-loading-dot-item" data-v-556fdb62></i></div>', 1)
105
+ }, _e = {}, Ce = { class: "das-loading-container das-loading-page" };
106
+ function $e(t, e) {
107
+ return N(), V("div", Ce, [...e[0] || (e[0] = [
108
+ R('<div class="das-loading-dot-loading" data-v-556fdb62><i class="das-loading-dot-item" data-v-556fdb62></i><i class="das-loading-dot-item" data-v-556fdb62></i><i class="das-loading-dot-item" data-v-556fdb62></i><i class="das-loading-dot-item" data-v-556fdb62></i></div>', 1)
109
109
  ])]);
110
110
  }
111
- const T = /* @__PURE__ */ z($e, [["render", he], ["__scopeId", "data-v-556fdb62"]]), Le = {}, we = { class: "das-loading-container das-loading-component" };
112
- function Ne(t, e) {
113
- return V(), A("div", we, [...e[0] || (e[0] = [
114
- E(
111
+ const S = /* @__PURE__ */ k(_e, [["render", $e], ["__scopeId", "data-v-556fdb62"]]), Ie = {}, he = { class: "das-loading-container das-loading-component" };
112
+ function Le(t, e) {
113
+ return N(), V("div", he, [...e[0] || (e[0] = [
114
+ z(
115
115
  "div",
116
116
  { class: "das-loading-dot-loading" },
117
117
  [
118
- E("i", { class: "das-loading-dot-item" })
118
+ z("i", { class: "das-loading-dot-item" })
119
119
  ],
120
120
  -1
121
121
  /* CACHED */
122
122
  )
123
123
  ])]);
124
124
  }
125
- const Ve = /* @__PURE__ */ z(Le, [["render", Ne], ["__scopeId", "data-v-00355f8b"]]), Ae = {}, ke = { class: "das-loading-container das-loading-containerload" };
126
- function ze(t, e) {
127
- return V(), A("div", ke, [...e[0] || (e[0] = [
128
- K('<div class="das-loading-dot-loading" data-v-80a6a49a><i class="das-loading-dot-item" data-v-80a6a49a></i><i class="das-loading-dot-item" data-v-80a6a49a></i><i class="das-loading-dot-item" data-v-80a6a49a></i><i class="das-loading-dot-item" data-v-80a6a49a></i></div>', 1)
125
+ const we = /* @__PURE__ */ k(Ie, [["render", Le], ["__scopeId", "data-v-00355f8b"]]), Ne = {}, Ve = { class: "das-loading-container das-loading-containerload" };
126
+ function Ae(t, e) {
127
+ return N(), V("div", Ve, [...e[0] || (e[0] = [
128
+ R('<div class="das-loading-dot-loading" data-v-80a6a49a><i class="das-loading-dot-item" data-v-80a6a49a></i><i class="das-loading-dot-item" data-v-80a6a49a></i><i class="das-loading-dot-item" data-v-80a6a49a></i><i class="das-loading-dot-item" data-v-80a6a49a></i></div>', 1)
129
129
  ])]);
130
130
  }
131
- const Be = /* @__PURE__ */ z(Ae, [["render", ze], ["__scopeId", "data-v-80a6a49a"]]);
132
- function Ee(t) {
133
- let e, n = !1, o = !1;
134
- const c = I(!1), s = W({
131
+ const ke = /* @__PURE__ */ k(Ne, [["render", Ae], ["__scopeId", "data-v-80a6a49a"]]);
132
+ function ze(t) {
133
+ let e;
134
+ const n = I(!1), s = J({
135
135
  ...t,
136
136
  originalPosition: "",
137
137
  originalOverflow: "",
138
138
  visible: !1
139
139
  });
140
- function u(d) {
140
+ function c(d) {
141
141
  s.text = d;
142
142
  }
143
- function g() {
144
- if (o) return;
145
- o = !0;
146
- const d = s.parent, a = v.ns;
143
+ function o() {
144
+ const d = s.parent, m = p.ns;
147
145
  if (!d.vLoadingAddClassList) {
148
- let r = d.getAttribute("loading-number");
149
- r = Number.parseInt(r) - 1, r ? d.setAttribute("loading-number", r.toString()) : ($(d, a.bm("parent", "relative")), d.removeAttribute("loading-number")), $(d, a.bm("parent", "hidden"));
146
+ let f = d.getAttribute("loading-number");
147
+ f = Number.parseInt(f) - 1, f ? d.setAttribute("loading-number", f.toString()) : ($(d, m.bm("parent", "relative")), d.removeAttribute("loading-number")), $(d, m.bm("parent", "hidden"));
150
148
  }
151
- i(), h.unmount();
149
+ u(), h.unmount();
152
150
  }
153
- function i() {
154
- var d, a;
155
- (a = (d = v.$el) == null ? void 0 : d.parentNode) == null || a.removeChild(v.$el);
151
+ function u() {
152
+ var d, m;
153
+ (m = (d = p.$el) == null ? void 0 : d.parentNode) == null || m.removeChild(p.$el);
156
154
  }
157
- function m() {
155
+ function y() {
158
156
  var d;
159
- n || o || t.beforeClose && !t.beforeClose() || (n = !0, c.value = !0, clearTimeout(e), e = window.setTimeout(x, 400), s.visible = !1, (d = t.closed) == null || d.call(t));
157
+ t.beforeClose && !t.beforeClose() || (n.value = !0, clearTimeout(e), e = window.setTimeout(l, 400), s.visible = !1, (d = t.closed) == null || d.call(t));
160
158
  }
161
- function x() {
162
- if (!c.value) return;
159
+ function l() {
160
+ if (!n.value) return;
163
161
  const d = s.parent;
164
- c.value = !1, d.vLoadingAddClassList = void 0, g();
162
+ n.value = !1, d.vLoadingAddClassList = void 0, o();
165
163
  }
166
- const B = X({
164
+ const g = Q({
167
165
  name: "DasLoading",
168
- setup(d, { expose: a }) {
169
- const { ns: r, zIndex: l } = Ce("loading");
170
- return a({
171
- ns: r,
172
- zIndex: l
166
+ setup(d, { expose: m }) {
167
+ const { ns: f, zIndex: a } = xe("loading");
168
+ return m({
169
+ ns: f,
170
+ zIndex: a
173
171
  }), () => {
174
- let p = s.spinner || s.svg || T;
175
- const L = s.type;
176
- L == "page" && (p = T), L == "container" && (p = Be), L == "component" && (p = Ve);
177
- const J = typeof p == "boolean" ? void 0 : _(p), Q = s.text ? _("p", { class: r.b("text") }, [s.text]) : void 0;
172
+ let r = s.spinner || s.svg || S;
173
+ const i = s.type;
174
+ i == "page" && (r = S), i == "container" && (r = ke), i == "component" && (r = we);
175
+ const Y = typeof r == "boolean" ? void 0 : _(r), H = s.text ? _("p", { class: f.b("text") }, [s.text]) : void 0;
178
176
  return _(
179
- ee,
177
+ W,
180
178
  {
181
- name: r.b("fade"),
182
- onAfterLeave: x
179
+ name: f.b("fade"),
180
+ onAfterLeave: l
183
181
  },
184
182
  {
185
- default: te(() => [
186
- ne(
187
- se(
183
+ default: X(() => [
184
+ ee(
185
+ te(
188
186
  "div",
189
187
  {
190
188
  style: {
191
189
  backgroundColor: s.background || ""
192
190
  },
193
191
  class: [
194
- r.b("mask"),
192
+ f.b("mask"),
195
193
  s.customClass,
196
194
  s.fullscreen ? "is-fullscreen" : ""
197
195
  ]
@@ -200,51 +198,51 @@ function Ee(t) {
200
198
  _(
201
199
  "div",
202
200
  {
203
- class: r.b("spinner")
201
+ class: f.b("spinner")
204
202
  },
205
- [J, Q]
203
+ [Y, H]
206
204
  )
207
205
  ]
208
206
  ),
209
- [[ae, s.visible]]
207
+ [[ne, s.visible]]
210
208
  )
211
209
  ])
212
210
  }
213
211
  );
214
212
  };
215
213
  }
216
- }), h = oe(B), v = h.mount(document.createElement("div"));
214
+ }), h = se(g), p = h.mount(document.createElement("div"));
217
215
  return {
218
- ...re(s),
219
- setText: u,
220
- removeElLoadingChild: i,
221
- close: m,
222
- handleAfterLeave: x,
223
- vm: v,
216
+ ...ae(s),
217
+ setText: c,
218
+ removeElLoadingChild: u,
219
+ close: y,
220
+ handleAfterLeave: l,
221
+ vm: p,
224
222
  get $el() {
225
- return v.$el;
223
+ return p.$el;
226
224
  }
227
225
  };
228
226
  }
229
227
  let C;
230
- const H = function(t = {}) {
231
- if (!k) return;
232
- const e = Oe(t);
228
+ const U = function(t = {}) {
229
+ if (!A) return;
230
+ const e = Be(t);
233
231
  if (e.fullscreen && C)
234
232
  return C;
235
- const n = Ee({
233
+ const n = ze({
236
234
  ...e,
237
235
  closed: () => {
238
236
  var c;
239
237
  (c = e.closed) == null || c.call(e), e.fullscreen && (C = void 0);
240
238
  }
241
239
  });
242
- Se(e, e.parent, n), D(e, e.parent, n), e.parent.vLoadingAddClassList = () => D(e, e.parent, n);
243
- let o = e.parent.getAttribute("loading-number");
244
- return o ? o = `${Number.parseInt(o) + 1}` : o = "1", e.parent.setAttribute("loading-number", o), e.parent.appendChild(n.$el), F(() => n.visible.value = e.visible), e.fullscreen && (C = n), n;
245
- }, Oe = (t) => {
240
+ Ee(e, e.parent, n), P(e, e.parent, n), e.parent.vLoadingAddClassList = () => P(e, e.parent, n);
241
+ let s = e.parent.getAttribute("loading-number");
242
+ return s ? s = `${Number.parseInt(s) + 1}` : s = "1", e.parent.setAttribute("loading-number", s), e.parent.appendChild(n.$el), j(() => n.visible.value = e.visible), e.fullscreen && (C = n), n;
243
+ }, Be = (t) => {
246
244
  let e;
247
- return G(t.target) ? e = document.querySelector(t.target) ?? document.body : e = t.target || document.body, {
245
+ return K(t.target) ? e = document.querySelector(t.target) ?? document.body : e = t.target || document.body, {
248
246
  parent: e === document.body || t.body ? document.body : e,
249
247
  background: t.background || "",
250
248
  svg: t.svg || "",
@@ -258,70 +256,70 @@ const H = function(t = {}) {
258
256
  visible: t.visible ?? !0,
259
257
  target: e
260
258
  };
261
- }, Se = async (t, e, n) => {
262
- const { nextZIndex: o } = n.vm.zIndex || n.vm._.exposed.zIndex, c = {};
259
+ }, Ee = async (t, e, n) => {
260
+ const { nextZIndex: s } = n.vm.zIndex || n.vm._.exposed.zIndex, c = {};
263
261
  if (t.fullscreen)
264
- n.originalPosition.value = y(document.body, "position"), n.originalOverflow.value = y(document.body, "overflow"), c.zIndex = o();
262
+ n.originalPosition.value = b(document.body, "position"), n.originalOverflow.value = b(document.body, "overflow"), c.zIndex = s();
265
263
  else if (t.parent === document.body) {
266
- n.originalPosition.value = y(document.body, "position"), await F();
267
- for (const s of ["top", "left"]) {
268
- const u = s === "top" ? "scrollTop" : "scrollLeft";
269
- c[s] = `${t.target.getBoundingClientRect()[s] + document.body[u] + document.documentElement[u] - Number.parseInt(y(document.body, `margin-${s}`), 10)}px`;
264
+ n.originalPosition.value = b(document.body, "position"), await j();
265
+ for (const o of ["top", "left"]) {
266
+ const u = o === "top" ? "scrollTop" : "scrollLeft";
267
+ c[o] = `${t.target.getBoundingClientRect()[o] + document.body[u] + document.documentElement[u] - Number.parseInt(b(document.body, `margin-${o}`), 10)}px`;
270
268
  }
271
- for (const s of ["height", "width"])
272
- c[s] = `${t.target.getBoundingClientRect()[s]}px`;
269
+ for (const o of ["height", "width"])
270
+ c[o] = `${t.target.getBoundingClientRect()[o]}px`;
273
271
  } else
274
- n.originalPosition.value = y(e, "position");
275
- for (const [s, u] of Object.entries(c))
276
- n.$el.style[s] = u;
277
- }, D = (t, e, n) => {
278
- const o = n.vm.ns || n.vm._.exposed.ns;
279
- ["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? $(e, o.bm("parent", "relative")) : S(e, o.bm("parent", "relative")), t.fullscreen && t.lock ? S(e, o.bm("parent", "hidden")) : $(e, o.bm("parent", "hidden"));
280
- }, N = Symbol("DasLoading"), Z = (t, e) => {
281
- const n = e.instance, o = (i) => q(e.value) ? e.value[i] : void 0, c = (i) => {
282
- const m = G(i) && (n == null ? void 0 : n[i]) || i;
283
- return m && I(m);
284
- }, s = (i) => c(
285
- o(i) || t.getAttribute(`das-loading-${me(i)}`)
286
- ), u = o("fullscreen") ?? e.modifiers.fullscreen, g = {
287
- type: s("type"),
288
- text: s("text"),
289
- svg: s("svg"),
290
- svgViewBox: s("svgViewBox"),
291
- spinner: s("spinner"),
292
- background: s("background"),
293
- customClass: s("customClass"),
272
+ n.originalPosition.value = b(e, "position");
273
+ for (const [o, u] of Object.entries(c))
274
+ n.$el.style[o] = u;
275
+ }, P = (t, e, n) => {
276
+ const s = n.vm.ns || n.vm._.exposed.ns;
277
+ ["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? $(e, s.bm("parent", "relative")) : E(e, s.bm("parent", "relative")), t.fullscreen && t.lock ? E(e, s.bm("parent", "hidden")) : $(e, s.bm("parent", "hidden"));
278
+ }, w = Symbol("DasLoading"), T = (t, e) => {
279
+ const n = e.instance, s = (l) => F(e.value) ? e.value[l] : void 0, c = (l) => {
280
+ const g = K(l) && (n == null ? void 0 : n[l]) || l;
281
+ return g && I(g);
282
+ }, o = (l) => c(
283
+ s(l) || t.getAttribute(`das-loading-${ue(l)}`)
284
+ ), u = s("fullscreen") ?? e.modifiers.fullscreen, y = {
285
+ type: o("type"),
286
+ text: o("text"),
287
+ svg: o("svg"),
288
+ svgViewBox: o("svgViewBox"),
289
+ spinner: o("spinner"),
290
+ background: o("background"),
291
+ customClass: o("customClass"),
294
292
  fullscreen: u,
295
- target: o("target") ?? (u ? void 0 : t),
296
- body: o("body") ?? e.modifiers.body,
297
- lock: o("lock") ?? e.modifiers.lock
293
+ target: s("target") ?? (u ? void 0 : t),
294
+ body: s("body") ?? e.modifiers.body,
295
+ lock: s("lock") ?? e.modifiers.lock
298
296
  };
299
- t[N] = {
300
- options: g,
301
- instance: H(g)
297
+ t[w] = {
298
+ options: y,
299
+ instance: U(y)
302
300
  };
303
- }, Pe = (t, e) => {
301
+ }, Oe = (t, e) => {
304
302
  for (const n of Object.keys(e))
305
- ce(e[n]) && (e[n].value = t[n]);
306
- }, Re = {
303
+ oe(e[n]) && (e[n].value = t[n]);
304
+ }, De = {
307
305
  mounted(t, e) {
308
- e.value && Z(t, e);
306
+ e.value && T(t, e);
309
307
  },
310
308
  updated(t, e) {
311
- const n = t[N];
312
- e.oldValue !== e.value && (e.value && !e.oldValue ? Z(t, e) : e.value && e.oldValue ? q(e.value) && Pe(e.value, n.options) : n == null || n.instance.close());
309
+ const n = t[w];
310
+ e.oldValue !== e.value && (e.value && !e.oldValue ? T(t, e) : e.value && e.oldValue ? F(e.value) && Oe(e.value, n.options) : n == null || n.instance.close());
313
311
  },
314
312
  unmounted(t) {
315
313
  var e;
316
- (e = t[N]) == null || e.instance.close();
314
+ (e = t[w]) == null || e.instance.close();
317
315
  }
318
- }, Te = { 加载: { "zh-CN": "加载", en: "Loading", "zh-MO": "加載", _appCode: "framework" } };
319
- de(Te);
320
- const je = {
321
- service: H
322
- }, Ke = { name: `loading ${le("加载")}` };
316
+ }, Se = { 加载: { "zh-CN": "加载", en: "Loading", "zh-MO": "加載", _appCode: "framework" } };
317
+ re(Se);
318
+ const Ze = {
319
+ service: U
320
+ }, Re = { name: `loading ${ce("加载")}` };
323
321
  export {
324
- je as DasLoading,
325
- Ke as default,
326
- Re as vDasLoading
322
+ Ze as DasLoading,
323
+ Re as default,
324
+ De as vDasLoading
327
325
  };
@@ -1,44 +1,44 @@
1
- import { setI18nRule as _, t as v } from "@das-fed/upf-web/packages/i18n/index";
2
- import { withInstall as $ } from "@das-fed/upf-utils/with-install/index";
3
- import { openBlock as i, createElementBlock as d, createStaticVNode as u, createElementVNode as f, defineComponent as y, useAttrs as C, normalizeClass as g, createVNode as z, unref as I, mergeProps as S, withCtx as x, renderSlot as N, h as o, isVNode as l, cloneVNode as m } from "vue";
4
- import { Spin as h } from "ant-design-vue";
1
+ import { setI18nRule as u, t as v } from "@das-fed/upf-web/packages/i18n/index";
2
+ import { withInstall as _ } from "@das-fed/upf-utils/with-install/index";
3
+ import { openBlock as n, createElementBlock as d, createStaticVNode as m, createElementVNode as l, defineComponent as $, ref as C, useAttrs as g, watch as f, h as o, normalizeClass as z, createVNode as S, unref as p, mergeProps as h, withCtx as x, renderSlot as y } from "vue";
4
+ import { Spin as I } from "ant-design-vue";
5
5
  import "ant-design-vue/es/spin/style/css";
6
6
  import { DasIconLoad as L } from "@das-fed/upf-ui/packages/icons/load/index";
7
7
  import "@das-fed/upf-ui/packages/global/theme"
8
8
  import '@das-fed/upf-ui/packages/components/spin/style.css';
9
9
  ;
10
- const p = (s, t) => {
11
- const n = s.__vccOpts || s;
12
- for (const [r, c] of t)
13
- n[r] = c;
14
- return n;
15
- }, V = {}, k = { class: "das-spin-container das-spin-page" };
16
- function w(s, t) {
17
- return i(), d("div", k, [...t[0] || (t[0] = [
18
- u('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
10
+ const r = (a, t) => {
11
+ const i = a.__vccOpts || a;
12
+ for (const [e, s] of t)
13
+ i[e] = s;
14
+ return i;
15
+ }, k = {}, N = { class: "das-spin-container das-spin-page" };
16
+ function B(a, t) {
17
+ return n(), d("div", N, [...t[0] || (t[0] = [
18
+ m('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
19
19
  ])]);
20
20
  }
21
- const A = /* @__PURE__ */ p(V, [["render", w], ["__scopeId", "data-v-323f37a9"]]), B = {}, D = { class: "das-spin-container das-spin-component" };
22
- function E(s, t) {
23
- return i(), d("div", D, [...t[0] || (t[0] = [
24
- f(
21
+ const V = /* @__PURE__ */ r(k, [["render", B], ["__scopeId", "data-v-323f37a9"]]), w = {}, D = { class: "das-spin-container das-spin-component" };
22
+ function E(a, t) {
23
+ return n(), d("div", D, [...t[0] || (t[0] = [
24
+ l(
25
25
  "div",
26
26
  { class: "das-spin-dot-spin" },
27
27
  [
28
- f("i", { class: "das-spin-dot-item" })
28
+ l("i", { class: "das-spin-dot-item" })
29
29
  ],
30
30
  -1
31
31
  /* CACHED */
32
32
  )
33
33
  ])]);
34
34
  }
35
- const O = /* @__PURE__ */ p(B, [["render", E], ["__scopeId", "data-v-f47a1ae6"]]), P = {}, b = { class: "das-spin-container das-spin-containerload" };
36
- function M(s, t) {
37
- return i(), d("div", b, [...t[0] || (t[0] = [
38
- u('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
35
+ const O = /* @__PURE__ */ r(w, [["render", E], ["__scopeId", "data-v-f47a1ae6"]]), P = {}, b = { class: "das-spin-container das-spin-containerload" };
36
+ function A(a, t) {
37
+ return n(), d("div", b, [...t[0] || (t[0] = [
38
+ m('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
39
39
  ])]);
40
40
  }
41
- const R = /* @__PURE__ */ p(P, [["render", M], ["__scopeId", "data-v-f7548f22"]]), j = /* @__PURE__ */ y({
41
+ const M = /* @__PURE__ */ r(P, [["render", A], ["__scopeId", "data-v-f7548f22"]]), R = /* @__PURE__ */ $({
42
42
  __name: "index",
43
43
  props: {
44
44
  type: { default: "page" },
@@ -47,31 +47,35 @@ const R = /* @__PURE__ */ p(P, [["render", M], ["__scopeId", "data-v-f7548f22"]]
47
47
  iconColor: { default: "var(--upf-loading-color-5, var(--upf-color-primary))" },
48
48
  full: { type: Boolean, default: !0 }
49
49
  },
50
- setup(s) {
51
- const t = s, n = C(), r = (a) => Array.isArray(a) ? a.map((e) => l(e) ? m(e) : e) : l(a) ? m(a) : a, c = () => {
52
- if (n.indicator) return r(n.indicator);
53
- if (t.type == "page") return o(A);
54
- if (t.type == "container") return o(R);
55
- if (t.type == "component") return o(O);
56
- if (t.type == "load")
57
- return o(L, {
50
+ setup(a) {
51
+ let t = a, i = C("");
52
+ const e = g();
53
+ return f(
54
+ () => t.type,
55
+ (s, c) => {
56
+ s == "page" && (i.value = o(V)), s == "container" && (i.value = o(M)), s == "component" && (i.value = o(O)), s == "load" && (i.value = o(L, {
58
57
  iconColor: t.iconColor,
59
58
  customSize: t.customSize
60
- });
61
- };
62
- return (a, e) => (i(), d(
59
+ }));
60
+ },
61
+ { immediate: !0 }
62
+ ), f(
63
+ () => e,
64
+ (s, c) => {
65
+ e.indicator && (i.value = e.indicator);
66
+ },
67
+ { immediate: !0 }
68
+ ), (s, c) => (n(), d(
63
69
  "div",
64
70
  {
65
- class: g({ "das-spin-container": !0, full: s.full })
71
+ class: z({ "das-spin-container": !0, full: a.full })
66
72
  },
67
73
  [
68
- z(I(h), S({
69
- class: `das-slef-spin ${s.size} ${s.type} `
70
- }, a.$attrs, {
71
- indicator: c()
72
- }), {
74
+ S(p(I), h({
75
+ class: `das-slef-spin ${a.size} ${a.type} `
76
+ }, s.$attrs, { indicator: p(i) }), {
73
77
  default: x(() => [
74
- N(a.$slots, "default")
78
+ y(s.$slots, "default")
75
79
  ]),
76
80
  _: 3
77
81
  /* FORWARDED */
@@ -81,10 +85,10 @@ const R = /* @__PURE__ */ p(P, [["render", M], ["__scopeId", "data-v-f7548f22"]]
81
85
  /* CLASS */
82
86
  ));
83
87
  }
84
- }), q = { 加载中: { "zh-CN": "加载中", en: "Loading", "zh-MO": "加載中", _appCode: "framework" } };
85
- _(q);
86
- const U = $(j), W = { name: `Spin ${v("加载中")}` };
88
+ }), j = { 加载中: { "zh-CN": "加载中", en: "Loading", "zh-MO": "加載中", _appCode: "framework" } };
89
+ u(j);
90
+ const T = _(R), U = { name: `Spin ${v("加载中")}` };
87
91
  export {
88
- U as DasSpin,
89
- W as default
92
+ T as DasSpin,
93
+ U as default
90
94
  };
@@ -1,28 +1,28 @@
1
- import { defineComponent as $, openBlock as i, createElementBlock as l, createElementVNode as v, renderSlot as x, createTextVNode as J, toDisplayString as V, createStaticVNode as w, useAttrs as W, normalizeClass as U, createVNode as K, unref as T, mergeProps as L, withCtx as g, h as _, isVNode as E, cloneVNode as A, createBlock as z, ref as p, computed as h, watch as N, onMounted as j, onBeforeUnmount as q, normalizeStyle as G, Fragment as D, createCommentVNode as B, createSlots as Q, nextTick as X } from "vue";
2
- import { withInstall as Y } from "@das-fed/upf-utils/with-install/index";
3
- import { ElTreeV2 as Z } from "element-plus";
1
+ import { defineComponent as k, openBlock as d, createElementBlock as f, createElementVNode as v, renderSlot as x, createTextVNode as H, toDisplayString as B, createStaticVNode as A, ref as u, useAttrs as P, watch as h, h as y, normalizeClass as J, createVNode as K, unref as $, mergeProps as L, withCtx as g, createBlock as T, computed as m, onMounted as W, onBeforeUnmount as U, normalizeStyle as j, Fragment as E, createCommentVNode as D, createSlots as q, nextTick as G } from "vue";
2
+ import { withInstall as Q } from "@das-fed/upf-utils/with-install/index";
3
+ import { ElTreeV2 as X } from "element-plus";
4
4
  import "element-plus/es/components/tree-v2/style/css";
5
- import { t as ee, setI18nRule as te } from "@das-fed/upf-web/packages/i18n/index";
6
- import { Spin as ae } from "ant-design-vue";
5
+ import { t as Y, setI18nRule as Z } from "@das-fed/upf-web/packages/i18n/index";
6
+ import { Spin as ee } from "ant-design-vue";
7
7
  import "ant-design-vue/es/spin/style/css";
8
- import { DasIconLoad as ne } from "@das-fed/upf-ui/packages/icons/load/index";
8
+ import { DasIconLoad as te } from "@das-fed/upf-ui/packages/icons/load/index";
9
9
  import "@das-fed/upf-ui/packages/components/icon/index";
10
- import { DasIconCaretRight as se } from "@das-fed/upf-ui/packages/icons/caret-right/index";
11
- import { SizeWatcher as oe } from "@das-fed/upf-utils/size-watcher";
12
- import { flatTree as I } from "@das-fed/upf-utils/common-tools"
10
+ import { DasIconCaretRight as ae } from "@das-fed/upf-ui/packages/icons/caret-right/index";
11
+ import { SizeWatcher as ne } from "@das-fed/upf-utils/size-watcher";
12
+ import { flatTree as z } from "@das-fed/upf-utils/common-tools"
13
13
  import '@das-fed/upf-ui/packages/components/virtual-tree/style.css';
14
14
  ;
15
- const ie = { class: "tree-empty-block" }, re = { class: "tree-empty-text" }, de = /* @__PURE__ */ $({
15
+ const se = { class: "tree-empty-block" }, ie = { class: "tree-empty-text" }, oe = /* @__PURE__ */ k({
16
16
  __name: "empty",
17
17
  props: {
18
18
  emptyText: {}
19
19
  },
20
- setup(a) {
21
- return (t, r) => (i(), l("div", ie, [
22
- v("div", re, [
23
- x(t.$slots, "default", {}, () => [
24
- J(
25
- V(a.emptyText),
20
+ setup(t) {
21
+ return (a, s) => (d(), f("div", se, [
22
+ v("div", ie, [
23
+ x(a.$slots, "default", {}, () => [
24
+ H(
25
+ B(t.emptyText),
26
26
  1
27
27
  /* TEXT */
28
28
  )
@@ -30,20 +30,20 @@ const ie = { class: "tree-empty-block" }, re = { class: "tree-empty-text" }, de
30
30
  ])
31
31
  ]));
32
32
  }
33
- }), y = (a, t) => {
34
- const r = a.__vccOpts || a;
35
- for (const [c, u] of t)
36
- r[c] = u;
37
- return r;
38
- }, le = /* @__PURE__ */ y(de, [["__scopeId", "data-v-507e2bf9"]]), ce = {}, fe = { class: "das-spin-container das-spin-page" };
39
- function ue(a, t) {
40
- return i(), l("div", fe, [...t[0] || (t[0] = [
41
- w('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
33
+ }), _ = (t, a) => {
34
+ const s = t.__vccOpts || t;
35
+ for (const [r, o] of a)
36
+ s[r] = o;
37
+ return s;
38
+ }, le = /* @__PURE__ */ _(oe, [["__scopeId", "data-v-507e2bf9"]]), de = {}, re = { class: "das-spin-container das-spin-page" };
39
+ function ce(t, a) {
40
+ return d(), f("div", re, [...a[0] || (a[0] = [
41
+ A('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
42
42
  ])]);
43
43
  }
44
- const pe = /* @__PURE__ */ y(ce, [["render", ue], ["__scopeId", "data-v-323f37a9"]]), me = {}, he = { class: "das-spin-container das-spin-component" };
45
- function ve(a, t) {
46
- return i(), l("div", he, [...t[0] || (t[0] = [
44
+ const fe = /* @__PURE__ */ _(de, [["render", ce], ["__scopeId", "data-v-323f37a9"]]), ue = {}, pe = { class: "das-spin-container das-spin-component" };
45
+ function me(t, a) {
46
+ return d(), f("div", pe, [...a[0] || (a[0] = [
47
47
  v(
48
48
  "div",
49
49
  { class: "das-spin-dot-spin" },
@@ -55,13 +55,13 @@ function ve(a, t) {
55
55
  )
56
56
  ])]);
57
57
  }
58
- const ye = /* @__PURE__ */ y(me, [["render", ve], ["__scopeId", "data-v-f47a1ae6"]]), _e = {}, ge = { class: "das-spin-container das-spin-containerload" };
59
- function xe(a, t) {
60
- return i(), l("div", ge, [...t[0] || (t[0] = [
61
- w('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
58
+ const he = /* @__PURE__ */ _(ue, [["render", me], ["__scopeId", "data-v-f47a1ae6"]]), ve = {}, _e = { class: "das-spin-container das-spin-containerload" };
59
+ function ye(t, a) {
60
+ return d(), f("div", _e, [...a[0] || (a[0] = [
61
+ A('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
62
62
  ])]);
63
63
  }
64
- const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22"]]), ke = /* @__PURE__ */ $({
64
+ const ge = /* @__PURE__ */ _(ve, [["render", ye], ["__scopeId", "data-v-f7548f22"]]), xe = /* @__PURE__ */ k({
65
65
  __name: "index",
66
66
  props: {
67
67
  type: { default: "page" },
@@ -70,31 +70,35 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
70
70
  iconColor: { default: "var(--upf-loading-color-5, var(--upf-color-primary))" },
71
71
  full: { type: Boolean, default: !0 }
72
72
  },
73
- setup(a) {
74
- const t = a, r = W(), c = (e) => Array.isArray(e) ? e.map((f) => E(f) ? A(f) : f) : E(e) ? A(e) : e, u = () => {
75
- if (r.indicator) return c(r.indicator);
76
- if (t.type == "page") return _(pe);
77
- if (t.type == "container") return _($e);
78
- if (t.type == "component") return _(ye);
79
- if (t.type == "load")
80
- return _(ne, {
81
- iconColor: t.iconColor,
82
- customSize: t.customSize
83
- });
84
- };
85
- return (e, f) => (i(), l(
73
+ setup(t) {
74
+ let a = t, s = u("");
75
+ const r = P();
76
+ return h(
77
+ () => a.type,
78
+ (o, e) => {
79
+ o == "page" && (s.value = y(fe)), o == "container" && (s.value = y(ge)), o == "component" && (s.value = y(he)), o == "load" && (s.value = y(te, {
80
+ iconColor: a.iconColor,
81
+ customSize: a.customSize
82
+ }));
83
+ },
84
+ { immediate: !0 }
85
+ ), h(
86
+ () => r,
87
+ (o, e) => {
88
+ r.indicator && (s.value = r.indicator);
89
+ },
90
+ { immediate: !0 }
91
+ ), (o, e) => (d(), f(
86
92
  "div",
87
93
  {
88
- class: U({ "das-spin-container": !0, full: a.full })
94
+ class: J({ "das-spin-container": !0, full: t.full })
89
95
  },
90
96
  [
91
- K(T(ae), L({
92
- class: `das-slef-spin ${a.size} ${a.type} `
93
- }, e.$attrs, {
94
- indicator: u()
95
- }), {
97
+ K($(ee), L({
98
+ class: `das-slef-spin ${t.size} ${t.type} `
99
+ }, o.$attrs, { indicator: $(s) }), {
96
100
  default: g(() => [
97
- x(e.$slots, "default")
101
+ x(o.$slots, "default")
98
102
  ]),
99
103
  _: 3
100
104
  /* FORWARDED */
@@ -104,15 +108,15 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
104
108
  /* CLASS */
105
109
  ));
106
110
  }
107
- }), Ce = /* @__PURE__ */ $({
111
+ }), $e = /* @__PURE__ */ k({
108
112
  __name: "expand-icon",
109
- setup(a) {
110
- return (t, r) => (i(), z(T(se), {
113
+ setup(t) {
114
+ return (a, s) => (d(), T($(ae), {
111
115
  class: "das-tree__expand-icon",
112
116
  size: "medium"
113
117
  }));
114
118
  }
115
- }), Ne = /* @__PURE__ */ y(Ce, [["__scopeId", "data-v-e225c8a8"]]), Ie = { class: "tree-normal-node" }, ze = /* @__PURE__ */ $({
119
+ }), ke = /* @__PURE__ */ _($e, [["__scopeId", "data-v-e225c8a8"]]), Ce = { class: "tree-normal-node" }, Ne = /* @__PURE__ */ k({
116
120
  name: "DasVirtualTree",
117
121
  inheritAttrs: !1,
118
122
  __name: "App",
@@ -129,90 +133,90 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
129
133
  emptyText: { default: "" },
130
134
  filterMethod: {}
131
135
  },
132
- setup(a, { expose: t }) {
133
- const r = p(), c = p(), u = p(0), e = a, f = h(() => e.emptyText || ee("暂无数据")), d = h(() => ({ label: "name", children: "children", disabled: "disabled", ...e.props, value: e.nodeKey })), O = h(() => e != null && e.height ? e.height + "px" : "100%"), R = h(() => e != null && e.height ? e.height : u.value), M = (n, o) => o[d.value.label].toLowerCase().includes(n.toLowerCase()), F = h(() => (e == null ? void 0 : e.filterMethod) ?? M), S = () => {
136
+ setup(t, { expose: a }) {
137
+ const s = u(), r = u(), o = u(0), e = t, I = m(() => e.emptyText || Y("暂无数据")), c = m(() => ({ label: "name", children: "children", disabled: "disabled", ...e.props, value: e.nodeKey })), O = m(() => e != null && e.height ? e.height + "px" : "100%"), R = m(() => e != null && e.height ? e.height : o.value), V = (n, l) => l[c.value.label].toLowerCase().includes(n.toLowerCase()), M = m(() => (e == null ? void 0 : e.filterMethod) ?? V), S = () => {
134
138
  if (e.data && e.data.length) {
135
- const o = I(e.data, d.value.children, !1).filter((s) => s[d.value.children] && s[d.value.children].length).map((s) => s[e.nodeKey]);
136
- X(() => {
137
- var s;
138
- (s = c.value) == null || s.setExpandedKeys(o);
139
+ const l = z(e.data, c.value.children, !1).filter((i) => i[c.value.children] && i[c.value.children].length).map((i) => i[e.nodeKey]);
140
+ G(() => {
141
+ var i;
142
+ (i = r.value) == null || i.setExpandedKeys(l);
139
143
  });
140
144
  }
141
145
  };
142
- N(
146
+ h(
143
147
  () => e.defaultExpandAll,
144
148
  (n) => {
145
149
  n && S();
146
150
  },
147
151
  { immediate: !0 }
148
- ), N(
152
+ ), h(
149
153
  () => e.data,
150
- (n, o) => {
154
+ (n, l) => {
151
155
  if (!e.defaultExpandAll) return;
152
- const s = n && n.length ? n : [], m = o && o.length ? o : [], H = I(s).map((C) => C[e.nodeKey]), P = I(m).map((C) => C[e.nodeKey]);
153
- m.length && JSON.stringify(H) === JSON.stringify(P) || S();
156
+ const i = n && n.length ? n : [], p = l && l.length ? l : [], w = z(i).map((N) => N[e.nodeKey]), F = z(p).map((N) => N[e.nodeKey]);
157
+ p.length && JSON.stringify(w) === JSON.stringify(F) || S();
154
158
  }
155
159
  );
156
- const k = p(!1);
157
- N(
160
+ const C = u(!1);
161
+ h(
158
162
  () => e.data,
159
163
  (n) => {
160
164
  if (n && n.length) {
161
- const o = n.find(
162
- (s) => s[d.value.children] && s[d.value.children].length
165
+ const l = n.find(
166
+ (i) => i[c.value.children] && i[c.value.children].length
163
167
  );
164
- k.value = !o;
168
+ C.value = !l;
165
169
  } else
166
- k.value = !1;
170
+ C.value = !1;
167
171
  },
168
172
  { immediate: !0, deep: !0 }
169
173
  );
170
- const b = p();
171
- return j(() => {
172
- b.value = oe(
174
+ const b = u();
175
+ return W(() => {
176
+ b.value = ne(
173
177
  (n) => {
174
- u.value = n.height;
178
+ o.value = n.height;
175
179
  },
176
- r.value.parentElement
180
+ s.value.parentElement
177
181
  );
178
- }), q(() => {
182
+ }), U(() => {
179
183
  b.value.disconnect();
180
- }), t({
181
- treeRef: c
182
- }), (n, o) => (i(), l(
184
+ }), a({
185
+ treeRef: r
186
+ }), (n, l) => (d(), f(
183
187
  "div",
184
188
  {
185
189
  ref_key: "cotainerRef",
186
- ref: r,
190
+ ref: s,
187
191
  class: "das-ui-tree das-ui-virtual-tree",
188
- style: G({ height: O.value })
192
+ style: j({ height: O.value })
189
193
  },
190
194
  [
191
- a.data && a.data.length ? (i(), z(T(Z), L({
195
+ t.data && t.data.length ? (d(), T($(X), L({
192
196
  key: 0,
193
197
  ref_key: "treeRef",
194
- ref: c,
195
- data: a.data,
196
- class: { "is-root-all-left": k.value },
197
- icon: Ne,
198
- props: d.value,
198
+ ref: r,
199
+ data: t.data,
200
+ class: { "is-root-all-left": C.value },
201
+ icon: ke,
202
+ props: c.value,
199
203
  "show-checkbox": !1,
200
- "expand-on-click-node": a.expandOnClickNode,
204
+ "expand-on-click-node": t.expandOnClickNode,
201
205
  height: R.value,
202
206
  "item-size": 32,
203
207
  "default-expand-all": "",
204
- "filter-method": F.value,
205
- "empty-text": f.value
208
+ "filter-method": M.value,
209
+ "empty-text": I.value
206
210
  }, n.$attrs), {
207
- default: g(({ node: s, data: m }) => [
211
+ default: g(({ node: i, data: p }) => [
208
212
  x(n.$slots, "default", {
209
- node: s,
210
- data: m
213
+ node: i,
214
+ data: p
211
215
  }, () => [
212
216
  v(
213
217
  "div",
214
- Ie,
215
- V(m[d.value.label]),
218
+ Ce,
219
+ B(p[c.value.label]),
216
220
  1
217
221
  /* TEXT */
218
222
  )
@@ -220,21 +224,21 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
220
224
  ]),
221
225
  _: 3
222
226
  /* FORWARDED */
223
- }, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (i(), l(
224
- D,
227
+ }, 16, ["data", "class", "props", "expand-on-click-node", "height", "filter-method", "empty-text"])) : (d(), f(
228
+ E,
225
229
  { key: 1 },
226
230
  [
227
- B(" 空状态 "),
228
- a.loading ? (i(), l(
229
- D,
231
+ D(" 空状态 "),
232
+ t.loading ? (d(), f(
233
+ E,
230
234
  { key: 1 },
231
235
  [
232
- B(" 加载状态 "),
233
- K(ke, {
236
+ D(" 加载状态 "),
237
+ K(xe, {
234
238
  size: "small",
235
- spinning: a.loading
239
+ spinning: t.loading
236
240
  }, {
237
- default: g(() => [...o[0] || (o[0] = [
241
+ default: g(() => [...l[0] || (l[0] = [
238
242
  v(
239
243
  "div",
240
244
  { style: { width: "100%", height: "100%" } },
@@ -249,10 +253,10 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
249
253
  ],
250
254
  2112
251
255
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
252
- )) : (i(), z(le, {
256
+ )) : (d(), T(le, {
253
257
  key: 0,
254
- "empty-text": f.value
255
- }, Q({
258
+ "empty-text": I.value
259
+ }, q({
256
260
  _: 2
257
261
  /* DYNAMIC */
258
262
  }, [
@@ -273,11 +277,11 @@ const $e = /* @__PURE__ */ y(_e, [["render", xe], ["__scopeId", "data-v-f7548f22
273
277
  /* STYLE */
274
278
  ));
275
279
  }
276
- }), Te = { 暂无数据: { "zh-CN": "暂无数据", en: "No Data", "zh-MO": "暫無數據", _appCode: "framework" } };
277
- te(Te);
278
- const Me = Y(ze), Fe = () => p(null), He = { title: "virtual-tree 虚拟树" };
280
+ }), ze = { 暂无数据: { "zh-CN": "暂无数据", en: "No Data", "zh-MO": "暫無數據", _appCode: "framework" } };
281
+ Z(ze);
282
+ const Ve = Q(Ne), Me = () => u(null), we = { title: "virtual-tree 虚拟树" };
279
283
  export {
280
- Me as DasVirtualTree,
281
- Fe as DasVirtualTreeRef,
282
- He as default
284
+ Ve as DasVirtualTree,
285
+ Me as DasVirtualTreeRef,
286
+ we as default
283
287
  };