@das-fed/upf-ui 6.4.0-dev.246 → 6.4.0-dev.247
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.
- package/front-end/i18n/front-end-page/dasui_en-US.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +1 -1
- package/package.json +3 -3
- package/packages/components/cascader/index.d.ts +2 -9
- package/packages/components/cascader/index.js +21 -21
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/src/Index.vue.d.ts +0 -1
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +1 -1
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +12 -12
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dropdown/index.js +56 -50
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/dropdown/src/dropdownItem.vue.d.ts +2 -2
- package/packages/components/dropdown/style.css +1 -1
- package/packages/components/dropdown/style.css.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +1 -1
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +3 -3
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/pagination/index.js +2 -2
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/search/index.js +1 -1
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/select/index.js +3 -3
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.js +1 -1
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/split-panel/index.js +1 -1
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/split-panel/style.css +1 -1
- package/packages/components/split-panel/style.css.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tree-select/index.js +92 -92
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/style.css +1 -1
- package/packages/components/tree-select/style.css.gz +0 -0
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/presets/theme-cjb.css +6 -0
- package/presets/theme-default.css +6 -0
- package/presets/theme-dkh.css +7 -1
- package/presets/theme-ssl.css +6 -0
- package/theme-default.css +6 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/tree-select/style.css';
|
|
2
|
-
import { ref as j, computed as k, watch as ye, nextTick as _, unref as
|
|
3
|
-
import { withInstall as
|
|
2
|
+
import { ref as j, computed as k, watch as ye, nextTick as _, unref as r, onMounted as Ie, onBeforeUnmount as Be, defineComponent as Oe, useAttrs as Re, withDirectives as be, openBlock as q, createElementBlock as fe, normalizeClass as Ee, normalizeStyle as ge, createCommentVNode as Me, createVNode as ve, withCtx as x, withModifiers as he, mergeProps as pe, isRef as X, createTextVNode as Ae, toDisplayString as We, createElementVNode as Ge, createBlock as ke, createSlots as Se, renderSlot as N } from "vue";
|
|
3
|
+
import { withInstall as Fe } from "@das-fed/upf-utils/with-install/index";
|
|
4
4
|
import { ElPopover as ze } from "element-plus";
|
|
5
5
|
import "element-plus/es/components/popover/style/css";
|
|
6
6
|
import { currentLang as He, t as Ue } from "@das-fed/upf-web/packages/i18n/index";
|
|
@@ -20,7 +20,7 @@ function lt(e) {
|
|
|
20
20
|
var d = typeof e;
|
|
21
21
|
return e != null && (d == "object" || d == "function");
|
|
22
22
|
}
|
|
23
|
-
var Ve = lt,
|
|
23
|
+
var Ve = lt, rt = typeof ee == "object" && ee && ee.Object === Object && ee, at = rt, nt = at, ot = typeof self == "object" && self && self.Object === Object && self, it = nt || ot || Function("return this")(), De = it, st = De, ut = function() {
|
|
24
24
|
return st.Date.now();
|
|
25
25
|
}, dt = ut, ct = /\s/;
|
|
26
26
|
function ft(e) {
|
|
@@ -59,11 +59,11 @@ var Ot = Bt, Rt = It, Et = Ot, Mt = "[object Symbol]";
|
|
|
59
59
|
function At(e) {
|
|
60
60
|
return typeof e == "symbol" || Et(e) && Rt(e) == Mt;
|
|
61
61
|
}
|
|
62
|
-
var Wt = At,
|
|
62
|
+
var Wt = At, Gt = yt, $e = Ve, Ft = Wt, xe = NaN, zt = /^[-+]0x[0-9a-f]+$/i, Ht = /^0b[01]+$/i, Ut = /^0o[0-7]+$/i, qt = parseInt;
|
|
63
63
|
function Xt(e) {
|
|
64
64
|
if (typeof e == "number")
|
|
65
65
|
return e;
|
|
66
|
-
if (
|
|
66
|
+
if (Ft(e))
|
|
67
67
|
return xe;
|
|
68
68
|
if ($e(e)) {
|
|
69
69
|
var d = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -71,7 +71,7 @@ function Xt(e) {
|
|
|
71
71
|
}
|
|
72
72
|
if (typeof e != "string")
|
|
73
73
|
return e === 0 ? e : +e;
|
|
74
|
-
e =
|
|
74
|
+
e = Gt(e);
|
|
75
75
|
var f = Ht.test(e);
|
|
76
76
|
return f || Ut.test(e) ? qt(e.slice(2), f ? 2 : 8) : zt.test(e) ? xe : +e;
|
|
77
77
|
}
|
|
@@ -124,7 +124,7 @@ function _t(e, d, f) {
|
|
|
124
124
|
return S.cancel = I, S.flush = A, S;
|
|
125
125
|
}
|
|
126
126
|
var el = _t;
|
|
127
|
-
const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), te = (e) => typeof e == "string" && ll(e) ? e : e + "px",
|
|
127
|
+
const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), te = (e) => typeof e == "string" && ll(e) ? e : e + "px", rl = (e, d, f, c, m, w) => {
|
|
128
128
|
const y = j(null), h = j(null), v = Je(), L = j(), C = j(!1), b = j(""), P = j(""), p = k(() => e.mode === "multiple" || e.mode === "tags"), g = {
|
|
129
129
|
label: "name",
|
|
130
130
|
children: "children",
|
|
@@ -147,10 +147,10 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
147
147
|
}
|
|
148
148
|
}), S = (t, o, s = []) => {
|
|
149
149
|
for (let l = 0; l < t.length; l++) {
|
|
150
|
-
const
|
|
150
|
+
const a = t[l], n = a[g.label];
|
|
151
151
|
if (s.push(n), n === o) return s.join("/");
|
|
152
|
-
if (
|
|
153
|
-
const T = S(
|
|
152
|
+
if (a.children && a.children.length > 0) {
|
|
153
|
+
const T = S(a[g.children], o, s);
|
|
154
154
|
if (T) return T;
|
|
155
155
|
}
|
|
156
156
|
s.pop();
|
|
@@ -177,8 +177,8 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
177
177
|
if (i.value.length === 0) return B(e.modelValue);
|
|
178
178
|
if (p.value) {
|
|
179
179
|
if (!u.value || !((t = u.value) != null && t.length)) return !0;
|
|
180
|
-
const o = i.value.map((n) => n[f.value]), s = Array.isArray(u.value) ? u.value : [], l = s.some((n) => B(n)),
|
|
181
|
-
return l ||
|
|
180
|
+
const o = i.value.map((n) => n[f.value]), s = Array.isArray(u.value) ? u.value : [], l = s.some((n) => B(n)), a = s.some((n) => D(n) && o.includes(n));
|
|
181
|
+
return l || a;
|
|
182
182
|
} else
|
|
183
183
|
return !u.value || i.value.find((s) => s[f.value] === u.value) ? !0 : B(e.modelValue);
|
|
184
184
|
};
|
|
@@ -190,11 +190,11 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
190
190
|
if (!Array.isArray(o) || !o.length)
|
|
191
191
|
$.value = "";
|
|
192
192
|
else {
|
|
193
|
-
const l = (o ?? []).map((
|
|
193
|
+
const l = (o ?? []).map((a) => {
|
|
194
194
|
var T;
|
|
195
|
-
const n = (T = t == null ? void 0 : t.find) == null ? void 0 : T.call(t, (
|
|
196
|
-
return n ? e.showFullPath ? n == null ? void 0 : n[g.pathName] : n == null ? void 0 : n[g.label] : D(
|
|
197
|
-
}).filter((
|
|
195
|
+
const n = (T = t == null ? void 0 : t.find) == null ? void 0 : T.call(t, (F) => (F == null ? void 0 : F[f.value]) === a);
|
|
196
|
+
return n ? e.showFullPath ? n == null ? void 0 : n[g.pathName] : n == null ? void 0 : n[g.label] : D(a) || a == null ? "" : String(a);
|
|
197
|
+
}).filter((a) => !!a);
|
|
198
198
|
$.value = l.join(R);
|
|
199
199
|
}
|
|
200
200
|
else if (!o)
|
|
@@ -221,22 +221,22 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
221
221
|
await _();
|
|
222
222
|
let t = [];
|
|
223
223
|
if (p.value || (u.value || u.value === 0) && (m.value && D(u.value) && await ((o = v.value) == null ? void 0 : o.lazyDataNextTick(u.value)), t = i.value.filter((l) => l[f.value] === u.value)), p.value && (u.value || u.value.length)) {
|
|
224
|
-
const
|
|
225
|
-
m.value &&
|
|
224
|
+
const a = (Array.isArray(u.value) ? u.value : []).filter((n) => D(n));
|
|
225
|
+
m.value && a.length && await ((s = v.value) == null ? void 0 : s.lazyDataNextTick(a)), t = i.value.filter((n) => a.includes(n[f.value]));
|
|
226
226
|
}
|
|
227
227
|
d("change", u.value, t);
|
|
228
|
-
},
|
|
229
|
-
C.value = !1, u.value = p.value ? [] : "", W(),
|
|
230
|
-
},
|
|
231
|
-
var s, l,
|
|
232
|
-
if (
|
|
228
|
+
}, G = j(!1), re = async () => {
|
|
229
|
+
C.value = !1, u.value = p.value ? [] : "", W(), G.value = !0;
|
|
230
|
+
}, ae = async (t) => {
|
|
231
|
+
var s, l, a, n, T, F;
|
|
232
|
+
if (G.value || !p.value) return;
|
|
233
233
|
if (!i.value.find((V) => (V == null ? void 0 : V[f.value]) === t)) {
|
|
234
234
|
W();
|
|
235
235
|
return;
|
|
236
236
|
}
|
|
237
237
|
if (!m.value && !w.value) {
|
|
238
238
|
let V = (l = (s = v.value) == null ? void 0 : s.treeRef) == null ? void 0 : l.getNode(t);
|
|
239
|
-
V.checked = !1, (
|
|
239
|
+
V.checked = !1, (a = v.value) == null || a.childLinkParent(V, V.checked), (n = v.value) == null || n.parentLinkChild(V, V.checked);
|
|
240
240
|
}
|
|
241
241
|
if (m.value && e.parentLinkChildrenStrictly) {
|
|
242
242
|
let V = i.value.find((U) => U[f.value] === t);
|
|
@@ -244,7 +244,7 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
244
244
|
const U = await v.value.getGrandChildrenFn(V);
|
|
245
245
|
if (U && U.length) {
|
|
246
246
|
const Pe = U.map((ce) => ce[f.value]);
|
|
247
|
-
u.value && ((
|
|
247
|
+
u.value && ((F = u.value) != null && F.length) && (u.value = u.value.filter((ce) => !Pe.includes(ce)));
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
}
|
|
@@ -262,7 +262,7 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
262
262
|
});
|
|
263
263
|
}, ie = (t) => {
|
|
264
264
|
var o;
|
|
265
|
-
|
|
265
|
+
G.value && (G.value = !1), (o = h.value) == null || o.toChangeMaxCount(!0), d("focus", t);
|
|
266
266
|
}, se = (t) => {
|
|
267
267
|
d("blur", t);
|
|
268
268
|
};
|
|
@@ -272,8 +272,8 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
272
272
|
var s, l;
|
|
273
273
|
const o = (s = y.value) == null ? void 0 : s.querySelector(".ant-select-arrow>.das-icon");
|
|
274
274
|
t ? o.style.transform = "rotate(180deg)" : o.style.transform = "", (l = h.value) == null || l.toChangeMaxCount(t), _(() => {
|
|
275
|
-
var
|
|
276
|
-
(T = (n = (
|
|
275
|
+
var a, n, T;
|
|
276
|
+
(T = (n = (a = r(L)) == null ? void 0 : a.popperRef) == null ? void 0 : n.popperInstanceRef) == null || T.update();
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
);
|
|
@@ -293,8 +293,8 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
293
293
|
const t = await ue();
|
|
294
294
|
t && (K.value = Ke((o) => {
|
|
295
295
|
_(() => {
|
|
296
|
-
var s, l,
|
|
297
|
-
(
|
|
296
|
+
var s, l, a;
|
|
297
|
+
(a = (l = (s = r(L)) == null ? void 0 : s.popperRef) == null ? void 0 : l.popperInstanceRef) == null || a.update(), E();
|
|
298
298
|
});
|
|
299
299
|
}, t));
|
|
300
300
|
}), Be(() => {
|
|
@@ -318,9 +318,9 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
318
318
|
poppverHide: Z,
|
|
319
319
|
treeChange: W,
|
|
320
320
|
nodeChange: oe,
|
|
321
|
-
deselect:
|
|
321
|
+
deselect: ae,
|
|
322
322
|
selectSearch: ne,
|
|
323
|
-
selectClear:
|
|
323
|
+
selectClear: re,
|
|
324
324
|
popoverVisible: C,
|
|
325
325
|
selectMouseDown: le,
|
|
326
326
|
resetDefaultVal: de,
|
|
@@ -330,7 +330,7 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
330
330
|
textHide: O,
|
|
331
331
|
showCheckbox: p
|
|
332
332
|
};
|
|
333
|
-
},
|
|
333
|
+
}, al = {
|
|
334
334
|
key: 1,
|
|
335
335
|
class: "das-tree-select__selct-text-content"
|
|
336
336
|
}, nl = {
|
|
@@ -394,9 +394,9 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
394
394
|
treeProps: Z,
|
|
395
395
|
selectOptions: le,
|
|
396
396
|
currentLabel: W,
|
|
397
|
-
popoverRef:
|
|
398
|
-
deselect:
|
|
399
|
-
poppverShow:
|
|
397
|
+
popoverRef: G,
|
|
398
|
+
deselect: re,
|
|
399
|
+
poppverShow: ae,
|
|
400
400
|
poppverHide: ne,
|
|
401
401
|
selectSearch: oe,
|
|
402
402
|
selectMouseDown: H,
|
|
@@ -408,7 +408,7 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
408
408
|
textHide: de,
|
|
409
409
|
checkselectOptionsData: t,
|
|
410
410
|
showCheckbox: o
|
|
411
|
-
} =
|
|
411
|
+
} = rl(c, m, h, w, b, R), s = k(() => p.value.isTooltip ? p.value.isTooltip && t() : p.value["is-tooltip"] ? p.value["is-tooltip"] && t() : t());
|
|
412
412
|
return d({
|
|
413
413
|
/** das-select */
|
|
414
414
|
$select: A,
|
|
@@ -416,28 +416,28 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
416
416
|
$tree: I,
|
|
417
417
|
/** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
|
|
418
418
|
resetDefaultVal: ie
|
|
419
|
-
}), (l,
|
|
419
|
+
}), (l, a) => be((q(), fe(
|
|
420
420
|
"div",
|
|
421
421
|
{
|
|
422
422
|
ref_key: "dasTreeSelectRef",
|
|
423
423
|
ref: B,
|
|
424
|
-
class: Ee({ "das-ui-tree-select": !0, "is-lazy": b.value, "text-hide":
|
|
425
|
-
style: ge({ width:
|
|
424
|
+
class: Ee({ "das-ui-tree-select": !0, "is-lazy": b.value, "text-hide": r(de), "show-select": e.showSelectDom }),
|
|
425
|
+
style: ge({ width: r(u) })
|
|
426
426
|
},
|
|
427
427
|
[
|
|
428
428
|
Me(` 在使用 2.x 版本的element-UI时,里面的Popover气泡卡片组件,有自带的自动适应位置的功能;在 element plus 中,直接使用,已经无法自适应气泡弹窗的位置了;需要自行配置:fallback-placements="['bottom', 'top', 'right', 'left']" `),
|
|
429
|
-
ve(
|
|
429
|
+
ve(r(ze), {
|
|
430
430
|
ref_key: "popoverRef",
|
|
431
|
-
ref:
|
|
432
|
-
visible:
|
|
431
|
+
ref: G,
|
|
432
|
+
visible: r(E),
|
|
433
433
|
"popper-class": "das-tree-select-popper",
|
|
434
434
|
placement: "bottom-start",
|
|
435
435
|
"show-arrow": !1,
|
|
436
|
-
width:
|
|
436
|
+
width: r(O),
|
|
437
437
|
disabled: g.value,
|
|
438
438
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
439
|
-
onShow:
|
|
440
|
-
onHide:
|
|
439
|
+
onShow: r(ae),
|
|
440
|
+
onHide: r(ne)
|
|
441
441
|
}, {
|
|
442
442
|
reference: x(() => [
|
|
443
443
|
e.showSelectDom ? (q(), fe(
|
|
@@ -445,23 +445,23 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
445
445
|
{
|
|
446
446
|
key: 0,
|
|
447
447
|
class: "das-tree-select__select-content",
|
|
448
|
-
onMousedown:
|
|
448
|
+
onMousedown: a[1] || (a[1] = he(
|
|
449
449
|
//@ts-ignore
|
|
450
|
-
(...n) =>
|
|
450
|
+
(...n) => r(H) && r(H)(...n),
|
|
451
451
|
["stop"]
|
|
452
452
|
))
|
|
453
453
|
},
|
|
454
454
|
[
|
|
455
|
-
ve(
|
|
455
|
+
ve(r(qe), pe({
|
|
456
456
|
ref_key: "$select",
|
|
457
457
|
ref: A,
|
|
458
|
-
class: { "is-active":
|
|
458
|
+
class: { "is-active": r(E) },
|
|
459
459
|
dropdownClassName: "das-tree-select-dropdown",
|
|
460
|
-
modelValue:
|
|
461
|
-
"onUpdate:modelValue":
|
|
460
|
+
modelValue: r(S),
|
|
461
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => X(S) ? S.value = n : null)
|
|
462
462
|
}, p.value, {
|
|
463
|
-
searchValue:
|
|
464
|
-
options:
|
|
463
|
+
searchValue: r(i),
|
|
464
|
+
options: r(le),
|
|
465
465
|
disabled: e.disabled,
|
|
466
466
|
isView: e.isView,
|
|
467
467
|
size: e.size,
|
|
@@ -470,10 +470,10 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
470
470
|
placeholder: y.value,
|
|
471
471
|
"show-search": e.filter,
|
|
472
472
|
filterOption: e.filter,
|
|
473
|
-
width:
|
|
473
|
+
width: r(u),
|
|
474
474
|
fieldNames: {
|
|
475
475
|
value: h.value,
|
|
476
|
-
label: e.showFullPath ?
|
|
476
|
+
label: e.showFullPath ? r(Z).pathName : r(Z).label
|
|
477
477
|
},
|
|
478
478
|
isTooltip: s.value,
|
|
479
479
|
errorMode: e.errorMode,
|
|
@@ -481,18 +481,18 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
481
481
|
errorLabel: e.errorLabel,
|
|
482
482
|
autoClearSearchValue: !1,
|
|
483
483
|
isExterControlCount: "",
|
|
484
|
-
onDeselect:
|
|
485
|
-
onSearch:
|
|
484
|
+
onDeselect: r(re),
|
|
485
|
+
onSearch: r(oe),
|
|
486
486
|
onInputKeyDown: D,
|
|
487
|
-
onFocus:
|
|
488
|
-
onBlur:
|
|
489
|
-
onClear:
|
|
487
|
+
onFocus: r(K),
|
|
488
|
+
onBlur: r(ue),
|
|
489
|
+
onClear: r(se)
|
|
490
490
|
}), {
|
|
491
491
|
suffixIcon: x(() => [
|
|
492
|
-
ve(
|
|
492
|
+
ve(r(Ye), {
|
|
493
493
|
size: "medium",
|
|
494
494
|
style: { transition: "transform 0.5s" },
|
|
495
|
-
iconColor:
|
|
495
|
+
iconColor: r(E) ? "var(--upf-color-primary)" : "currentColor"
|
|
496
496
|
}, null, 8, ["iconColor"])
|
|
497
497
|
]),
|
|
498
498
|
_: 1
|
|
@@ -501,39 +501,39 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
501
501
|
],
|
|
502
502
|
32
|
|
503
503
|
/* NEED_HYDRATION */
|
|
504
|
-
)) : be((q(), fe("div",
|
|
504
|
+
)) : be((q(), fe("div", al, [
|
|
505
505
|
Ae(
|
|
506
|
-
We(
|
|
506
|
+
We(r(W)),
|
|
507
507
|
1
|
|
508
508
|
/* TEXT */
|
|
509
509
|
)
|
|
510
510
|
])), [
|
|
511
|
-
[
|
|
511
|
+
[r(Ze)]
|
|
512
512
|
])
|
|
513
513
|
]),
|
|
514
514
|
default: x(() => [
|
|
515
|
-
|
|
515
|
+
Ge(
|
|
516
516
|
"div",
|
|
517
517
|
{
|
|
518
518
|
class: "das-tree-select__tree-content",
|
|
519
|
-
style: ge(
|
|
520
|
-
onClick:
|
|
519
|
+
style: ge(r($)),
|
|
520
|
+
onClick: a[6] || (a[6] = he(() => {
|
|
521
521
|
}, ["stop"])),
|
|
522
|
-
onMousedown:
|
|
522
|
+
onMousedown: a[7] || (a[7] = he(() => {
|
|
523
523
|
}, ["stop"]))
|
|
524
524
|
},
|
|
525
525
|
[
|
|
526
|
-
e.virtual ? (q(), ke(
|
|
526
|
+
e.virtual ? (q(), ke(r(Xe), pe({
|
|
527
527
|
key: 1,
|
|
528
528
|
ref_key: "$tree",
|
|
529
529
|
ref: I
|
|
530
|
-
},
|
|
530
|
+
}, r(w), {
|
|
531
531
|
data: e.data,
|
|
532
|
-
modelValue:
|
|
533
|
-
"onUpdate:modelValue":
|
|
534
|
-
"filter-value":
|
|
535
|
-
"onUpdate:filterValue":
|
|
536
|
-
"show-checkbox":
|
|
532
|
+
modelValue: r(S),
|
|
533
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => X(S) ? S.value = n : null),
|
|
534
|
+
"filter-value": r(i),
|
|
535
|
+
"onUpdate:filterValue": a[5] || (a[5] = (n) => X(i) ? i.value = n : null),
|
|
536
|
+
"show-checkbox": r(o),
|
|
537
537
|
"is-filter": e.filter,
|
|
538
538
|
"show-filter-input": !1,
|
|
539
539
|
"filter-mode": "input",
|
|
@@ -541,14 +541,14 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
541
541
|
load: v.value,
|
|
542
542
|
"batch-load": c.batchLoad,
|
|
543
543
|
search: L.value,
|
|
544
|
-
path:
|
|
544
|
+
path: r(Y),
|
|
545
545
|
"default-expand-all": P.value,
|
|
546
546
|
"check-strictly": b.value ? !0 : R.value,
|
|
547
547
|
parentLinkChildrenStrictly: e.parentLinkChildrenStrictly,
|
|
548
548
|
getGrandChildren: C.value,
|
|
549
549
|
childLinkParentStrictly: e.childLinkParentStrictly,
|
|
550
|
-
onChange:
|
|
551
|
-
onNodeChange:
|
|
550
|
+
onChange: r(z),
|
|
551
|
+
onNodeChange: r(Q)
|
|
552
552
|
}), Se({
|
|
553
553
|
default: x(({ node: n, data: T }) => [
|
|
554
554
|
N(l.$slots, "default", {
|
|
@@ -587,17 +587,17 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
587
587
|
]),
|
|
588
588
|
key: "3"
|
|
589
589
|
} : void 0
|
|
590
|
-
]), 1040, ["data", "modelValue", "filter-value", "show-checkbox", "is-filter", "lazy", "load", "batch-load", "search", "path", "default-expand-all", "check-strictly", "parentLinkChildrenStrictly", "getGrandChildren", "childLinkParentStrictly", "onChange", "onNodeChange"])) : (q(), ke(
|
|
590
|
+
]), 1040, ["data", "modelValue", "filter-value", "show-checkbox", "is-filter", "lazy", "load", "batch-load", "search", "path", "default-expand-all", "check-strictly", "parentLinkChildrenStrictly", "getGrandChildren", "childLinkParentStrictly", "onChange", "onNodeChange"])) : (q(), ke(r(Qe), pe({
|
|
591
591
|
key: 0,
|
|
592
592
|
ref_key: "$tree",
|
|
593
593
|
ref: I
|
|
594
|
-
},
|
|
594
|
+
}, r(w), {
|
|
595
595
|
data: e.data,
|
|
596
|
-
modelValue:
|
|
597
|
-
"onUpdate:modelValue":
|
|
598
|
-
"filter-value":
|
|
599
|
-
"onUpdate:filterValue":
|
|
600
|
-
"show-checkbox":
|
|
596
|
+
modelValue: r(S),
|
|
597
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => X(S) ? S.value = n : null),
|
|
598
|
+
"filter-value": r(i),
|
|
599
|
+
"onUpdate:filterValue": a[3] || (a[3] = (n) => X(i) ? i.value = n : null),
|
|
600
|
+
"show-checkbox": r(o),
|
|
601
601
|
"is-filter": e.filter,
|
|
602
602
|
"show-filter-input": !1,
|
|
603
603
|
"filter-mode": "input",
|
|
@@ -605,14 +605,14 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
605
605
|
load: v.value,
|
|
606
606
|
"batch-load": c.batchLoad,
|
|
607
607
|
search: L.value,
|
|
608
|
-
path:
|
|
608
|
+
path: r(Y),
|
|
609
609
|
"default-expand-all": P.value,
|
|
610
610
|
"check-strictly": b.value ? !0 : R.value,
|
|
611
611
|
parentLinkChildrenStrictly: e.parentLinkChildrenStrictly,
|
|
612
612
|
getGrandChildren: C.value,
|
|
613
613
|
childLinkParentStrictly: e.childLinkParentStrictly,
|
|
614
|
-
onChange:
|
|
615
|
-
onNodeChange:
|
|
614
|
+
onChange: r(z),
|
|
615
|
+
onNodeChange: r(Q)
|
|
616
616
|
}), Se({
|
|
617
617
|
default: x(({ node: n, data: T }) => [
|
|
618
618
|
N(l.$slots, "default", {
|
|
@@ -664,10 +664,10 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
664
664
|
6
|
|
665
665
|
/* CLASS, STYLE */
|
|
666
666
|
)), [
|
|
667
|
-
[
|
|
667
|
+
[r(et), M]
|
|
668
668
|
]);
|
|
669
669
|
}
|
|
670
|
-
}), kl =
|
|
670
|
+
}), kl = Fe(ol), Sl = () => j(null), Cl = { title: "tree-select 树选择" };
|
|
671
671
|
export {
|
|
672
672
|
kl as DasTreeSelect,
|
|
673
673
|
Sl as DasTreeSelectRef,
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-tree-select.show-select,.das-ui-tree-select .das-tree-select__select-content{font-size:0}.das-ui-tree-select .das-tree-select__select-content .das-ui-select.underline .ant-select:not(.ant-select-focused).is-active .ant-select-selector{border-bottom-color:var(--upf-color-primary)!important}.das-ui-tree-select .das-tree-select__select-content .das-ui-select.bordered .ant-select:not(.ant-select-focused).is-active .ant-select-selector{border-color:var(--upf-color-primary)!important}.das-ui-tree-select .das-tree-select__select-content .ant-select-focused .ant-select-arrow>.das-icon{fill:var(--upf-color-primary)!important}.das-ui-tree-select.text-hide .das-ui-select .ant-select-selector .ant-select-selection-item{display:none!important}.das-ui-tree-select.text-hide .das-ui-select .ant-select-selector .ant-select-selection-overflow-item{opacity:0!important}.das-tree-select-dropdown.ant-select-dropdown{display:none!important}.das-tree-select-popper{box-sizing:border-box;box-shadow:0 4px 10px #0003;padding:0!important;overflow:hidden;position:relative}.das-tree-select-popper .das-tree-select__tree-content{width:100%;box-sizing:border-box;padding-top:8px;position:relative}.das-tree-select-popper .das-tree-select__tree-content .das-ui-tree,.das-tree-select-popper .das-tree-select__tree-content .das-ui-tree .el-tree{height:100%}.das-tree-select-popper .das-tree-select__tree-content .das-ui-tree .el-tree .el-tree__empty-text{width:100%;font-size:12px;color:var(--upf-text-disabled)}
|
|
1
|
+
.das-ui-tree-select.show-select,.das-ui-tree-select .das-tree-select__select-content{font-size:0}.das-ui-tree-select .das-tree-select__select-content .das-ui-select.underline .ant-select:not(.ant-select-focused).is-active .ant-select-selector{border-bottom-color:var(--upf-form-active-border-color, var(--upf-color-primary))!important}.das-ui-tree-select .das-tree-select__select-content .das-ui-select.bordered .ant-select:not(.ant-select-focused).is-active .ant-select-selector{border-color:var(--upf-form-active-border-color, var(--upf-color-primary))!important}.das-ui-tree-select .das-tree-select__select-content .ant-select-focused .ant-select-arrow>.das-icon{fill:var(--upf-color-primary)!important}.das-ui-tree-select.text-hide .das-ui-select .ant-select-selector .ant-select-selection-item{display:none!important}.das-ui-tree-select.text-hide .das-ui-select .ant-select-selector .ant-select-selection-overflow-item{opacity:0!important}.das-tree-select-dropdown.ant-select-dropdown{display:none!important}.das-tree-select-popper{box-sizing:border-box;box-shadow:0 4px 10px #0003;padding:0!important;overflow:hidden;position:relative}.das-tree-select-popper .das-tree-select__tree-content{width:100%;box-sizing:border-box;padding-top:8px;position:relative}.das-tree-select-popper .das-tree-select__tree-content .das-ui-tree,.das-tree-select-popper .das-tree-select__tree-content .das-ui-tree .el-tree{height:100%}.das-tree-select-popper .das-tree-select__tree-content .das-ui-tree .el-tree .el-tree__empty-text{width:100%;font-size:12px;color:var(--upf-text-disabled)}
|
|
Binary file
|