@das-fed/upf-ui 6.4.0-dev.287 → 6.4.0-dev.289
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/package.json +7 -7
- package/packages/components/custom-search-item/index.js +1 -1
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/custom-search-item/style.css +1 -1
- package/packages/components/date-picker/index.js +20 -16
- 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/form-item/index.js +3 -3
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/input/index.js +972 -966
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/select/index.js +5 -4
- 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/text-tooltip/index.d.ts +1 -0
- package/packages/components/text-tooltip/index.js +733 -727
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/type.d.ts +16 -4
- package/packages/components/tree-select/index.js +132 -132
- 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/index.js +2170 -2164
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/release-meta.json +4 -4
|
Binary file
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export type TextTooltipOverflowMode = 'horizontal' | 'vertical' | 'both'
|
|
2
|
+
|
|
3
|
+
export interface TextTooltipOptions {
|
|
4
|
+
|
|
5
|
+
target?: string | ((el: HTMLElement) => HTMLElement | Promise<HTMLElement>)
|
|
6
|
+
|
|
7
|
+
deep?: boolean
|
|
8
|
+
|
|
9
|
+
disabled?: boolean
|
|
10
|
+
|
|
11
|
+
customContent?: string
|
|
12
|
+
|
|
13
|
+
overflowMode?: TextTooltipOverflowMode
|
|
14
|
+
|
|
15
|
+
multiline?: boolean
|
|
16
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as j, computed as k, watch as ye, nextTick as _, unref as
|
|
1
|
+
import { ref as j, computed as k, watch as ye, nextTick as _, unref as a, 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";
|
|
2
2
|
import { withInstall as Fe } from "@das-fed/upf-utils/with-install/index";
|
|
3
3
|
import { ElPopover as ze } from "element-plus";
|
|
4
4
|
import "element-plus/es/components/popover/style/css";
|
|
@@ -21,7 +21,7 @@ function lt(e) {
|
|
|
21
21
|
var d = typeof e;
|
|
22
22
|
return e != null && (d == "object" || d == "function");
|
|
23
23
|
}
|
|
24
|
-
var Ve = lt,
|
|
24
|
+
var Ve = lt, at = typeof ee == "object" && ee && ee.Object === Object && ee, rt = at, nt = rt, ot = typeof self == "object" && self && self.Object === Object && self, it = nt || ot || Function("return this")(), De = it, st = De, ut = function() {
|
|
25
25
|
return st.Date.now();
|
|
26
26
|
}, dt = ut, ct = /\s/;
|
|
27
27
|
function ft(e) {
|
|
@@ -33,8 +33,8 @@ var vt = ft, ht = vt, pt = /^\s+/;
|
|
|
33
33
|
function mt(e) {
|
|
34
34
|
return e && e.slice(0, ht(e) + 1).replace(pt, "");
|
|
35
35
|
}
|
|
36
|
-
var yt = mt, bt = De, gt = bt.Symbol, je = gt,
|
|
37
|
-
function
|
|
36
|
+
var yt = mt, bt = De, gt = bt.Symbol, je = gt, Te = je, Ne = Object.prototype, kt = Ne.hasOwnProperty, St = Ne.toString, J = Te ? Te.toStringTag : void 0;
|
|
37
|
+
function Tt(e) {
|
|
38
38
|
var d = kt.call(e, J), f = e[J];
|
|
39
39
|
try {
|
|
40
40
|
e[J] = void 0;
|
|
@@ -44,11 +44,11 @@ function Ct(e) {
|
|
|
44
44
|
var m = St.call(e);
|
|
45
45
|
return c && (d ? e[J] = f : delete e[J]), m;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var Ct = Tt, wt = Object.prototype, $t = wt.toString;
|
|
48
48
|
function xt(e) {
|
|
49
49
|
return $t.call(e);
|
|
50
50
|
}
|
|
51
|
-
var Lt = xt,
|
|
51
|
+
var Lt = xt, Ce = je, Vt = Ct, Dt = Lt, jt = "[object Null]", Nt = "[object Undefined]", we = Ce ? Ce.toStringTag : void 0;
|
|
52
52
|
function Pt(e) {
|
|
53
53
|
return e == null ? e === void 0 ? Nt : jt : we && we in Object(e) ? Vt(e) : Dt(e);
|
|
54
54
|
}
|
|
@@ -78,28 +78,28 @@ function Xt(e) {
|
|
|
78
78
|
}
|
|
79
79
|
var Jt = Xt, Qt = Ve, me = dt, Le = Jt, Yt = "Expected a function", Zt = Math.max, Kt = Math.min;
|
|
80
80
|
function _t(e, d, f) {
|
|
81
|
-
var c, m, w, y, h, v, L = 0,
|
|
81
|
+
var c, m, w, y, h, v, L = 0, T = !1, b = !1, P = !0;
|
|
82
82
|
if (typeof e != "function")
|
|
83
83
|
throw new TypeError(Yt);
|
|
84
|
-
d = Le(d) || 0, Qt(f) && (
|
|
84
|
+
d = Le(d) || 0, Qt(f) && (T = !!f.leading, b = "maxWait" in f, w = b ? Zt(Le(f.maxWait) || 0, d) : w, P = "trailing" in f ? !!f.trailing : P);
|
|
85
85
|
function p(i) {
|
|
86
86
|
var u = c, $ = m;
|
|
87
87
|
return c = m = void 0, L = i, y = e.apply($, u), y;
|
|
88
88
|
}
|
|
89
89
|
function g(i) {
|
|
90
|
-
return L = i, h = setTimeout(D, d),
|
|
90
|
+
return L = i, h = setTimeout(D, d), T ? p(i) : y;
|
|
91
91
|
}
|
|
92
92
|
function R(i) {
|
|
93
93
|
var u = i - v, $ = i - L, O = d - u;
|
|
94
94
|
return b ? Kt(O, w - $) : O;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function E(i) {
|
|
97
97
|
var u = i - v, $ = i - L;
|
|
98
98
|
return v === void 0 || u >= d || u < 0 || b && $ >= w;
|
|
99
99
|
}
|
|
100
100
|
function D() {
|
|
101
101
|
var i = me();
|
|
102
|
-
if (
|
|
102
|
+
if (E(i))
|
|
103
103
|
return B(i);
|
|
104
104
|
h = setTimeout(D, R(i));
|
|
105
105
|
}
|
|
@@ -109,11 +109,11 @@ function _t(e, d, f) {
|
|
|
109
109
|
function I() {
|
|
110
110
|
h !== void 0 && clearTimeout(h), L = 0, c = v = m = h = void 0;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function M() {
|
|
113
113
|
return h === void 0 ? y : B(me());
|
|
114
114
|
}
|
|
115
115
|
function S() {
|
|
116
|
-
var i = me(), u =
|
|
116
|
+
var i = me(), u = E(i);
|
|
117
117
|
if (c = arguments, m = this, v = i, u) {
|
|
118
118
|
if (h === void 0)
|
|
119
119
|
return g(v);
|
|
@@ -122,37 +122,37 @@ function _t(e, d, f) {
|
|
|
122
122
|
}
|
|
123
123
|
return h === void 0 && (h = setTimeout(D, d)), y;
|
|
124
124
|
}
|
|
125
|
-
return S.cancel = I, S.flush =
|
|
125
|
+
return S.cancel = I, S.flush = M, S;
|
|
126
126
|
}
|
|
127
127
|
var el = _t;
|
|
128
|
-
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",
|
|
129
|
-
const y = j(null), h = j(null), v = Je(), L = j(),
|
|
128
|
+
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", al = (e, d, f, c, m, w) => {
|
|
129
|
+
const y = j(null), h = j(null), v = Je(), L = j(), T = j(!1), b = j(""), P = j(""), p = k(() => e.mode === "multiple" || e.mode === "tags"), g = {
|
|
130
130
|
label: "name",
|
|
131
131
|
children: "children",
|
|
132
132
|
pathName: "pathName",
|
|
133
133
|
disabled: "disabled",
|
|
134
134
|
...c.props ?? {}
|
|
135
|
-
}, R = He.value === "zh-CN" ? "," : ", ",
|
|
135
|
+
}, R = He.value === "zh-CN" ? "," : ", ", E = (t) => {
|
|
136
136
|
if (typeof t != "string") return !1;
|
|
137
137
|
const o = t.trim();
|
|
138
138
|
return o ? /^\d+$/.test(o) : !1;
|
|
139
|
-
}, D = (t) => typeof t == "number" ||
|
|
139
|
+
}, D = (t) => typeof t == "number" || E(t), B = (t) => typeof t != "string" ? !1 : t.trim() !== "", I = k({
|
|
140
140
|
get: () => e.keyword || "",
|
|
141
141
|
set: (t) => {
|
|
142
142
|
d("update:keyword", t);
|
|
143
143
|
}
|
|
144
|
-
}),
|
|
144
|
+
}), M = k({
|
|
145
145
|
get: () => e.path,
|
|
146
146
|
set: (t) => {
|
|
147
147
|
d("update:path", t);
|
|
148
148
|
}
|
|
149
149
|
}), S = (t, o, s = []) => {
|
|
150
150
|
for (let l = 0; l < t.length; l++) {
|
|
151
|
-
const
|
|
151
|
+
const r = t[l], n = r[g.label];
|
|
152
152
|
if (s.push(n), n === o) return s.join("/");
|
|
153
|
-
if (
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
153
|
+
if (r.children && r.children.length > 0) {
|
|
154
|
+
const C = S(r[g.children], o, s);
|
|
155
|
+
if (C) return C;
|
|
156
156
|
}
|
|
157
157
|
s.pop();
|
|
158
158
|
}
|
|
@@ -178,8 +178,8 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
178
178
|
if (i.value.length === 0) return B(e.modelValue);
|
|
179
179
|
if (p.value) {
|
|
180
180
|
if (!u.value || !((t = u.value) != null && t.length)) return !0;
|
|
181
|
-
const o = i.value.map((n) => n[f.value]), s = Array.isArray(u.value) ? u.value : [], l = s.some((n) => B(n)),
|
|
182
|
-
return l ||
|
|
181
|
+
const o = i.value.map((n) => n[f.value]), s = Array.isArray(u.value) ? u.value : [], l = s.some((n) => B(n)), r = s.some((n) => D(n) && o.includes(n));
|
|
182
|
+
return l || r;
|
|
183
183
|
} else
|
|
184
184
|
return !u.value || i.value.find((s) => s[f.value] === u.value) ? !0 : B(e.modelValue);
|
|
185
185
|
};
|
|
@@ -191,11 +191,11 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
191
191
|
if (!Array.isArray(o) || !o.length)
|
|
192
192
|
$.value = "";
|
|
193
193
|
else {
|
|
194
|
-
const l = (o ?? []).map((
|
|
195
|
-
var
|
|
196
|
-
const n = (
|
|
197
|
-
return n ? e.showFullPath ? n == null ? void 0 : n[g.pathName] : n == null ? void 0 : n[g.label] : D(
|
|
198
|
-
}).filter((
|
|
194
|
+
const l = (o ?? []).map((r) => {
|
|
195
|
+
var C;
|
|
196
|
+
const n = (C = t == null ? void 0 : t.find) == null ? void 0 : C.call(t, (F) => (F == null ? void 0 : F[f.value]) === r);
|
|
197
|
+
return n ? e.showFullPath ? n == null ? void 0 : n[g.pathName] : n == null ? void 0 : n[g.label] : D(r) || r == null ? "" : String(r);
|
|
198
|
+
}).filter((r) => !!r);
|
|
199
199
|
$.value = l.join(R);
|
|
200
200
|
}
|
|
201
201
|
else if (!o)
|
|
@@ -216,32 +216,32 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
216
216
|
var t;
|
|
217
217
|
I.value = "", (t = v.value) == null || t.searchClear(), d("visible-change", !1);
|
|
218
218
|
}, le = tl(() => {
|
|
219
|
-
e.disabled || e.isView || (
|
|
220
|
-
}, 200),
|
|
219
|
+
e.disabled || e.isView || (T.value ? T.value = !1 : (document.body.click(), T.value = !0));
|
|
220
|
+
}, 200), A = async () => {
|
|
221
221
|
var o, s;
|
|
222
222
|
await _();
|
|
223
223
|
let t = [];
|
|
224
224
|
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)) {
|
|
225
|
-
const
|
|
226
|
-
m.value &&
|
|
225
|
+
const r = (Array.isArray(u.value) ? u.value : []).filter((n) => D(n));
|
|
226
|
+
m.value && r.length && await ((s = v.value) == null ? void 0 : s.lazyDataNextTick(r)), t = i.value.filter((n) => r.includes(n[f.value]));
|
|
227
227
|
}
|
|
228
228
|
d("change", u.value, t);
|
|
229
|
-
},
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
var s, l,
|
|
233
|
-
if (
|
|
229
|
+
}, W = j(!1), ae = async () => {
|
|
230
|
+
T.value = !1, u.value = p.value ? [] : "", A(), W.value = !0;
|
|
231
|
+
}, re = async (t) => {
|
|
232
|
+
var s, l, r, n, C, F;
|
|
233
|
+
if (W.value || !p.value) return;
|
|
234
234
|
if (!i.value.find((V) => (V == null ? void 0 : V[f.value]) === t)) {
|
|
235
|
-
|
|
235
|
+
A();
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
238
|
if (!m.value && !w.value) {
|
|
239
239
|
let V = (l = (s = v.value) == null ? void 0 : s.treeRef) == null ? void 0 : l.getNode(t);
|
|
240
|
-
V.checked = !1, (
|
|
240
|
+
V.checked = !1, (r = v.value) == null || r.childLinkParent(V, V.checked), (n = v.value) == null || n.parentLinkChild(V, V.checked);
|
|
241
241
|
}
|
|
242
242
|
if (m.value && e.parentLinkChildrenStrictly) {
|
|
243
243
|
let V = i.value.find((U) => U[f.value] === t);
|
|
244
|
-
if (V && ((
|
|
244
|
+
if (V && ((C = v.value) != null && C.getGrandChildrenFn)) {
|
|
245
245
|
const U = await v.value.getGrandChildrenFn(V);
|
|
246
246
|
if (U && U.length) {
|
|
247
247
|
const Pe = U.map((ce) => ce[f.value]);
|
|
@@ -249,32 +249,32 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
|
|
252
|
+
A();
|
|
253
253
|
}, ne = (t) => {
|
|
254
254
|
if (!e.filter) return;
|
|
255
255
|
const o = t && (t == null ? void 0 : t.trim());
|
|
256
|
-
I.value = o,
|
|
256
|
+
I.value = o, T.value || (T.value = !0);
|
|
257
257
|
}, oe = () => {
|
|
258
258
|
var t, o;
|
|
259
|
-
p.value || (
|
|
260
|
-
}, H = () => y != null && y.value && y.value.offsetWidth ? y.value.offsetWidth + "px" : "100%",
|
|
259
|
+
p.value || (T.value = !1, e.filter && ((o = (t = h.value) == null ? void 0 : t.$select) == null || o.focus()));
|
|
260
|
+
}, H = () => y != null && y.value && y.value.offsetWidth ? y.value.offsetWidth + "px" : "100%", G = () => {
|
|
261
261
|
_(() => {
|
|
262
262
|
b.value = e.width ? te(e.width) : H(), P.value = e.poppverWidth ? te(e.poppverWidth) : H();
|
|
263
263
|
});
|
|
264
264
|
}, ie = (t) => {
|
|
265
265
|
var o;
|
|
266
|
-
|
|
266
|
+
W.value && (W.value = !1), (o = h.value) == null || o.toChangeMaxCount(!0), d("focus", t);
|
|
267
267
|
}, se = (t) => {
|
|
268
268
|
d("blur", t);
|
|
269
269
|
};
|
|
270
270
|
ye(
|
|
271
|
-
() =>
|
|
271
|
+
() => T.value,
|
|
272
272
|
(t) => {
|
|
273
273
|
var s, l;
|
|
274
274
|
const o = (s = y.value) == null ? void 0 : s.querySelector(".ant-select-arrow>.das-icon");
|
|
275
275
|
t ? o.style.transform = "rotate(180deg)" : o.style.transform = "", (l = h.value) == null || l.toChangeMaxCount(t), _(() => {
|
|
276
|
-
var
|
|
277
|
-
(
|
|
276
|
+
var r, n, C;
|
|
277
|
+
(C = (n = (r = a(L)) == null ? void 0 : r.popperRef) == null ? void 0 : n.popperInstanceRef) == null || C.update();
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
);
|
|
@@ -290,12 +290,12 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
290
290
|
u.value = t;
|
|
291
291
|
};
|
|
292
292
|
return Ie(async () => {
|
|
293
|
-
|
|
293
|
+
G();
|
|
294
294
|
const t = await ue();
|
|
295
295
|
t && (K.value = Ke((o) => {
|
|
296
296
|
_(() => {
|
|
297
|
-
var s, l,
|
|
298
|
-
(
|
|
297
|
+
var s, l, r;
|
|
298
|
+
(r = (l = (s = a(L)) == null ? void 0 : s.popperRef) == null ? void 0 : l.popperInstanceRef) == null || r.update(), G();
|
|
299
299
|
});
|
|
300
300
|
}, t));
|
|
301
301
|
}), Be(() => {
|
|
@@ -311,18 +311,18 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
311
311
|
realWidth: b,
|
|
312
312
|
realPoppverWidth: P,
|
|
313
313
|
poppverContentStyle: Q,
|
|
314
|
-
treePath:
|
|
314
|
+
treePath: M,
|
|
315
315
|
treeProps: g,
|
|
316
316
|
selectOptions: i,
|
|
317
317
|
currentLabel: $,
|
|
318
318
|
poppverShow: Y,
|
|
319
319
|
poppverHide: Z,
|
|
320
|
-
treeChange:
|
|
320
|
+
treeChange: A,
|
|
321
321
|
nodeChange: oe,
|
|
322
|
-
deselect:
|
|
322
|
+
deselect: re,
|
|
323
323
|
selectSearch: ne,
|
|
324
|
-
selectClear:
|
|
325
|
-
popoverVisible:
|
|
324
|
+
selectClear: ae,
|
|
325
|
+
popoverVisible: T,
|
|
326
326
|
selectMouseDown: le,
|
|
327
327
|
resetDefaultVal: de,
|
|
328
328
|
focus: ie,
|
|
@@ -331,7 +331,7 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
331
331
|
textHide: O,
|
|
332
332
|
showCheckbox: p
|
|
333
333
|
};
|
|
334
|
-
},
|
|
334
|
+
}, rl = {
|
|
335
335
|
key: 1,
|
|
336
336
|
class: "das-tree-select__selct-text-content"
|
|
337
337
|
}, nl = {
|
|
@@ -374,16 +374,16 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
374
374
|
},
|
|
375
375
|
emits: ["update:modelValue", "update:path", "update:keyword", "change", "focus", "blur", "visible-change"],
|
|
376
376
|
setup(e, { expose: d, emit: f }) {
|
|
377
|
-
const c = e, m = f, w = Re(), y = k(() => c.placeholder || Ue("请选择")), h = k(() => w.nodeKey ?? w["node-key"] ?? "id"), v = k(() => c.load ?? void 0), L = k(() => c.search ?? void 0),
|
|
377
|
+
const c = e, m = f, w = Re(), y = k(() => c.placeholder || Ue("请选择")), h = k(() => w.nodeKey ?? w["node-key"] ?? "id"), v = k(() => c.load ?? void 0), L = k(() => c.search ?? void 0), T = k(() => c.getGrandChildren ?? void 0), b = k(() => w.lazy ?? !!v.value), P = k(() => b.value ? !1 : c.defaultExpandAll), p = k(() => c.selectAttrs ? c.selectAttrs : {}), g = k(() => !!(c.disabled || c.isView)), R = k(() => c.parentLinkChildrenStrictly || c.childLinkParentStrictly ? !0 : !!(c.checkStrictly ?? b.value)), E = {
|
|
378
378
|
fn: () => {
|
|
379
|
-
|
|
379
|
+
G.value = !1;
|
|
380
380
|
}
|
|
381
381
|
}, D = (l) => {
|
|
382
382
|
l.key === "Enter" && l.stopPropagation();
|
|
383
383
|
}, {
|
|
384
384
|
dasTreeSelectRef: B,
|
|
385
385
|
$tree: I,
|
|
386
|
-
$select:
|
|
386
|
+
$select: M,
|
|
387
387
|
innerValue: S,
|
|
388
388
|
innerKeyword: i,
|
|
389
389
|
realWidth: u,
|
|
@@ -394,14 +394,14 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
394
394
|
treePath: Y,
|
|
395
395
|
treeProps: Z,
|
|
396
396
|
selectOptions: le,
|
|
397
|
-
currentLabel:
|
|
398
|
-
popoverRef:
|
|
399
|
-
deselect:
|
|
400
|
-
poppverShow:
|
|
397
|
+
currentLabel: A,
|
|
398
|
+
popoverRef: W,
|
|
399
|
+
deselect: ae,
|
|
400
|
+
poppverShow: re,
|
|
401
401
|
poppverHide: ne,
|
|
402
402
|
selectSearch: oe,
|
|
403
403
|
selectMouseDown: H,
|
|
404
|
-
popoverVisible:
|
|
404
|
+
popoverVisible: G,
|
|
405
405
|
resetDefaultVal: ie,
|
|
406
406
|
selectClear: se,
|
|
407
407
|
focus: K,
|
|
@@ -409,36 +409,36 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
409
409
|
textHide: de,
|
|
410
410
|
checkselectOptionsData: t,
|
|
411
411
|
showCheckbox: o
|
|
412
|
-
} =
|
|
412
|
+
} = al(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());
|
|
413
413
|
return d({
|
|
414
414
|
/** das-select */
|
|
415
|
-
$select:
|
|
415
|
+
$select: M,
|
|
416
416
|
/** das-tree */
|
|
417
417
|
$tree: I,
|
|
418
418
|
/** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
|
|
419
419
|
resetDefaultVal: ie
|
|
420
|
-
}), (l,
|
|
420
|
+
}), (l, r) => be((q(), fe(
|
|
421
421
|
"div",
|
|
422
422
|
{
|
|
423
423
|
ref_key: "dasTreeSelectRef",
|
|
424
424
|
ref: B,
|
|
425
|
-
class: Ee({ "das-ui-tree-select": !0, "is-lazy": b.value, "text-hide":
|
|
426
|
-
style: ge({ width:
|
|
425
|
+
class: Ee({ "das-ui-tree-select": !0, "is-lazy": b.value, "text-hide": a(de), "show-select": e.showSelectDom }),
|
|
426
|
+
style: ge({ width: a(u) })
|
|
427
427
|
},
|
|
428
428
|
[
|
|
429
429
|
Me(` 在使用 2.x 版本的element-UI时,里面的Popover气泡卡片组件,有自带的自动适应位置的功能;在 element plus 中,直接使用,已经无法自适应气泡弹窗的位置了;需要自行配置:fallback-placements="['bottom', 'top', 'right', 'left']" `),
|
|
430
|
-
ve(
|
|
430
|
+
ve(a(ze), {
|
|
431
431
|
ref_key: "popoverRef",
|
|
432
|
-
ref:
|
|
433
|
-
visible:
|
|
432
|
+
ref: W,
|
|
433
|
+
visible: a(G),
|
|
434
434
|
"popper-class": "das-tree-select-popper",
|
|
435
435
|
placement: "bottom-start",
|
|
436
436
|
"show-arrow": !1,
|
|
437
|
-
width:
|
|
437
|
+
width: a(O),
|
|
438
438
|
disabled: g.value,
|
|
439
439
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
440
|
-
onShow:
|
|
441
|
-
onHide:
|
|
440
|
+
onShow: a(re),
|
|
441
|
+
onHide: a(ne)
|
|
442
442
|
}, {
|
|
443
443
|
reference: x(() => [
|
|
444
444
|
e.showSelectDom ? (q(), fe(
|
|
@@ -446,23 +446,23 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
446
446
|
{
|
|
447
447
|
key: 0,
|
|
448
448
|
class: "das-tree-select__select-content",
|
|
449
|
-
onMousedown:
|
|
449
|
+
onMousedown: r[1] || (r[1] = he(
|
|
450
450
|
//@ts-ignore
|
|
451
|
-
(...n) =>
|
|
451
|
+
(...n) => a(H) && a(H)(...n),
|
|
452
452
|
["stop"]
|
|
453
453
|
))
|
|
454
454
|
},
|
|
455
455
|
[
|
|
456
|
-
ve(
|
|
456
|
+
ve(a(qe), pe({
|
|
457
457
|
ref_key: "$select",
|
|
458
|
-
ref:
|
|
459
|
-
class: { "is-active":
|
|
458
|
+
ref: M,
|
|
459
|
+
class: { "is-active": a(G) },
|
|
460
460
|
dropdownClassName: "das-tree-select-dropdown",
|
|
461
|
-
modelValue:
|
|
462
|
-
"onUpdate:modelValue":
|
|
461
|
+
modelValue: a(S),
|
|
462
|
+
"onUpdate:modelValue": r[0] || (r[0] = (n) => X(S) ? S.value = n : null)
|
|
463
463
|
}, p.value, {
|
|
464
|
-
searchValue:
|
|
465
|
-
options:
|
|
464
|
+
searchValue: a(i),
|
|
465
|
+
options: a(le),
|
|
466
466
|
disabled: e.disabled,
|
|
467
467
|
isView: e.isView,
|
|
468
468
|
size: e.size,
|
|
@@ -471,10 +471,10 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
471
471
|
placeholder: y.value,
|
|
472
472
|
"show-search": e.filter,
|
|
473
473
|
filterOption: e.filter,
|
|
474
|
-
width:
|
|
474
|
+
width: a(u),
|
|
475
475
|
fieldNames: {
|
|
476
476
|
value: h.value,
|
|
477
|
-
label: e.showFullPath ?
|
|
477
|
+
label: e.showFullPath ? a(Z).pathName : a(Z).label
|
|
478
478
|
},
|
|
479
479
|
isTooltip: s.value,
|
|
480
480
|
errorMode: e.errorMode,
|
|
@@ -482,19 +482,19 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
482
482
|
errorLabel: e.errorLabel,
|
|
483
483
|
autoClearSearchValue: !1,
|
|
484
484
|
isExterControlCount: "",
|
|
485
|
-
onDeselect:
|
|
486
|
-
onSearch:
|
|
485
|
+
onDeselect: a(ae),
|
|
486
|
+
onSearch: a(oe),
|
|
487
487
|
onInputKeyDown: D,
|
|
488
|
-
onFocus:
|
|
489
|
-
onBlur:
|
|
490
|
-
onClear:
|
|
488
|
+
onFocus: a(K),
|
|
489
|
+
onBlur: a(ue),
|
|
490
|
+
onClear: a(se)
|
|
491
491
|
}), {
|
|
492
492
|
suffixIcon: x(() => [
|
|
493
|
-
ve(
|
|
493
|
+
ve(a(Ye), {
|
|
494
494
|
size: "medium",
|
|
495
495
|
style: { transition: "transform 0.5s" },
|
|
496
|
-
iconColor:
|
|
497
|
-
}
|
|
496
|
+
iconColor: "#666666"
|
|
497
|
+
})
|
|
498
498
|
]),
|
|
499
499
|
_: 1
|
|
500
500
|
/* STABLE */
|
|
@@ -502,14 +502,14 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
502
502
|
],
|
|
503
503
|
32
|
|
504
504
|
/* NEED_HYDRATION */
|
|
505
|
-
)) : be((q(), fe("div",
|
|
505
|
+
)) : be((q(), fe("div", rl, [
|
|
506
506
|
Ae(
|
|
507
|
-
We(
|
|
507
|
+
We(a(A)),
|
|
508
508
|
1
|
|
509
509
|
/* TEXT */
|
|
510
510
|
)
|
|
511
511
|
])), [
|
|
512
|
-
[
|
|
512
|
+
[a(Ze)]
|
|
513
513
|
])
|
|
514
514
|
]),
|
|
515
515
|
default: x(() => [
|
|
@@ -517,24 +517,24 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
517
517
|
"div",
|
|
518
518
|
{
|
|
519
519
|
class: "das-tree-select__tree-content",
|
|
520
|
-
style: ge(
|
|
521
|
-
onClick:
|
|
520
|
+
style: ge(a($)),
|
|
521
|
+
onClick: r[6] || (r[6] = he(() => {
|
|
522
522
|
}, ["stop"])),
|
|
523
|
-
onMousedown:
|
|
523
|
+
onMousedown: r[7] || (r[7] = he(() => {
|
|
524
524
|
}, ["stop"]))
|
|
525
525
|
},
|
|
526
526
|
[
|
|
527
|
-
e.virtual ? (q(), ke(
|
|
527
|
+
e.virtual ? (q(), ke(a(Xe), pe({
|
|
528
528
|
key: 1,
|
|
529
529
|
ref_key: "$tree",
|
|
530
530
|
ref: I
|
|
531
|
-
},
|
|
531
|
+
}, a(w), {
|
|
532
532
|
data: e.data,
|
|
533
|
-
modelValue:
|
|
534
|
-
"onUpdate:modelValue":
|
|
535
|
-
"filter-value":
|
|
536
|
-
"onUpdate:filterValue":
|
|
537
|
-
"show-checkbox":
|
|
533
|
+
modelValue: a(S),
|
|
534
|
+
"onUpdate:modelValue": r[4] || (r[4] = (n) => X(S) ? S.value = n : null),
|
|
535
|
+
"filter-value": a(i),
|
|
536
|
+
"onUpdate:filterValue": r[5] || (r[5] = (n) => X(i) ? i.value = n : null),
|
|
537
|
+
"show-checkbox": a(o),
|
|
538
538
|
"is-filter": e.filter,
|
|
539
539
|
"show-filter-input": !1,
|
|
540
540
|
"filter-mode": "input",
|
|
@@ -542,19 +542,19 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
542
542
|
load: v.value,
|
|
543
543
|
"batch-load": c.batchLoad,
|
|
544
544
|
search: L.value,
|
|
545
|
-
path:
|
|
545
|
+
path: a(Y),
|
|
546
546
|
"default-expand-all": P.value,
|
|
547
547
|
"check-strictly": b.value ? !0 : R.value,
|
|
548
548
|
parentLinkChildrenStrictly: e.parentLinkChildrenStrictly,
|
|
549
|
-
getGrandChildren:
|
|
549
|
+
getGrandChildren: T.value,
|
|
550
550
|
childLinkParentStrictly: e.childLinkParentStrictly,
|
|
551
|
-
onChange:
|
|
552
|
-
onNodeChange:
|
|
551
|
+
onChange: a(z),
|
|
552
|
+
onNodeChange: a(Q)
|
|
553
553
|
}), Se({
|
|
554
|
-
default: x(({ node: n, data:
|
|
554
|
+
default: x(({ node: n, data: C }) => [
|
|
555
555
|
N(l.$slots, "default", {
|
|
556
556
|
node: n,
|
|
557
|
-
data:
|
|
557
|
+
data: C
|
|
558
558
|
})
|
|
559
559
|
]),
|
|
560
560
|
_: 2
|
|
@@ -588,17 +588,17 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
588
588
|
]),
|
|
589
589
|
key: "3"
|
|
590
590
|
} : void 0
|
|
591
|
-
]), 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(
|
|
591
|
+
]), 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(a(Qe), pe({
|
|
592
592
|
key: 0,
|
|
593
593
|
ref_key: "$tree",
|
|
594
594
|
ref: I
|
|
595
|
-
},
|
|
595
|
+
}, a(w), {
|
|
596
596
|
data: e.data,
|
|
597
|
-
modelValue:
|
|
598
|
-
"onUpdate:modelValue":
|
|
599
|
-
"filter-value":
|
|
600
|
-
"onUpdate:filterValue":
|
|
601
|
-
"show-checkbox":
|
|
597
|
+
modelValue: a(S),
|
|
598
|
+
"onUpdate:modelValue": r[2] || (r[2] = (n) => X(S) ? S.value = n : null),
|
|
599
|
+
"filter-value": a(i),
|
|
600
|
+
"onUpdate:filterValue": r[3] || (r[3] = (n) => X(i) ? i.value = n : null),
|
|
601
|
+
"show-checkbox": a(o),
|
|
602
602
|
"is-filter": e.filter,
|
|
603
603
|
"show-filter-input": !1,
|
|
604
604
|
"filter-mode": "input",
|
|
@@ -606,19 +606,19 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
606
606
|
load: v.value,
|
|
607
607
|
"batch-load": c.batchLoad,
|
|
608
608
|
search: L.value,
|
|
609
|
-
path:
|
|
609
|
+
path: a(Y),
|
|
610
610
|
"default-expand-all": P.value,
|
|
611
611
|
"check-strictly": b.value ? !0 : R.value,
|
|
612
612
|
parentLinkChildrenStrictly: e.parentLinkChildrenStrictly,
|
|
613
|
-
getGrandChildren:
|
|
613
|
+
getGrandChildren: T.value,
|
|
614
614
|
childLinkParentStrictly: e.childLinkParentStrictly,
|
|
615
|
-
onChange:
|
|
616
|
-
onNodeChange:
|
|
615
|
+
onChange: a(z),
|
|
616
|
+
onNodeChange: a(Q)
|
|
617
617
|
}), Se({
|
|
618
|
-
default: x(({ node: n, data:
|
|
618
|
+
default: x(({ node: n, data: C }) => [
|
|
619
619
|
N(l.$slots, "default", {
|
|
620
620
|
node: n,
|
|
621
|
-
data:
|
|
621
|
+
data: C
|
|
622
622
|
})
|
|
623
623
|
]),
|
|
624
624
|
_: 2
|
|
@@ -665,12 +665,12 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
665
665
|
6
|
|
666
666
|
/* CLASS, STYLE */
|
|
667
667
|
)), [
|
|
668
|
-
[
|
|
668
|
+
[a(et), E]
|
|
669
669
|
]);
|
|
670
670
|
}
|
|
671
|
-
}), kl = Fe(ol), Sl = () => j(null),
|
|
671
|
+
}), kl = Fe(ol), Sl = () => j(null), Tl = { title: "tree-select 树选择" };
|
|
672
672
|
export {
|
|
673
673
|
kl as DasTreeSelect,
|
|
674
674
|
Sl as DasTreeSelectRef,
|
|
675
|
-
|
|
675
|
+
Tl as default
|
|
676
676
|
};
|
|
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-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
|
|
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:#666!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
|