@das-fed/ui 6.4.0-dev.55.24 → 6.4.0-dev.55.25

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.
@@ -16,6 +16,7 @@ export declare const useValidator: (props: Props, tableConfig: Ref, tableData: R
16
16
  removeErrorByRowKey: (id: string | string[] | number | number[]) => void;
17
17
  validateByRowKey: (id: string | string[] | number | number[], callback?: (result: any) => void) => void;
18
18
  validateAll: (callback?: (valid: boolean, errFiedList: any[]) => void) => void;
19
+ deactivateAll: () => void;
19
20
  clearValidate: () => void;
20
21
  changeRules: (key: string, callback?: (rule: any, checkFn: any) => void) => void;
21
22
  removeCellError: (row: any, prop?: string) => void;
@@ -1,6 +1,4 @@
1
1
  import { FormType } from './type';
2
- /** 鼠标是否在元素内 */
3
- export declare const isMouseInsideElement: (element: any, event: any) => boolean;
4
2
  /** 获取元素类型 */
5
3
  export declare const getMode: (config: any, row: any, column: any, $index: number) => any;
6
4
  /**
@@ -5,7 +5,7 @@ import { ElAutocomplete as Pe, ElLoadingDirective as ke } from "element-plus/es"
5
5
  import "element-plus/es/components/base/style/css";
6
6
  import "element-plus/es/components/loading/style/css";
7
7
  import "element-plus/es/components/autocomplete/style/css";
8
- import { t as E, setI18nRule as na } from "@das-fed/web/packages/i18n/index";
8
+ import { t as P, setI18nRule as na } from "@das-fed/web/packages/i18n/index";
9
9
  import { vDasTooltip as Re } from "@das-fed/ui/packages/components/text-tooltip/index";
10
10
  import { DasMessage as z } from "@das-fed/ui/packages/components/message/index";
11
11
  import { createService as ct } from "@das-fed/utils/create-api-service";
@@ -38,7 +38,7 @@ const Q = (e) => {
38
38
  ...p
39
39
  });
40
40
  } catch {
41
- r.value = !1, z.error(E("thirdPartyMapErrorRetry"));
41
+ r.value = !1, z.error(P("thirdPartyMapErrorRetry"));
42
42
  }
43
43
  AMap.plugin(["AMap.ToolBar"], () => {
44
44
  t.value.addControl(
@@ -94,7 +94,7 @@ const Q = (e) => {
94
94
  }
95
95
  s.value = ((m = (x = y.regeocode) == null ? void 0 : x.addressComponent) == null ? void 0 : m.adcode) ?? "", w(y.regeocode);
96
96
  } else
97
- z.error(E("thirdPartyMapErrorRetry")), j();
97
+ z.error(P("thirdPartyMapErrorRetry")), j();
98
98
  });
99
99
  });
100
100
  });
@@ -108,7 +108,7 @@ const Q = (e) => {
108
108
  const x = d.geocodes[0].location;
109
109
  o.value[0] = x.lng, o.value[1] = x.lat, s.value = ((y = d.geocodes[0]) == null ? void 0 : y.adcode) ?? "", g(d.geocodes[0].location);
110
110
  } else
111
- z.error(E("thirdPartyMapErrorRetry")), p();
111
+ z.error(P("thirdPartyMapErrorRetry")), p();
112
112
  });
113
113
  });
114
114
  }), R = () => {
@@ -119,7 +119,7 @@ const Q = (e) => {
119
119
  t.value.setBounds(w);
120
120
  }
121
121
  } else
122
- z.error(E("thirdPartyMapErrorRetry"));
122
+ z.error(P("thirdPartyMapErrorRetry"));
123
123
  });
124
124
  }, _ = (T, g) => {
125
125
  if (u.value.activated = !0, !T) {
@@ -162,9 +162,9 @@ const Q = (e) => {
162
162
  },
163
163
  getLocationParse: async () => {
164
164
  var T;
165
- if (!l.value.length) return z.error(E("thirdPartyMapErrorRetry"));
165
+ if (!l.value.length) return z.error(P("thirdPartyMapErrorRetry"));
166
166
  if (n.value = l.value[0].value, !((T = l.value[0]) != null && T.point))
167
- return z.error(E("thirdPartyMapErrorRetry"));
167
+ return z.error(P("thirdPartyMapErrorRetry"));
168
168
  o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, await h(o.value), a.value = new AMap.Marker({
169
169
  position: o.value,
170
170
  title: n.value
@@ -237,7 +237,7 @@ const Q = (e) => {
237
237
  };
238
238
  {
239
239
  const [$, G] = await Ge("gaode");
240
- $ && z.error(E("获取地图配置信息失败")), !$ && !G && z.error(E("暂未配置地图")), G && (_.akValue || (_.akValue = G.akVal), _.secretKey || (_.secretKey = G.secretK));
240
+ $ && z.error(P("获取地图配置信息失败")), !$ && !G && z.error(P("暂未配置地图")), G && (_.akValue || (_.akValue = G.akVal), _.secretKey || (_.secretKey = G.secretK));
241
241
  }
242
242
  return _;
243
243
  };
@@ -265,7 +265,7 @@ const Q = (e) => {
265
265
  "onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
266
266
  modelModifiers: { trim: !0 },
267
267
  "fetch-suggestions": D(L),
268
- placeholder: D(E)("请输入位置"),
268
+ placeholder: D(P)("请输入位置"),
269
269
  style: { width: "100%" },
270
270
  "trigger-on-focus": !1,
271
271
  onSelect: D(c),
@@ -315,7 +315,7 @@ const Q = (e) => {
315
315
  try {
316
316
  t.value = new e.value.Map("map", ((p = C.value) == null ? void 0 : p.mapOpt) ?? {});
317
317
  } catch {
318
- r.value = !1, z.error(E("thirdPartyMapErrorRetry"));
318
+ r.value = !1, z.error(P("thirdPartyMapErrorRetry"));
319
319
  }
320
320
  const g = new e.value.NavigationControl({
321
321
  // @ts-ignore
@@ -326,7 +326,7 @@ const Q = (e) => {
326
326
  t.value.addControl(g), t.value.enableScrollWheelZoom(!0), i(), (w = C.value) != null && w.clickStream || h(), r.value = !1, M && M();
327
327
  }, c = (g) => new Promise((p, w) => {
328
328
  new e.value.Geocoder().getPoint(g, (d) => {
329
- !d || JSON.stringify(d) == "{}" ? (z.error(E("thirdPartyMapErrorRetry")), w()) : (o.value[0] = d.lng, o.value[1] = d.lat, p(d));
329
+ !d || JSON.stringify(d) == "{}" ? (z.error(P("thirdPartyMapErrorRetry")), w()) : (o.value[0] = d.lng, o.value[1] = d.lat, p(d));
330
330
  });
331
331
  }), i = async () => {
332
332
  !n.value && !o.value.length && R(), n.value && o.value.length > 0 ? await A(o.value[0], o.value[1]) : n.value ? await c(n.value) : o.value.length > 0 && await A(o.value[0], o.value[1], !0), n.value && _(n.value, (g, p) => {
@@ -361,12 +361,12 @@ const Q = (e) => {
361
361
  name: m.address.replace(O, "").replace(N, "").replace(B, "")
362
362
  };
363
363
  }
364
- m && m.address ? (j == "default" && (o.value[0] = m.point.lng, o.value[1] = m.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(x, { title: n.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(x, 16)), U(g, p), d(m.address)) : (z.error(E("thirdPartyMapErrorRetry")), f());
364
+ m && m.address ? (j == "default" && (o.value[0] = m.point.lng, o.value[1] = m.point.lat, a.value && t.value.clearOverlays(), a.value = new e.value.Marker(x, { title: n.value }), t.value.addOverlay(a.value), t.value.centerAndZoom(x, 16)), U(g, p), d(m.address)) : (z.error(P("thirdPartyMapErrorRetry")), f());
365
365
  });
366
366
  }), R = () => {
367
367
  new e.value.LocalCity().get((p) => {
368
368
  const w = p.center;
369
- if (!p.center) return z.error(E("thirdPartyMapErrorRetry"));
369
+ if (!p.center) return z.error(P("thirdPartyMapErrorRetry"));
370
370
  a.value && t.value.clearOverlays();
371
371
  const j = new e.value.Point(w.lng, w.lat);
372
372
  t.value.centerAndZoom(j, 13);
@@ -402,9 +402,9 @@ const Q = (e) => {
402
402
  n.value = g.value, v.value = g.info, A((p = g.point) == null ? void 0 : p.lng, (w = g.point) == null ? void 0 : w.lat);
403
403
  }, G = () => {
404
404
  var g;
405
- if (!l.value.length) return z.error(E("thirdPartyMapErrorRetry"));
405
+ if (!l.value.length) return z.error(P("thirdPartyMapErrorRetry"));
406
406
  if (n.value = l.value[0].value, v.value = l.value[0].info, !((g = l.value[0]) != null && g.point))
407
- return z.error(E("thirdPartyMapErrorRetry"));
407
+ return z.error(P("thirdPartyMapErrorRetry"));
408
408
  o.value = [l.value[0].point.lng, l.value[0].point.lat], A(o.value[0], o.value[1]), u.value.activated = !1;
409
409
  }, U = async (g, p) => {
410
410
  const [w, j] = await ca().run({ longitude: g, latitude: p });
@@ -455,7 +455,7 @@ const Q = (e) => {
455
455
  ), R = async () => {
456
456
  if (a.akValue) return a.akValue;
457
457
  const [_, $] = await Ge("baidu");
458
- return _ ? (z.error(E("获取地图配置信息失败")), "") : !_ && !$ ? (z.error(E("暂未配置地图")), "") : $.akVal;
458
+ return _ ? (z.error(P("获取地图配置信息失败")), "") : !_ && !$ ? (z.error(P("暂未配置地图")), "") : $.akVal;
459
459
  };
460
460
  return Oe(async () => {
461
461
  a.defaultLongitude && a.defaultLatitude && (C.value = [a.defaultLongitude, a.defaultLatitude]), b.value = a.defaultAddress ?? "";
@@ -481,7 +481,7 @@ const Q = (e) => {
481
481
  "onUpdate:modelValue": $[0] || ($[0] = (T) => b.value = T),
482
482
  modelModifiers: { trim: !0 },
483
483
  "fetch-suggestions": D(L),
484
- placeholder: D(E)("请输入位置"),
484
+ placeholder: D(P)("请输入位置"),
485
485
  style: { width: "100%" },
486
486
  "trigger-on-focus": !1,
487
487
  onSelect: D(c),
@@ -843,11 +843,11 @@ function Ho(e) {
843
843
  var a = Ko.call(t, "constructor") && t.constructor;
844
844
  return typeof a == "function" && a instanceof a && xt.call(a) == Io;
845
845
  }
846
- var Jo = "[object Arguments]", Zo = "[object Array]", Wo = "[object Boolean]", qo = "[object Date]", Yo = "[object Error]", Xo = "[object Function]", Qo = "[object Map]", er = "[object Number]", tr = "[object Object]", ar = "[object RegExp]", or = "[object Set]", rr = "[object String]", nr = "[object WeakMap]", lr = "[object ArrayBuffer]", ur = "[object DataView]", ir = "[object Float32Array]", cr = "[object Float64Array]", sr = "[object Int8Array]", dr = "[object Int16Array]", fr = "[object Int32Array]", vr = "[object Uint8Array]", gr = "[object Uint8ClampedArray]", pr = "[object Uint16Array]", hr = "[object Uint32Array]", P = {};
847
- P[ir] = P[cr] = P[sr] = P[dr] = P[fr] = P[vr] = P[gr] = P[pr] = P[hr] = !0;
848
- P[Jo] = P[Zo] = P[lr] = P[Wo] = P[ur] = P[qo] = P[Yo] = P[Xo] = P[Qo] = P[er] = P[tr] = P[ar] = P[or] = P[rr] = P[nr] = !1;
846
+ var Jo = "[object Arguments]", Zo = "[object Array]", Wo = "[object Boolean]", qo = "[object Date]", Yo = "[object Error]", Xo = "[object Function]", Qo = "[object Map]", er = "[object Number]", tr = "[object Object]", ar = "[object RegExp]", or = "[object Set]", rr = "[object String]", nr = "[object WeakMap]", lr = "[object ArrayBuffer]", ur = "[object DataView]", ir = "[object Float32Array]", cr = "[object Float64Array]", sr = "[object Int8Array]", dr = "[object Int16Array]", fr = "[object Int32Array]", vr = "[object Uint8Array]", gr = "[object Uint8ClampedArray]", pr = "[object Uint16Array]", hr = "[object Uint32Array]", E = {};
847
+ E[ir] = E[cr] = E[sr] = E[dr] = E[fr] = E[vr] = E[gr] = E[pr] = E[hr] = !0;
848
+ E[Jo] = E[Zo] = E[lr] = E[Wo] = E[ur] = E[qo] = E[Yo] = E[Xo] = E[Qo] = E[er] = E[tr] = E[ar] = E[or] = E[rr] = E[nr] = !1;
849
849
  function yr(e) {
850
- return re(e) && _t(e.length) && !!P[se(e)];
850
+ return re(e) && _t(e.length) && !!E[se(e)];
851
851
  }
852
852
  function mr(e) {
853
853
  return function(t) {
@@ -1532,13 +1532,13 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1532
1532
  district: "",
1533
1533
  address: "",
1534
1534
  name: n.value
1535
- }), y(O[0])) : (z.error(E("thirdPartyMapErrorRetry")), x());
1535
+ }), y(O[0])) : (z.error(P("thirdPartyMapErrorRetry")), x());
1536
1536
  });
1537
1537
  })), U = (d) => new Promise((f, y) => {
1538
1538
  new google.maps.Geocoder().geocode({
1539
1539
  address: n.value
1540
1540
  }, (m, O) => {
1541
- O === "OK" && (m != null && m.length) ? (o.value[0] = m[0].geometry.location.lng(), o.value[1] = m[0].geometry.location.lat(), f({ lng: o.value[0], lat: o.value[1] })) : (z.error(E("thirdPartyMapErrorRetry")), y());
1541
+ O === "OK" && (m != null && m.length) ? (o.value[0] = m[0].geometry.location.lng(), o.value[1] = m[0].geometry.location.lat(), f({ lng: o.value[0], lat: o.value[1] })) : (z.error(P("thirdPartyMapErrorRetry")), y());
1542
1542
  });
1543
1543
  }), T = async () => {
1544
1544
  var d;
@@ -1550,14 +1550,14 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1550
1550
  };
1551
1551
  (x = t.value) == null || x.panTo(y), c.value = !1, r.value = !1;
1552
1552
  }, (f) => {
1553
- z.error(E("获取定位失败")), r.value = !1;
1553
+ z.error(P("获取定位失败")), r.value = !1;
1554
1554
  }, {
1555
1555
  // enableHighAccuracy: true,
1556
1556
  // timeout: 5000,
1557
1557
  // maximumAge: 0,
1558
1558
  // enableHighAccuracy: true
1559
1559
  enableHighAccuracy: !0,
1560
- timeout: 5e3
1560
+ timeout: 1e4
1561
1561
  }));
1562
1562
  }, g = async (d, f) => {
1563
1563
  if (u.value.activated = !0, !d) {
@@ -1610,15 +1610,16 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1610
1610
  },
1611
1611
  getLocationParse: async () => {
1612
1612
  var d, f;
1613
- if (!l.value.length) return z.error(E("thirdPartyMapErrorRetry"));
1614
- if (n.value = l.value[0].value, !((d = l.value[0]) != null && d.point))
1615
- return z.error(E("thirdPartyMapErrorRetry"));
1616
- o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new L({
1617
- map: t.value,
1618
- position: l.value[0].point,
1619
- title: n.value
1620
- // 鼠标移上去时显示的内容
1621
- }), (f = t.value) == null || f.panTo(l.value[0].point), c.value = !1, u.value.activated = !1;
1613
+ if (l.value.length) {
1614
+ if (n.value = l.value[0].value, !((d = l.value[0]) != null && d.point))
1615
+ return z.error(P("thirdPartyMapErrorRetry"));
1616
+ o.value = [l.value[0].point.lng, l.value[0].point.lat], v.value = l.value[0].info, a.value = new L({
1617
+ map: t.value,
1618
+ position: l.value[0].point,
1619
+ title: n.value
1620
+ // 鼠标移上去时显示的内容
1621
+ }), (f = t.value) == null || f.panTo(l.value[0].point), c.value = !1, u.value.activated = !1;
1622
+ }
1622
1623
  },
1623
1624
  getMapInfo: () => ({
1624
1625
  longitude: o.value[0],
@@ -1712,7 +1713,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1712
1713
  return;
1713
1714
  }
1714
1715
  if (!F && !J) {
1715
- t("no-config-map", E("暂未配置地图")), s.value = !1;
1716
+ t("no-config-map", P("暂未配置地图")), s.value = !1;
1716
1717
  return;
1717
1718
  }
1718
1719
  return J;
@@ -1799,7 +1800,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1799
1800
  "onUpdate:modelValue": L[0] || (L[0] = (h) => ta(l) ? l.value = h : null),
1800
1801
  modelModifiers: { trim: !0 },
1801
1802
  "fetch-suggestions": D(n),
1802
- placeholder: D(E)("请输入位置"),
1803
+ placeholder: D(P)("请输入位置"),
1803
1804
  style: { width: "100%" },
1804
1805
  "trigger-on-focus": !1,
1805
1806
  onSelect: D(o),
@@ -1825,7 +1826,7 @@ const it = /* @__PURE__ */ Object.assign({ "./add-custom-dom/index.ts": Yr, "./g
1825
1826
  }, {
1826
1827
  default: aa(() => [
1827
1828
  oa(
1828
- ra(D(E)("Please-Click-Get-Location")),
1829
+ ra(D(P)("Please-Click-Get-Location")),
1829
1830
  1
1830
1831
  /* TEXT */
1831
1832
  )
Binary file
@@ -1,5 +1,5 @@
1
1
  import '@das-fed/ui/packages/components/tree-select/style.css';
2
- import { ref as N, computed as m, watch as ie, nextTick as q, unref as o, onMounted as De, onUpdated as je, onBeforeUnmount as xe, defineComponent as Le, useAttrs as Ne, withDirectives as ve, openBlock as se, createElementBlock as ue, normalizeClass as Pe, normalizeStyle as pe, createCommentVNode as Oe, createVNode as X, withCtx as B, withModifiers as de, mergeProps as he, isRef as ce, createTextVNode as Ve, toDisplayString as Re, createElementVNode as Me, createSlots as Ee, renderSlot as G } from "vue";
2
+ import { ref as N, computed as m, watch as fe, nextTick as q, unref as o, onMounted as je, onUpdated as De, onBeforeUnmount as xe, defineComponent as Le, useAttrs as Ne, withDirectives as ve, openBlock as ie, createElementBlock as se, normalizeClass as Pe, normalizeStyle as pe, createCommentVNode as Oe, createVNode as X, withCtx as B, withModifiers as ue, mergeProps as he, isRef as de, createTextVNode as Ve, toDisplayString as Re, createElementVNode as Me, createSlots as Ee, renderSlot as G } from "vue";
3
3
  import { withInstall as Be } from "@das-fed/utils/with-install/index";
4
4
  import { ElPopover as We } from "element-plus";
5
5
  import "element-plus/es/components/popover/style/css";
@@ -20,7 +20,7 @@ function Qe(e) {
20
20
  var i = typeof e;
21
21
  return e != null && (i == "object" || i == "function");
22
22
  }
23
- var Se = Qe, Ye = typeof J == "object" && J && J.Object === Object && J, Ze = Ye, Ke = Ze, et = typeof self == "object" && self && self.Object === Object && self, tt = Ke || et || Function("return this")(), we = tt, rt = we, lt = function() {
23
+ var Se = Qe, Ye = typeof J == "object" && J && J.Object === Object && J, Ze = Ye, Ke = Ze, et = typeof self == "object" && self && self.Object === Object && self, tt = Ke || et || Function("return this")(), Ce = tt, rt = Ce, lt = function() {
24
24
  return rt.Date.now();
25
25
  }, at = lt, ot = /\s/;
26
26
  function nt(e) {
@@ -32,7 +32,7 @@ var it = nt, st = it, ut = /^\s+/;
32
32
  function dt(e) {
33
33
  return e && e.slice(0, st(e) + 1).replace(ut, "");
34
34
  }
35
- var ct = dt, ft = we, vt = ft.Symbol, Ce = vt, me = Ce, $e = Object.prototype, pt = $e.hasOwnProperty, ht = $e.toString, H = me ? me.toStringTag : void 0;
35
+ var ct = dt, ft = Ce, vt = ft.Symbol, we = vt, me = we, $e = Object.prototype, pt = $e.hasOwnProperty, ht = $e.toString, H = me ? me.toStringTag : void 0;
36
36
  function mt(e) {
37
37
  var i = pt.call(e, H), c = e[H];
38
38
  try {
@@ -47,15 +47,15 @@ var bt = mt, yt = Object.prototype, gt = yt.toString;
47
47
  function kt(e) {
48
48
  return gt.call(e);
49
49
  }
50
- var Tt = kt, be = Ce, St = bt, wt = Tt, Ct = "[object Null]", $t = "[object Undefined]", ye = be ? be.toStringTag : void 0;
51
- function Dt(e) {
52
- return e == null ? e === void 0 ? $t : Ct : ye && ye in Object(e) ? St(e) : wt(e);
50
+ var Tt = kt, be = we, St = bt, Ct = Tt, wt = "[object Null]", $t = "[object Undefined]", ye = be ? be.toStringTag : void 0;
51
+ function jt(e) {
52
+ return e == null ? e === void 0 ? $t : wt : ye && ye in Object(e) ? St(e) : Ct(e);
53
53
  }
54
- var jt = Dt;
54
+ var Dt = jt;
55
55
  function xt(e) {
56
56
  return e != null && typeof e == "object";
57
57
  }
58
- var Lt = xt, Nt = jt, Pt = Lt, Ot = "[object Symbol]";
58
+ var Lt = xt, Nt = Dt, Pt = Lt, Ot = "[object Symbol]";
59
59
  function Vt(e) {
60
60
  return typeof e == "symbol" || Pt(e) && Nt(e) == Ot;
61
61
  }
@@ -75,29 +75,29 @@ function At(e) {
75
75
  var c = Wt.test(e);
76
76
  return c || Ft.test(e) ? It(e.slice(2), c ? 2 : 8) : Bt.test(e) ? ke : +e;
77
77
  }
78
- var Gt = At, Ht = Se, fe = at, Te = Gt, zt = "Expected a function", Ut = Math.max, _t = Math.min;
78
+ var Gt = At, Ht = Se, ce = at, Te = Gt, zt = "Expected a function", Ut = Math.max, _t = Math.min;
79
79
  function qt(e, i, c) {
80
- var d, b, $, y, p, f, L = 0, C = !1, T = !1, V = !0;
80
+ var d, b, w, y, p, f, L = 0, $ = !1, T = !1, V = !0;
81
81
  if (typeof e != "function")
82
82
  throw new TypeError(zt);
83
- i = Te(i) || 0, Ht(c) && (C = !!c.leading, T = "maxWait" in c, $ = T ? Ut(Te(c.maxWait) || 0, i) : $, V = "trailing" in c ? !!c.trailing : V);
83
+ i = Te(i) || 0, Ht(c) && ($ = !!c.leading, T = "maxWait" in c, w = T ? Ut(Te(c.maxWait) || 0, i) : w, V = "trailing" in c ? !!c.trailing : V);
84
84
  function h(u) {
85
85
  var x = d, O = b;
86
86
  return d = b = void 0, L = u, y = e.apply(O, x), y;
87
87
  }
88
88
  function g(u) {
89
- return L = u, p = setTimeout(M, i), C ? h(u) : y;
89
+ return L = u, p = setTimeout(M, i), $ ? h(u) : y;
90
90
  }
91
91
  function s(u) {
92
92
  var x = u - f, O = u - L, I = i - x;
93
- return T ? _t(I, $ - O) : I;
93
+ return T ? _t(I, w - O) : I;
94
94
  }
95
95
  function R(u) {
96
96
  var x = u - f, O = u - L;
97
- return f === void 0 || x >= i || x < 0 || T && O >= $;
97
+ return f === void 0 || x >= i || x < 0 || T && O >= w;
98
98
  }
99
99
  function M() {
100
- var u = fe();
100
+ var u = ce();
101
101
  if (R(u))
102
102
  return E(u);
103
103
  p = setTimeout(M, s(u));
@@ -105,14 +105,14 @@ function qt(e, i, c) {
105
105
  function E(u) {
106
106
  return p = void 0, V && d ? h(u) : (d = b = void 0, y);
107
107
  }
108
- function D() {
108
+ function j() {
109
109
  p !== void 0 && clearTimeout(p), L = 0, d = f = b = p = void 0;
110
110
  }
111
111
  function k() {
112
- return p === void 0 ? y : E(fe());
112
+ return p === void 0 ? y : E(ce());
113
113
  }
114
- function j() {
115
- var u = fe(), x = R(u);
114
+ function D() {
115
+ var u = ce(), x = R(u);
116
116
  if (d = arguments, b = this, f = u, x) {
117
117
  if (p === void 0)
118
118
  return g(f);
@@ -121,11 +121,11 @@ function qt(e, i, c) {
121
121
  }
122
122
  return p === void 0 && (p = setTimeout(M, i)), y;
123
123
  }
124
- return j.cancel = D, j.flush = k, j;
124
+ return D.cancel = j, D.flush = k, D;
125
125
  }
126
126
  var Xt = qt;
127
- const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), Q = (e) => typeof e == "string" && Qt(e) ? e : e + "px", Yt = (e, i, c, d, b, $) => {
128
- const y = N(null), p = N(null), f = Ae(), L = N(), C = N(!1), T = N(""), V = N(""), h = m(() => !!e.mode), g = m(() => ({ label: "name", children: "children", pathName: "pathName", disabled: "disabled", ...d.props ?? {} })), s = m({
127
+ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), Q = (e) => typeof e == "string" && Qt(e) ? e : e + "px", Yt = (e, i, c, d, b, w) => {
128
+ const y = N(null), p = N(null), f = Ae(), L = N(), $ = N(!1), T = N(""), V = N(""), h = m(() => !!e.mode), g = m(() => ({ label: "name", children: "children", pathName: "pathName", disabled: "disabled", ...d.props ?? {} })), s = m({
129
129
  get: () => e.modelValue ? e.modelValue : void 0,
130
130
  set: (t) => {
131
131
  i("update:modelValue", t);
@@ -151,33 +151,28 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
151
151
  n.pop();
152
152
  }
153
153
  return null;
154
- }, D = m(() => {
154
+ }, j = m(() => {
155
155
  var n;
156
156
  let t = [], l = [];
157
157
  return b.value ? l = ((n = f.value) == null ? void 0 : n.lazyData) || [] : e.data && (l = _e(e.data, g.value.children) || []), l.length && (t = l.map((r) => ({
158
158
  ...r,
159
159
  [g.value.pathName]: r[g.value.pathName] ? r[g.value.pathName] : b.value ? r[g.value.label] : E(e.data, r[g.value.label])
160
160
  }))), t;
161
- }), k = N(""), j = N(!0), u = () => {
161
+ }), k = N(""), D = N(!0), u = () => {
162
162
  var t, l;
163
163
  if (e.parentLinkChildrenStrictly || !b.value) return !0;
164
- if (D.value.length === 0) return !1;
164
+ if (j.value.length === 0) return !1;
165
165
  if (h.value) {
166
166
  if (!s.value || !((t = s.value) != null && t.length)) return !0;
167
- const n = D.value.map((r) => r[c.value]);
167
+ const n = j.value.map((r) => r[c.value]);
168
168
  return (l = s.value) == null ? void 0 : l.every((r) => n.includes(r));
169
169
  } else
170
- return s.value ? !!D.value.find((r) => r[c.value] === s.value) : !0;
170
+ return s.value ? !!j.value.find((r) => r[c.value] === s.value) : !0;
171
171
  };
172
- ie(
173
- () => e.showSelectDom,
174
- (t) => {
175
- t || (C.value = !1);
176
- }
177
- ), ie(
178
- () => [D.value, s.value],
172
+ fe(
173
+ () => [j.value, s.value],
179
174
  ([t, l]) => {
180
- if (j.value = !u(), !j.value)
175
+ if (D.value = !u(), !D.value)
181
176
  if (h.value)
182
177
  if (!l || !(l != null && l.length))
183
178
  k.value = "";
@@ -203,27 +198,27 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
203
198
  var t;
204
199
  R.value = "", (t = f.value) == null || t.searchClear(), i("visible-change", !1);
205
200
  }, Y = Jt(() => {
206
- e.disabled || e.isView || (C.value ? C.value = !1 : (document.body.click(), C.value = !0));
201
+ e.disabled || e.isView || ($.value ? $.value = !1 : (document.body.click(), $.value = !0));
207
202
  }, 200), A = async () => {
208
203
  var l, n;
209
204
  await q();
210
205
  let t = [];
211
- h.value || (s.value || s.value === 0) && (b.value && await ((l = f.value) == null ? void 0 : l.lazyDataNextTick(s.value)), t = D.value.filter((r) => r[c.value] === s.value)), h.value && (s.value || s.value.length) && (b.value && await ((n = f.value) == null ? void 0 : n.lazyDataNextTick(s.value)), t = D.value.filter((r) => s.value.includes(r[c.value]))), i("change", s.value, t);
206
+ h.value || (s.value || s.value === 0) && (b.value && await ((l = f.value) == null ? void 0 : l.lazyDataNextTick(s.value)), t = j.value.filter((r) => r[c.value] === s.value)), h.value && (s.value || s.value.length) && (b.value && await ((n = f.value) == null ? void 0 : n.lazyDataNextTick(s.value)), t = j.value.filter((r) => s.value.includes(r[c.value]))), i("change", s.value, t);
212
207
  }, W = N(!1), Z = async () => {
213
208
  s.value = h.value ? [] : "", A(), W.value = !0;
214
209
  }, K = async (t) => {
215
210
  var l, n, r, S, P, a;
216
211
  if (!W.value && h.value) {
217
- if (!b.value && !$.value) {
212
+ if (!b.value && !w.value) {
218
213
  let v = (n = (l = f.value) == null ? void 0 : l.treeRef) == null ? void 0 : n.getNode(t);
219
214
  v.checked = !1, (r = f.value) == null || r.childLinkParent(v, v.checked), (S = f.value) == null || S.parentLinkChild(v, v.checked);
220
215
  }
221
216
  if (b.value && e.parentLinkChildrenStrictly) {
222
- let v = D.value.find((w) => w[c.value] === t);
217
+ let v = j.value.find((C) => C[c.value] === t);
223
218
  if (v && ((P = f.value) != null && P.getGrandChildrenFn)) {
224
- const w = await f.value.getGrandChildrenFn(v);
225
- if (w && w.length) {
226
- const oe = w.map((ne) => ne[c.value]);
219
+ const C = await f.value.getGrandChildrenFn(v);
220
+ if (C && C.length) {
221
+ const oe = C.map((ne) => ne[c.value]);
227
222
  s.value && ((a = s.value) != null && a.length) && (s.value = s.value.filter((ne) => !oe.includes(ne)));
228
223
  }
229
224
  }
@@ -233,10 +228,10 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
233
228
  }, ee = (t) => {
234
229
  if (!e.filter) return;
235
230
  const l = t && (t == null ? void 0 : t.trim());
236
- R.value = l, C.value || (C.value = !0);
231
+ R.value = l, $.value || ($.value = !0);
237
232
  }, te = () => {
238
233
  var t, l;
239
- h.value || (C.value = !1, e.filter && ((l = (t = p.value) == null ? void 0 : t.$select) == null || l.focus()));
234
+ h.value || ($.value = !1, e.filter && ((l = (t = p.value) == null ? void 0 : t.$select) == null || l.focus()));
240
235
  }, z = () => y != null && y.value && y.value.offsetWidth ? y.value.offsetWidth + "px" : "100%", U = () => {
241
236
  q(() => {
242
237
  T.value = e.width ? Q(e.width) : z(), V.value = e.poppverWidth ? Q(e.poppverWidth) : z();
@@ -247,8 +242,8 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
247
242
  }, _ = (t) => {
248
243
  i("blur", t);
249
244
  };
250
- ie(
251
- () => C.value,
245
+ fe(
246
+ () => $.value,
252
247
  (t) => {
253
248
  var n, r;
254
249
  const l = (n = y.value) == null ? void 0 : n.querySelector(".ant-select-arrow>.das-icon");
@@ -269,7 +264,7 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
269
264
  }), ae = (t) => {
270
265
  s.value = t;
271
266
  };
272
- return De(async () => {
267
+ return je(async () => {
273
268
  U();
274
269
  const t = await le();
275
270
  t && (F.value = Ue((l) => {
@@ -278,7 +273,7 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
278
273
  (S = (r = (n = o(L)) == null ? void 0 : n.popperRef) == null ? void 0 : r.popperInstanceRef) == null || S.update();
279
274
  });
280
275
  }, t));
281
- }), je(U), xe(() => {
276
+ }), De(U), xe(() => {
282
277
  var t;
283
278
  (t = F.value) == null || t.disconnect();
284
279
  }), {
@@ -293,7 +288,7 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
293
288
  poppverContentStyle: x,
294
289
  treePath: M,
295
290
  treeProps: g,
296
- selectOptions: D,
291
+ selectOptions: j,
297
292
  currentLabel: k,
298
293
  poppverShow: O,
299
294
  poppverHide: I,
@@ -302,13 +297,13 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
302
297
  deselect: K,
303
298
  selectSearch: ee,
304
299
  selectClear: Z,
305
- popoverVisible: C,
300
+ popoverVisible: $,
306
301
  selectMouseDown: Y,
307
302
  resetDefaultVal: ae,
308
303
  focus: re,
309
304
  blur: _,
310
305
  checkselectOptionsData: u,
311
- textHide: j,
306
+ textHide: D,
312
307
  showCheckbox: h
313
308
  };
314
309
  }, Zt = {
@@ -351,14 +346,14 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
351
346
  },
352
347
  emits: ["update:modelValue", "update:path", "update:keyword", "change", "focus", "blur", "visible-change"],
353
348
  setup(e, { expose: i, emit: c }) {
354
- const d = e, b = c, $ = Ne(), y = m(() => d.placeholder || Fe("请选择")), p = m(() => $.nodeKey ?? $["node-key"] ?? "id"), f = m(() => d.load ?? void 0), L = m(() => d.search ?? void 0), C = m(() => d.getGrandChildren ?? void 0), T = m(() => $.lazy ?? !!f.value), V = m(() => T.value ? !1 : d.defaultExpandAll), h = m(() => d.selectAttrs ? d.selectAttrs : {}), g = m(() => !!(d.disabled || d.isView)), s = m(() => d.parentLinkChildrenStrictly || d.childLinkParentStrictly ? !0 : !!(d.checkStrictly ?? T.value)), R = (a) => {
349
+ const d = e, b = c, w = Ne(), y = m(() => d.placeholder || Fe("请选择")), p = m(() => w.nodeKey ?? w["node-key"] ?? "id"), f = m(() => d.load ?? void 0), L = m(() => d.search ?? void 0), $ = m(() => d.getGrandChildren ?? void 0), T = m(() => w.lazy ?? !!f.value), V = m(() => T.value ? !1 : d.defaultExpandAll), h = m(() => d.selectAttrs ? d.selectAttrs : {}), g = m(() => !!(d.disabled || d.isView)), s = m(() => d.parentLinkChildrenStrictly || d.childLinkParentStrictly ? !0 : !!(d.checkStrictly ?? T.value)), R = (a) => {
355
350
  a.key === "Enter" && a.stopPropagation();
356
351
  }, {
357
352
  dasTreeSelectRef: M,
358
353
  $tree: E,
359
- $select: D,
354
+ $select: j,
360
355
  innerValue: k,
361
- innerKeyword: j,
356
+ innerKeyword: D,
362
357
  realWidth: u,
363
358
  poppverContentStyle: x,
364
359
  realPoppverWidth: O,
@@ -382,15 +377,15 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
382
377
  textHide: n,
383
378
  checkselectOptionsData: r,
384
379
  showCheckbox: S
385
- } = Yt(d, b, p, $, T, s), P = m(() => h.value.isTooltip ? h.value.isTooltip && r() : h.value["is-tooltip"] ? h.value["is-tooltip"] && r() : r());
380
+ } = Yt(d, b, p, w, T, s), P = m(() => h.value.isTooltip ? h.value.isTooltip && r() : h.value["is-tooltip"] ? h.value["is-tooltip"] && r() : r());
386
381
  return i({
387
382
  /** das-select */
388
- $select: D,
383
+ $select: j,
389
384
  /** das-tree */
390
385
  $tree: E,
391
386
  /** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
392
387
  resetDefaultVal: le
393
- }), (a, v) => ve((se(), ue(
388
+ }), (a, v) => ve((ie(), se(
394
389
  "div",
395
390
  {
396
391
  ref_key: "dasTreeSelectRef",
@@ -414,27 +409,27 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
414
409
  onHide: o(U)
415
410
  }, {
416
411
  reference: B(() => [
417
- a.showSelectDom ? (se(), ue(
412
+ a.showSelectDom ? (ie(), se(
418
413
  "div",
419
414
  {
420
415
  key: 0,
421
416
  class: "das-tree-select__select-content",
422
- onMousedown: v[1] || (v[1] = de(
417
+ onMousedown: v[1] || (v[1] = ue(
423
418
  //@ts-ignore
424
- (...w) => o(_) && o(_)(...w),
419
+ (...C) => o(_) && o(_)(...C),
425
420
  ["stop"]
426
421
  ))
427
422
  },
428
423
  [
429
424
  X(o(Ie), he({
430
425
  ref_key: "$select",
431
- ref: D,
426
+ ref: j,
432
427
  class: { "is-active": o(F) },
433
428
  dropdownClassName: "das-tree-select-dropdown",
434
429
  modelValue: o(k),
435
- "onUpdate:modelValue": v[0] || (v[0] = (w) => ce(k) ? k.value = w : null)
430
+ "onUpdate:modelValue": v[0] || (v[0] = (C) => de(k) ? k.value = C : null)
436
431
  }, h.value, {
437
- searchValue: o(j),
432
+ searchValue: o(D),
438
433
  options: o(Z),
439
434
  disabled: a.disabled,
440
435
  isView: a.isView,
@@ -475,7 +470,7 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
475
470
  ],
476
471
  32
477
472
  /* NEED_HYDRATION */
478
- )) : ve((se(), ue("div", Zt, [
473
+ )) : ve((ie(), se("div", Zt, [
479
474
  Ve(
480
475
  Re(o(K)),
481
476
  1
@@ -491,21 +486,21 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
491
486
  {
492
487
  class: "das-tree-select__tree-content",
493
488
  style: pe(o(x)),
494
- onClick: v[4] || (v[4] = de(() => {
489
+ onClick: v[4] || (v[4] = ue(() => {
495
490
  }, ["stop"])),
496
- onMousedown: v[5] || (v[5] = de(() => {
491
+ onMousedown: v[5] || (v[5] = ue(() => {
497
492
  }, ["stop"]))
498
493
  },
499
494
  [
500
495
  X(o(Ge), he({
501
496
  ref_key: "$tree",
502
497
  ref: E
503
- }, o($), {
498
+ }, o(w), {
504
499
  data: a.data,
505
500
  modelValue: o(k),
506
- "onUpdate:modelValue": v[2] || (v[2] = (w) => ce(k) ? k.value = w : null),
507
- "filter-value": o(j),
508
- "onUpdate:filterValue": v[3] || (v[3] = (w) => ce(j) ? j.value = w : null),
501
+ "onUpdate:modelValue": v[2] || (v[2] = (C) => de(k) ? k.value = C : null),
502
+ "filter-value": o(D),
503
+ "onUpdate:filterValue": v[3] || (v[3] = (C) => de(D) ? D.value = C : null),
509
504
  "show-checkbox": o(S),
510
505
  "is-filter": a.filter,
511
506
  "show-filter-input": !1,
@@ -517,14 +512,14 @@ const Jt = /* @__PURE__ */ Je(Xt), Qt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
517
512
  "default-expand-all": V.value,
518
513
  "check-strictly": T.value ? !0 : s.value,
519
514
  parentLinkChildrenStrictly: a.parentLinkChildrenStrictly,
520
- getGrandChildren: C.value,
515
+ getGrandChildren: $.value,
521
516
  childLinkParentStrictly: a.childLinkParentStrictly,
522
517
  onChange: o(I),
523
518
  onNodeChange: o(Y)
524
519
  }), Ee({
525
- default: B(({ node: w, data: oe }) => [
520
+ default: B(({ node: C, data: oe }) => [
526
521
  G(a.$slots, "default", {
527
- node: w,
522
+ node: C,
528
523
  data: oe
529
524
  })
530
525
  ]),