@das-fed/upf-ui 6.4.0-dev.246 → 6.4.0-dev.248
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 +2 -2
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +2 -2
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +2 -2
- package/package.json +3 -3
- package/packages/business-components/ai-panel/index.js +3 -2
- package/packages/business-components/app-container/index.js +3 -2
- package/packages/business-components/area-phone-select/index.js +3 -2
- package/packages/business-components/change-enterprises/index.js +3 -2
- package/packages/business-components/change-pwd/index.js +3 -2
- package/packages/business-components/currency-page/index.js +3 -2
- package/packages/business-components/device-panel/index.js +3 -2
- package/packages/business-components/echarts/index.js +3 -2
- package/packages/business-components/export-button/index.js +3 -2
- package/packages/business-components/import-button/index.js +3 -2
- package/packages/business-components/layout-breadcrumb/index.js +3 -2
- package/packages/business-components/model-table-dialog/index.js +3 -2
- package/packages/business-components/payment/index.js +3 -2
- package/packages/business-components/process-configuration/index.js +3 -2
- package/packages/business-components/process-form/index.js +3 -2
- package/packages/business-components/process-log/index.js +3 -2
- package/packages/business-components/process-table/index.js +3 -2
- package/packages/business-components/upload-file/index.js +3 -2
- package/packages/business-components/urgent-panel/index.js +3 -2
- package/packages/business-components/user-org-dialog/index.js +3 -2
- package/packages/business-components/video-dialog/index.js +3 -2
- package/packages/components/alert/index.js +3 -2
- package/packages/components/audio-video/index.js +3 -2
- package/packages/components/autocomplete/index.js +3 -2
- package/packages/components/breadcrumb/index.js +3 -2
- package/packages/components/button/index.js +3 -2
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/calendar/index.js +3 -2
- package/packages/components/cascader/index.d.ts +2 -9
- package/packages/components/cascader/index.js +24 -23
- 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 +4 -3
- 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/collapse-panel/index.js +3 -2
- package/packages/components/collapse-transition/index.js +3 -2
- package/packages/components/collaspe/index.js +3 -2
- package/packages/components/color-picker/index.js +3 -2
- package/packages/components/custom-search-item/index.js +3 -2
- package/packages/components/date-picker/index.js +15 -14
- 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/index.js +3 -2
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +3 -2
- package/packages/components/drawer/index.js +3 -2
- package/packages/components/dropdown/index.js +59 -52
- 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/edit-table/index.js +3 -2
- package/packages/components/empty/index.js +3 -2
- package/packages/components/form/index.js +3 -2
- package/packages/components/form-item/index.js +3 -2
- package/packages/components/icon/index.js +3 -2
- package/packages/components/icon/style.css +1 -1
- package/packages/components/image-upload/index.js +3 -2
- package/packages/components/image-viewer/index.js +3 -2
- package/packages/components/input/index.js +3 -2
- 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 +4 -3
- 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 +6 -5
- 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/live-player/index.js +3 -2
- package/packages/components/loading/index.js +3 -2
- package/packages/components/map/index.js +3 -2
- package/packages/components/menu-aside/index.js +3 -2
- package/packages/components/menu-header/index.js +3 -2
- package/packages/components/message/index.js +3 -2
- package/packages/components/notification/index.js +3 -2
- package/packages/components/pagination/index.js +5 -4
- 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/popover/index.js +3 -2
- package/packages/components/popup-mask/index.js +3 -2
- package/packages/components/preview/index.js +3 -2
- package/packages/components/progress/index.js +3 -2
- package/packages/components/radio/index.js +3 -2
- package/packages/components/radio-tabs/index.js +3 -2
- package/packages/components/rich-editor/index.js +3 -2
- package/packages/components/scrollbar/index.js +3 -2
- package/packages/components/search/index.js +4 -3
- 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/search-form/index.js +3 -2
- package/packages/components/select/index.js +6 -5
- 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 +4 -3
- 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/select-list/index.js +3 -2
- package/packages/components/special-range-picker-month/index.js +3 -2
- package/packages/components/special-range-picker-year/index.js +3 -2
- package/packages/components/spin/index.js +3 -2
- package/packages/components/split-panel/index.js +4 -3
- 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/step/index.js +3 -2
- package/packages/components/steps/index.js +3 -2
- package/packages/components/switch/index.js +3 -2
- package/packages/components/table/index.js +3 -2
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/index.js +3 -2
- package/packages/components/tag/index.js +3 -2
- package/packages/components/text-tooltip/index.js +3 -2
- package/packages/components/time-line/index.js +3 -2
- package/packages/components/tooltip/index.js +3 -2
- package/packages/components/tree/index.js +3 -2
- package/packages/components/tree-select/index.js +95 -94
- 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-table/index.js +3 -2
- package/packages/components/tree-v2/index.js +3 -2
- package/packages/components/tree-v2/style.css +2 -2
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/upload/index.js +3 -2
- package/packages/components/virtual-tree/index.js +3 -2
- package/packages/components/watermark/index.js +3 -2
- package/packages/global/style/index.js +1 -1
- package/packages/global/theme/index.d.ts +2 -0
- package/packages/global/theme/index.js +13 -11
- 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,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { withInstall as Ge } from "@das-fed/upf-utils/with-install/index";
|
|
1
|
+
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";
|
|
2
|
+
import { withInstall as Fe } from "@das-fed/upf-utils/with-install/index";
|
|
4
3
|
import { ElPopover as ze } from "element-plus";
|
|
5
4
|
import "element-plus/es/components/popover/style/css";
|
|
6
5
|
import { currentLang as He, t as Ue } from "@das-fed/upf-web/packages/i18n/index";
|
|
@@ -11,7 +10,9 @@ import { DasIconXiala as Ye } from "@das-fed/upf-ui/packages/icons/xiala/index";
|
|
|
11
10
|
import { vDasTooltip as Ze } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
12
11
|
import { SizeWatcher as Ke } from "@das-fed/upf-utils/size-watcher";
|
|
13
12
|
import { flatTree as _e } from "@das-fed/upf-utils/common-tools";
|
|
14
|
-
import { vClickOutside as et } from "@das-fed/upf-utils/directive"
|
|
13
|
+
import { vClickOutside as et } from "@das-fed/upf-utils/directive"
|
|
14
|
+
import '@das-fed/upf-ui/packages/components/tree-select/style.css';
|
|
15
|
+
;
|
|
15
16
|
var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
16
17
|
function tt(e) {
|
|
17
18
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -20,7 +21,7 @@ function lt(e) {
|
|
|
20
21
|
var d = typeof e;
|
|
21
22
|
return e != null && (d == "object" || d == "function");
|
|
22
23
|
}
|
|
23
|
-
var Ve = lt,
|
|
24
|
+
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
25
|
return st.Date.now();
|
|
25
26
|
}, dt = ut, ct = /\s/;
|
|
26
27
|
function ft(e) {
|
|
@@ -59,11 +60,11 @@ var Ot = Bt, Rt = It, Et = Ot, Mt = "[object Symbol]";
|
|
|
59
60
|
function At(e) {
|
|
60
61
|
return typeof e == "symbol" || Et(e) && Rt(e) == Mt;
|
|
61
62
|
}
|
|
62
|
-
var Wt = At,
|
|
63
|
+
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
64
|
function Xt(e) {
|
|
64
65
|
if (typeof e == "number")
|
|
65
66
|
return e;
|
|
66
|
-
if (
|
|
67
|
+
if (Ft(e))
|
|
67
68
|
return xe;
|
|
68
69
|
if ($e(e)) {
|
|
69
70
|
var d = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -71,7 +72,7 @@ function Xt(e) {
|
|
|
71
72
|
}
|
|
72
73
|
if (typeof e != "string")
|
|
73
74
|
return e === 0 ? e : +e;
|
|
74
|
-
e =
|
|
75
|
+
e = Gt(e);
|
|
75
76
|
var f = Ht.test(e);
|
|
76
77
|
return f || Ut.test(e) ? qt(e.slice(2), f ? 2 : 8) : zt.test(e) ? xe : +e;
|
|
77
78
|
}
|
|
@@ -124,7 +125,7 @@ function _t(e, d, f) {
|
|
|
124
125
|
return S.cancel = I, S.flush = A, S;
|
|
125
126
|
}
|
|
126
127
|
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",
|
|
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", rl = (e, d, f, c, m, w) => {
|
|
128
129
|
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
130
|
label: "name",
|
|
130
131
|
children: "children",
|
|
@@ -147,10 +148,10 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
147
148
|
}
|
|
148
149
|
}), S = (t, o, s = []) => {
|
|
149
150
|
for (let l = 0; l < t.length; l++) {
|
|
150
|
-
const
|
|
151
|
+
const a = t[l], n = a[g.label];
|
|
151
152
|
if (s.push(n), n === o) return s.join("/");
|
|
152
|
-
if (
|
|
153
|
-
const T = S(
|
|
153
|
+
if (a.children && a.children.length > 0) {
|
|
154
|
+
const T = S(a[g.children], o, s);
|
|
154
155
|
if (T) return T;
|
|
155
156
|
}
|
|
156
157
|
s.pop();
|
|
@@ -177,8 +178,8 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
177
178
|
if (i.value.length === 0) return B(e.modelValue);
|
|
178
179
|
if (p.value) {
|
|
179
180
|
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 ||
|
|
181
|
+
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));
|
|
182
|
+
return l || a;
|
|
182
183
|
} else
|
|
183
184
|
return !u.value || i.value.find((s) => s[f.value] === u.value) ? !0 : B(e.modelValue);
|
|
184
185
|
};
|
|
@@ -190,11 +191,11 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
190
191
|
if (!Array.isArray(o) || !o.length)
|
|
191
192
|
$.value = "";
|
|
192
193
|
else {
|
|
193
|
-
const l = (o ?? []).map((
|
|
194
|
+
const l = (o ?? []).map((a) => {
|
|
194
195
|
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((
|
|
196
|
+
const n = (T = t == null ? void 0 : t.find) == null ? void 0 : T.call(t, (F) => (F == null ? void 0 : F[f.value]) === a);
|
|
197
|
+
return n ? e.showFullPath ? n == null ? void 0 : n[g.pathName] : n == null ? void 0 : n[g.label] : D(a) || a == null ? "" : String(a);
|
|
198
|
+
}).filter((a) => !!a);
|
|
198
199
|
$.value = l.join(R);
|
|
199
200
|
}
|
|
200
201
|
else if (!o)
|
|
@@ -221,22 +222,22 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
221
222
|
await _();
|
|
222
223
|
let t = [];
|
|
223
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)) {
|
|
224
|
-
const
|
|
225
|
-
m.value &&
|
|
225
|
+
const a = (Array.isArray(u.value) ? u.value : []).filter((n) => D(n));
|
|
226
|
+
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
227
|
}
|
|
227
228
|
d("change", u.value, t);
|
|
228
|
-
},
|
|
229
|
-
C.value = !1, u.value = p.value ? [] : "", W(),
|
|
230
|
-
},
|
|
231
|
-
var s, l,
|
|
232
|
-
if (
|
|
229
|
+
}, G = j(!1), re = async () => {
|
|
230
|
+
C.value = !1, u.value = p.value ? [] : "", W(), G.value = !0;
|
|
231
|
+
}, ae = async (t) => {
|
|
232
|
+
var s, l, a, n, T, F;
|
|
233
|
+
if (G.value || !p.value) return;
|
|
233
234
|
if (!i.value.find((V) => (V == null ? void 0 : V[f.value]) === t)) {
|
|
234
235
|
W();
|
|
235
236
|
return;
|
|
236
237
|
}
|
|
237
238
|
if (!m.value && !w.value) {
|
|
238
239
|
let V = (l = (s = v.value) == null ? void 0 : s.treeRef) == null ? void 0 : l.getNode(t);
|
|
239
|
-
V.checked = !1, (
|
|
240
|
+
V.checked = !1, (a = v.value) == null || a.childLinkParent(V, V.checked), (n = v.value) == null || n.parentLinkChild(V, V.checked);
|
|
240
241
|
}
|
|
241
242
|
if (m.value && e.parentLinkChildrenStrictly) {
|
|
242
243
|
let V = i.value.find((U) => U[f.value] === t);
|
|
@@ -244,7 +245,7 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
244
245
|
const U = await v.value.getGrandChildrenFn(V);
|
|
245
246
|
if (U && U.length) {
|
|
246
247
|
const Pe = U.map((ce) => ce[f.value]);
|
|
247
|
-
u.value && ((
|
|
248
|
+
u.value && ((F = u.value) != null && F.length) && (u.value = u.value.filter((ce) => !Pe.includes(ce)));
|
|
248
249
|
}
|
|
249
250
|
}
|
|
250
251
|
}
|
|
@@ -262,7 +263,7 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
262
263
|
});
|
|
263
264
|
}, ie = (t) => {
|
|
264
265
|
var o;
|
|
265
|
-
|
|
266
|
+
G.value && (G.value = !1), (o = h.value) == null || o.toChangeMaxCount(!0), d("focus", t);
|
|
266
267
|
}, se = (t) => {
|
|
267
268
|
d("blur", t);
|
|
268
269
|
};
|
|
@@ -272,8 +273,8 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
272
273
|
var s, l;
|
|
273
274
|
const o = (s = y.value) == null ? void 0 : s.querySelector(".ant-select-arrow>.das-icon");
|
|
274
275
|
t ? o.style.transform = "rotate(180deg)" : o.style.transform = "", (l = h.value) == null || l.toChangeMaxCount(t), _(() => {
|
|
275
|
-
var
|
|
276
|
-
(T = (n = (
|
|
276
|
+
var a, n, T;
|
|
277
|
+
(T = (n = (a = r(L)) == null ? void 0 : a.popperRef) == null ? void 0 : n.popperInstanceRef) == null || T.update();
|
|
277
278
|
});
|
|
278
279
|
}
|
|
279
280
|
);
|
|
@@ -293,8 +294,8 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
293
294
|
const t = await ue();
|
|
294
295
|
t && (K.value = Ke((o) => {
|
|
295
296
|
_(() => {
|
|
296
|
-
var s, l,
|
|
297
|
-
(
|
|
297
|
+
var s, l, a;
|
|
298
|
+
(a = (l = (s = r(L)) == null ? void 0 : s.popperRef) == null ? void 0 : l.popperInstanceRef) == null || a.update(), E();
|
|
298
299
|
});
|
|
299
300
|
}, t));
|
|
300
301
|
}), Be(() => {
|
|
@@ -318,9 +319,9 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
318
319
|
poppverHide: Z,
|
|
319
320
|
treeChange: W,
|
|
320
321
|
nodeChange: oe,
|
|
321
|
-
deselect:
|
|
322
|
+
deselect: ae,
|
|
322
323
|
selectSearch: ne,
|
|
323
|
-
selectClear:
|
|
324
|
+
selectClear: re,
|
|
324
325
|
popoverVisible: C,
|
|
325
326
|
selectMouseDown: le,
|
|
326
327
|
resetDefaultVal: de,
|
|
@@ -330,7 +331,7 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
330
331
|
textHide: O,
|
|
331
332
|
showCheckbox: p
|
|
332
333
|
};
|
|
333
|
-
},
|
|
334
|
+
}, al = {
|
|
334
335
|
key: 1,
|
|
335
336
|
class: "das-tree-select__selct-text-content"
|
|
336
337
|
}, nl = {
|
|
@@ -394,9 +395,9 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
394
395
|
treeProps: Z,
|
|
395
396
|
selectOptions: le,
|
|
396
397
|
currentLabel: W,
|
|
397
|
-
popoverRef:
|
|
398
|
-
deselect:
|
|
399
|
-
poppverShow:
|
|
398
|
+
popoverRef: G,
|
|
399
|
+
deselect: re,
|
|
400
|
+
poppverShow: ae,
|
|
400
401
|
poppverHide: ne,
|
|
401
402
|
selectSearch: oe,
|
|
402
403
|
selectMouseDown: H,
|
|
@@ -408,7 +409,7 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
408
409
|
textHide: de,
|
|
409
410
|
checkselectOptionsData: t,
|
|
410
411
|
showCheckbox: o
|
|
411
|
-
} =
|
|
412
|
+
} = 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
413
|
return d({
|
|
413
414
|
/** das-select */
|
|
414
415
|
$select: A,
|
|
@@ -416,28 +417,28 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
416
417
|
$tree: I,
|
|
417
418
|
/** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
|
|
418
419
|
resetDefaultVal: ie
|
|
419
|
-
}), (l,
|
|
420
|
+
}), (l, a) => be((q(), fe(
|
|
420
421
|
"div",
|
|
421
422
|
{
|
|
422
423
|
ref_key: "dasTreeSelectRef",
|
|
423
424
|
ref: B,
|
|
424
|
-
class: Ee({ "das-ui-tree-select": !0, "is-lazy": b.value, "text-hide":
|
|
425
|
-
style: ge({ width:
|
|
425
|
+
class: Ee({ "das-ui-tree-select": !0, "is-lazy": b.value, "text-hide": r(de), "show-select": e.showSelectDom }),
|
|
426
|
+
style: ge({ width: r(u) })
|
|
426
427
|
},
|
|
427
428
|
[
|
|
428
429
|
Me(` 在使用 2.x 版本的element-UI时,里面的Popover气泡卡片组件,有自带的自动适应位置的功能;在 element plus 中,直接使用,已经无法自适应气泡弹窗的位置了;需要自行配置:fallback-placements="['bottom', 'top', 'right', 'left']" `),
|
|
429
|
-
ve(
|
|
430
|
+
ve(r(ze), {
|
|
430
431
|
ref_key: "popoverRef",
|
|
431
|
-
ref:
|
|
432
|
-
visible:
|
|
432
|
+
ref: G,
|
|
433
|
+
visible: r(E),
|
|
433
434
|
"popper-class": "das-tree-select-popper",
|
|
434
435
|
placement: "bottom-start",
|
|
435
436
|
"show-arrow": !1,
|
|
436
|
-
width:
|
|
437
|
+
width: r(O),
|
|
437
438
|
disabled: g.value,
|
|
438
439
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
439
|
-
onShow:
|
|
440
|
-
onHide:
|
|
440
|
+
onShow: r(ae),
|
|
441
|
+
onHide: r(ne)
|
|
441
442
|
}, {
|
|
442
443
|
reference: x(() => [
|
|
443
444
|
e.showSelectDom ? (q(), fe(
|
|
@@ -445,23 +446,23 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
445
446
|
{
|
|
446
447
|
key: 0,
|
|
447
448
|
class: "das-tree-select__select-content",
|
|
448
|
-
onMousedown:
|
|
449
|
+
onMousedown: a[1] || (a[1] = he(
|
|
449
450
|
//@ts-ignore
|
|
450
|
-
(...n) =>
|
|
451
|
+
(...n) => r(H) && r(H)(...n),
|
|
451
452
|
["stop"]
|
|
452
453
|
))
|
|
453
454
|
},
|
|
454
455
|
[
|
|
455
|
-
ve(
|
|
456
|
+
ve(r(qe), pe({
|
|
456
457
|
ref_key: "$select",
|
|
457
458
|
ref: A,
|
|
458
|
-
class: { "is-active":
|
|
459
|
+
class: { "is-active": r(E) },
|
|
459
460
|
dropdownClassName: "das-tree-select-dropdown",
|
|
460
|
-
modelValue:
|
|
461
|
-
"onUpdate:modelValue":
|
|
461
|
+
modelValue: r(S),
|
|
462
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => X(S) ? S.value = n : null)
|
|
462
463
|
}, p.value, {
|
|
463
|
-
searchValue:
|
|
464
|
-
options:
|
|
464
|
+
searchValue: r(i),
|
|
465
|
+
options: r(le),
|
|
465
466
|
disabled: e.disabled,
|
|
466
467
|
isView: e.isView,
|
|
467
468
|
size: e.size,
|
|
@@ -470,10 +471,10 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
470
471
|
placeholder: y.value,
|
|
471
472
|
"show-search": e.filter,
|
|
472
473
|
filterOption: e.filter,
|
|
473
|
-
width:
|
|
474
|
+
width: r(u),
|
|
474
475
|
fieldNames: {
|
|
475
476
|
value: h.value,
|
|
476
|
-
label: e.showFullPath ?
|
|
477
|
+
label: e.showFullPath ? r(Z).pathName : r(Z).label
|
|
477
478
|
},
|
|
478
479
|
isTooltip: s.value,
|
|
479
480
|
errorMode: e.errorMode,
|
|
@@ -481,18 +482,18 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
481
482
|
errorLabel: e.errorLabel,
|
|
482
483
|
autoClearSearchValue: !1,
|
|
483
484
|
isExterControlCount: "",
|
|
484
|
-
onDeselect:
|
|
485
|
-
onSearch:
|
|
485
|
+
onDeselect: r(re),
|
|
486
|
+
onSearch: r(oe),
|
|
486
487
|
onInputKeyDown: D,
|
|
487
|
-
onFocus:
|
|
488
|
-
onBlur:
|
|
489
|
-
onClear:
|
|
488
|
+
onFocus: r(K),
|
|
489
|
+
onBlur: r(ue),
|
|
490
|
+
onClear: r(se)
|
|
490
491
|
}), {
|
|
491
492
|
suffixIcon: x(() => [
|
|
492
|
-
ve(
|
|
493
|
+
ve(r(Ye), {
|
|
493
494
|
size: "medium",
|
|
494
495
|
style: { transition: "transform 0.5s" },
|
|
495
|
-
iconColor:
|
|
496
|
+
iconColor: r(E) ? "var(--upf-color-primary)" : "currentColor"
|
|
496
497
|
}, null, 8, ["iconColor"])
|
|
497
498
|
]),
|
|
498
499
|
_: 1
|
|
@@ -501,39 +502,39 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
501
502
|
],
|
|
502
503
|
32
|
|
503
504
|
/* NEED_HYDRATION */
|
|
504
|
-
)) : be((q(), fe("div",
|
|
505
|
+
)) : be((q(), fe("div", al, [
|
|
505
506
|
Ae(
|
|
506
|
-
We(
|
|
507
|
+
We(r(W)),
|
|
507
508
|
1
|
|
508
509
|
/* TEXT */
|
|
509
510
|
)
|
|
510
511
|
])), [
|
|
511
|
-
[
|
|
512
|
+
[r(Ze)]
|
|
512
513
|
])
|
|
513
514
|
]),
|
|
514
515
|
default: x(() => [
|
|
515
|
-
|
|
516
|
+
Ge(
|
|
516
517
|
"div",
|
|
517
518
|
{
|
|
518
519
|
class: "das-tree-select__tree-content",
|
|
519
|
-
style: ge(
|
|
520
|
-
onClick:
|
|
520
|
+
style: ge(r($)),
|
|
521
|
+
onClick: a[6] || (a[6] = he(() => {
|
|
521
522
|
}, ["stop"])),
|
|
522
|
-
onMousedown:
|
|
523
|
+
onMousedown: a[7] || (a[7] = he(() => {
|
|
523
524
|
}, ["stop"]))
|
|
524
525
|
},
|
|
525
526
|
[
|
|
526
|
-
e.virtual ? (q(), ke(
|
|
527
|
+
e.virtual ? (q(), ke(r(Xe), pe({
|
|
527
528
|
key: 1,
|
|
528
529
|
ref_key: "$tree",
|
|
529
530
|
ref: I
|
|
530
|
-
},
|
|
531
|
+
}, r(w), {
|
|
531
532
|
data: e.data,
|
|
532
|
-
modelValue:
|
|
533
|
-
"onUpdate:modelValue":
|
|
534
|
-
"filter-value":
|
|
535
|
-
"onUpdate:filterValue":
|
|
536
|
-
"show-checkbox":
|
|
533
|
+
modelValue: r(S),
|
|
534
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => X(S) ? S.value = n : null),
|
|
535
|
+
"filter-value": r(i),
|
|
536
|
+
"onUpdate:filterValue": a[5] || (a[5] = (n) => X(i) ? i.value = n : null),
|
|
537
|
+
"show-checkbox": r(o),
|
|
537
538
|
"is-filter": e.filter,
|
|
538
539
|
"show-filter-input": !1,
|
|
539
540
|
"filter-mode": "input",
|
|
@@ -541,14 +542,14 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
541
542
|
load: v.value,
|
|
542
543
|
"batch-load": c.batchLoad,
|
|
543
544
|
search: L.value,
|
|
544
|
-
path:
|
|
545
|
+
path: r(Y),
|
|
545
546
|
"default-expand-all": P.value,
|
|
546
547
|
"check-strictly": b.value ? !0 : R.value,
|
|
547
548
|
parentLinkChildrenStrictly: e.parentLinkChildrenStrictly,
|
|
548
549
|
getGrandChildren: C.value,
|
|
549
550
|
childLinkParentStrictly: e.childLinkParentStrictly,
|
|
550
|
-
onChange:
|
|
551
|
-
onNodeChange:
|
|
551
|
+
onChange: r(z),
|
|
552
|
+
onNodeChange: r(Q)
|
|
552
553
|
}), Se({
|
|
553
554
|
default: x(({ node: n, data: T }) => [
|
|
554
555
|
N(l.$slots, "default", {
|
|
@@ -587,17 +588,17 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
587
588
|
]),
|
|
588
589
|
key: "3"
|
|
589
590
|
} : 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(
|
|
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(r(Qe), pe({
|
|
591
592
|
key: 0,
|
|
592
593
|
ref_key: "$tree",
|
|
593
594
|
ref: I
|
|
594
|
-
},
|
|
595
|
+
}, r(w), {
|
|
595
596
|
data: e.data,
|
|
596
|
-
modelValue:
|
|
597
|
-
"onUpdate:modelValue":
|
|
598
|
-
"filter-value":
|
|
599
|
-
"onUpdate:filterValue":
|
|
600
|
-
"show-checkbox":
|
|
597
|
+
modelValue: r(S),
|
|
598
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => X(S) ? S.value = n : null),
|
|
599
|
+
"filter-value": r(i),
|
|
600
|
+
"onUpdate:filterValue": a[3] || (a[3] = (n) => X(i) ? i.value = n : null),
|
|
601
|
+
"show-checkbox": r(o),
|
|
601
602
|
"is-filter": e.filter,
|
|
602
603
|
"show-filter-input": !1,
|
|
603
604
|
"filter-mode": "input",
|
|
@@ -605,14 +606,14 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
605
606
|
load: v.value,
|
|
606
607
|
"batch-load": c.batchLoad,
|
|
607
608
|
search: L.value,
|
|
608
|
-
path:
|
|
609
|
+
path: r(Y),
|
|
609
610
|
"default-expand-all": P.value,
|
|
610
611
|
"check-strictly": b.value ? !0 : R.value,
|
|
611
612
|
parentLinkChildrenStrictly: e.parentLinkChildrenStrictly,
|
|
612
613
|
getGrandChildren: C.value,
|
|
613
614
|
childLinkParentStrictly: e.childLinkParentStrictly,
|
|
614
|
-
onChange:
|
|
615
|
-
onNodeChange:
|
|
615
|
+
onChange: r(z),
|
|
616
|
+
onNodeChange: r(Q)
|
|
616
617
|
}), Se({
|
|
617
618
|
default: x(({ node: n, data: T }) => [
|
|
618
619
|
N(l.$slots, "default", {
|
|
@@ -664,10 +665,10 @@ const tl = /* @__PURE__ */ tt(el), ll = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
664
665
|
6
|
|
665
666
|
/* CLASS, STYLE */
|
|
666
667
|
)), [
|
|
667
|
-
[
|
|
668
|
+
[r(et), M]
|
|
668
669
|
]);
|
|
669
670
|
}
|
|
670
|
-
}), kl =
|
|
671
|
+
}), kl = Fe(ol), Sl = () => j(null), Cl = { title: "tree-select 树选择" };
|
|
671
672
|
export {
|
|
672
673
|
kl as DasTreeSelect,
|
|
673
674
|
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
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '@das-fed/upf-ui/packages/components/tree-table/style.css';
|
|
2
1
|
import { defineComponent as he, mergeModels as ee, ref as U, useModel as re, computed as V, watch as le, openBlock as K, createElementBlock as $, normalizeClass as ie, normalizeStyle as j, createElementVNode as N, toDisplayString as x, renderSlot as I, createCommentVNode as w, Fragment as G, renderList as J, createBlock as Q, unref as E, withCtx as F, createTextVNode as S, withDirectives as M, createVNode as W, vShow as H } from "vue";
|
|
3
2
|
import { withInstall as ke } from "@das-fed/upf-utils/with-install/index";
|
|
4
3
|
import { DasTree as ve } from "@das-fed/upf-ui/packages/components/tree/index";
|
|
@@ -7,7 +6,9 @@ import { DasCheckbox as X } from "@das-fed/upf-ui/packages/components/checkbox/i
|
|
|
7
6
|
import { vOverlay as te } from "@das-fed/upf-ui/packages/components/overlay/index";
|
|
8
7
|
import { DasEmpty as be } from "@das-fed/upf-ui/packages/components/empty/index";
|
|
9
8
|
import { DasSpin as ge } from "@das-fed/upf-ui/packages/components/spin/index";
|
|
10
|
-
import { treeFind as me, flatTree as ae } from "@das-fed/upf-utils/common-tools"
|
|
9
|
+
import { treeFind as me, flatTree as ae } from "@das-fed/upf-utils/common-tools"
|
|
10
|
+
import '@das-fed/upf-ui/packages/components/tree-table/style.css';
|
|
11
|
+
;
|
|
11
12
|
const Ce = (t, R, c, i, b, A, v) => ({ linkCheck: (T, k, g, y, L) => {
|
|
12
13
|
let u = null;
|
|
13
14
|
if (g ? u = (n) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '@das-fed/upf-ui/packages/components/tree-v2/style.css';
|
|
2
1
|
import { defineComponent as fn, computed as ae, openBlock as Y, createElementBlock as se, normalizeStyle as sn, createElementVNode as Ze, renderSlot as be, shallowReactive as Yl, shallowRef as kd, createBlock as Je, resolveDynamicComponent as xa, useCssVars as Pd, useAttrs as Xl, ref as Z, onMounted as Tn, onBeforeMount as Ld, unref as P, mergeProps as Cr, withCtx as Ke, createVNode as Ht, normalizeClass as vt, Fragment as it, createTextVNode as ht, toDisplayString as tt, createCommentVNode as ne, nextTick as Ie, Teleport as Md, getCurrentScope as Nd, onScopeDispose as jd, getCurrentInstance as ql, watch as rt, createSlots as hr, withDirectives as at, onBeforeUnmount as Zl, onUnmounted as zd, pushScopeId as Rd, popScopeId as Bd, withScopeId as Fd, markRaw as Hd, resolveComponent as Kd, resolveDirective as Vd, renderList as qr, toHandlers as Ud, isRef as Wd, withModifiers as Pn, vShow as Gd } from "vue";
|
|
3
2
|
import { withInstall as Jl } from "@das-fed/upf-utils/with-install/index";
|
|
4
3
|
import { currentLang as Wi, t as dt, setI18nRule as Yd } from "@das-fed/upf-web/packages/i18n/index";
|
|
@@ -18,7 +17,9 @@ import { arrUnique as yr, treeFind as rf } from "@das-fed/upf-utils/common-tools
|
|
|
18
17
|
import "element-plus/es/components/loading/style/css";
|
|
19
18
|
import { DomWatcher as of } from "@das-fed/upf-utils/dom-watcher";
|
|
20
19
|
import { DasMessage as af } from "@das-fed/upf-ui/packages/components/message/index";
|
|
21
|
-
import { SizeWatcher as sf } from "@das-fed/upf-utils/size-watcher"
|
|
20
|
+
import { SizeWatcher as sf } from "@das-fed/upf-utils/size-watcher"
|
|
21
|
+
import '@das-fed/upf-ui/packages/components/tree-v2/style.css';
|
|
22
|
+
;
|
|
22
23
|
const lf = ["innerHTML"], cf = /* @__PURE__ */ fn({
|
|
23
24
|
__name: "base-icon",
|
|
24
25
|
props: {
|