@das-fed/upf-ui 6.4.0-dev.210 → 6.4.0-dev.211
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 +5 -5
- package/packages/business-components/ai-panel/{index-BgyMyjJo.js → index-BybM3Q9u.js} +700 -711
- package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js +142 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-Bw7rNZmA.js → index-CwdJKHy0.js} +9 -9
- package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +8773 -8873
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2049 -2056
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +50 -50
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +149 -149
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +60 -60
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +128 -130
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +896 -904
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +246 -249
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +0 -1
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +6 -12
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/button/index.js +182 -178
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/calendar/index.js +104 -104
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +27 -27
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +54 -54
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +459 -459
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +61 -63
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +22 -23
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +223 -224
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +42 -44
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +63 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +32 -32
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +51 -51
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +44 -44
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +832 -834
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +431 -437
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +33 -33
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4556 -4586
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +2 -2
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.d.ts +3 -0
- package/packages/components/select/index.js +325 -289
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +1 -0
- package/packages/components/select/src/type.d.ts +2 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-list/index.js +6 -10
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +14 -16
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +51 -53
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +35 -35
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +101 -102
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +599 -604
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree/index.js +173 -182
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +377 -364
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +8 -2
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +9 -3
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1208 -1240
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-B4pMosXu.js +0 -143
- package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
- package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
|
@@ -1,326 +1,339 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/tree-select/style.css';
|
|
2
|
-
import { ref as
|
|
2
|
+
import { ref as j, computed as S, watch as ve, nextTick as _, unref as a, onMounted as Pe, onBeforeUnmount as Ne, defineComponent as xe, useAttrs as Oe, withDirectives as he, openBlock as z, createElementBlock as ue, normalizeClass as Be, normalizeStyle as me, createVNode as de, withCtx as V, withModifiers as fe, mergeProps as ce, isRef as H, createTextVNode as Ie, toDisplayString as Re, createElementVNode as Me, createBlock as ye, createSlots as be, renderSlot as x } from "vue";
|
|
3
3
|
import { withInstall as Ee } from "@das-fed/upf-utils/with-install/index";
|
|
4
4
|
import { ElPopover as We } from "element-plus";
|
|
5
5
|
import "element-plus/es/components/popover/style/css";
|
|
6
|
-
import { currentLang as Fe, t as
|
|
7
|
-
import { DasSelect as
|
|
6
|
+
import { currentLang as Fe, t as Ae } from "@das-fed/upf-web/packages/i18n/index";
|
|
7
|
+
import { DasSelect as Ge } from "@das-fed/upf-ui/packages/components/select/index";
|
|
8
8
|
import { DasTreeV2 as ze } from "@das-fed/upf-ui/packages/components/tree-v2/index";
|
|
9
|
-
import { DasTreeRef as
|
|
10
|
-
import { DasIconXiala as
|
|
11
|
-
import { vDasTooltip as
|
|
12
|
-
import { SizeWatcher as
|
|
13
|
-
import { flatTree as
|
|
14
|
-
import { vClickOutside as
|
|
15
|
-
import { setThemeRule as
|
|
16
|
-
var
|
|
17
|
-
function
|
|
9
|
+
import { DasTreeRef as He, DasTree as Ue } from "@das-fed/upf-ui/packages/components/tree/index";
|
|
10
|
+
import { DasIconXiala as qe } from "@das-fed/upf-ui/packages/icons/xiala/index";
|
|
11
|
+
import { vDasTooltip as Xe } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
|
|
12
|
+
import { SizeWatcher as Je } from "@das-fed/upf-utils/size-watcher";
|
|
13
|
+
import { flatTree as Qe } from "@das-fed/upf-utils/common-tools";
|
|
14
|
+
import { vClickOutside as Ye } from "@das-fed/upf-utils/directive";
|
|
15
|
+
import { setThemeRule as Ze } from "@das-fed/upf-web/packages/theme/index";
|
|
16
|
+
var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
17
|
+
function Ke(e) {
|
|
18
18
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
var
|
|
22
|
-
return e != null && (
|
|
20
|
+
function _e(e) {
|
|
21
|
+
var u = typeof e;
|
|
22
|
+
return e != null && (u == "object" || u == "function");
|
|
23
23
|
}
|
|
24
|
-
var $e =
|
|
25
|
-
return
|
|
26
|
-
},
|
|
27
|
-
function
|
|
28
|
-
for (var
|
|
24
|
+
var $e = _e, et = typeof ee == "object" && ee && ee.Object === Object && ee, tt = et, rt = tt, lt = typeof self == "object" && self && self.Object === Object && self, at = rt || lt || Function("return this")(), Le = at, nt = Le, ot = function() {
|
|
25
|
+
return nt.Date.now();
|
|
26
|
+
}, it = ot, st = /\s/;
|
|
27
|
+
function ut(e) {
|
|
28
|
+
for (var u = e.length; u-- && st.test(e.charAt(u)); )
|
|
29
29
|
;
|
|
30
|
-
return
|
|
30
|
+
return u;
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
34
|
-
return e && e.slice(0,
|
|
32
|
+
var dt = ut, ft = dt, ct = /^\s+/;
|
|
33
|
+
function pt(e) {
|
|
34
|
+
return e && e.slice(0, ft(e) + 1).replace(ct, "");
|
|
35
35
|
}
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
var
|
|
36
|
+
var vt = pt, ht = Le, mt = ht.Symbol, Ve = mt, ge = Ve, De = Object.prototype, yt = De.hasOwnProperty, bt = De.toString, U = ge ? ge.toStringTag : void 0;
|
|
37
|
+
function gt(e) {
|
|
38
|
+
var u = yt.call(e, U), c = e[U];
|
|
39
39
|
try {
|
|
40
|
-
e[
|
|
40
|
+
e[U] = void 0;
|
|
41
41
|
var d = !0;
|
|
42
42
|
} catch {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
return d && (
|
|
44
|
+
var b = bt.call(e);
|
|
45
|
+
return d && (u ? e[U] = c : delete e[U]), b;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
return
|
|
47
|
+
var kt = gt, St = Object.prototype, Tt = St.toString;
|
|
48
|
+
function Ct(e) {
|
|
49
|
+
return Tt.call(e);
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var wt = Ct, ke = Ve, $t = kt, Lt = wt, Vt = "[object Null]", Dt = "[object Undefined]", Se = ke ? ke.toStringTag : void 0;
|
|
52
52
|
function jt(e) {
|
|
53
|
-
return e == null ? e === void 0 ? Dt :
|
|
53
|
+
return e == null ? e === void 0 ? Dt : Vt : Se && Se in Object(e) ? $t(e) : Lt(e);
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
function
|
|
55
|
+
var Pt = jt;
|
|
56
|
+
function Nt(e) {
|
|
57
57
|
return e != null && typeof e == "object";
|
|
58
58
|
}
|
|
59
|
-
var
|
|
59
|
+
var xt = Nt, Ot = Pt, Bt = xt, It = "[object Symbol]";
|
|
60
60
|
function Rt(e) {
|
|
61
|
-
return typeof e == "symbol" ||
|
|
61
|
+
return typeof e == "symbol" || Bt(e) && Ot(e) == It;
|
|
62
62
|
}
|
|
63
|
-
var Mt = Rt, Et =
|
|
64
|
-
function
|
|
63
|
+
var Mt = Rt, Et = vt, Te = $e, Wt = Mt, Ce = NaN, Ft = /^[-+]0x[0-9a-f]+$/i, At = /^0b[01]+$/i, Gt = /^0o[0-7]+$/i, zt = parseInt;
|
|
64
|
+
function Ht(e) {
|
|
65
65
|
if (typeof e == "number")
|
|
66
66
|
return e;
|
|
67
67
|
if (Wt(e))
|
|
68
68
|
return Ce;
|
|
69
69
|
if (Te(e)) {
|
|
70
|
-
var
|
|
71
|
-
e = Te(
|
|
70
|
+
var u = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
71
|
+
e = Te(u) ? u + "" : u;
|
|
72
72
|
}
|
|
73
73
|
if (typeof e != "string")
|
|
74
74
|
return e === 0 ? e : +e;
|
|
75
75
|
e = Et(e);
|
|
76
|
-
var c =
|
|
77
|
-
return c ||
|
|
76
|
+
var c = At.test(e);
|
|
77
|
+
return c || Gt.test(e) ? zt(e.slice(2), c ? 2 : 8) : Ft.test(e) ? Ce : +e;
|
|
78
78
|
}
|
|
79
|
-
var
|
|
80
|
-
function
|
|
81
|
-
var d,
|
|
79
|
+
var Ut = Ht, qt = $e, pe = it, we = Ut, Xt = "Expected a function", Jt = Math.max, Qt = Math.min;
|
|
80
|
+
function Yt(e, u, c) {
|
|
81
|
+
var d, b, L, g, h, v, D = 0, T = !1, k = !1, O = !0;
|
|
82
82
|
if (typeof e != "function")
|
|
83
|
-
throw new TypeError(
|
|
84
|
-
|
|
85
|
-
function
|
|
86
|
-
var
|
|
87
|
-
return d =
|
|
83
|
+
throw new TypeError(Xt);
|
|
84
|
+
u = we(u) || 0, qt(c) && (T = !!c.leading, k = "maxWait" in c, L = k ? Jt(we(c.maxWait) || 0, u) : L, O = "trailing" in c ? !!c.trailing : O);
|
|
85
|
+
function m(s) {
|
|
86
|
+
var w = d, N = b;
|
|
87
|
+
return d = b = void 0, D = s, g = e.apply(N, w), g;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
89
|
+
function y(s) {
|
|
90
|
+
return D = s, h = setTimeout(P, u), T ? m(s) : g;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
var
|
|
94
|
-
return k ?
|
|
92
|
+
function M(s) {
|
|
93
|
+
var w = s - v, N = s - D, W = u - w;
|
|
94
|
+
return k ? Qt(W, L - N) : W;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
var
|
|
98
|
-
return
|
|
96
|
+
function I(s) {
|
|
97
|
+
var w = s - v, N = s - D;
|
|
98
|
+
return v === void 0 || w >= u || w < 0 || k && N >= L;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function P() {
|
|
101
101
|
var s = pe();
|
|
102
|
-
if (
|
|
103
|
-
return
|
|
104
|
-
|
|
102
|
+
if (I(s))
|
|
103
|
+
return E(s);
|
|
104
|
+
h = setTimeout(P, M(s));
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
106
|
+
function E(s) {
|
|
107
|
+
return h = void 0, O && d ? m(s) : (d = b = void 0, g);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function R() {
|
|
110
|
+
h !== void 0 && clearTimeout(h), D = 0, d = v = b = h = void 0;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function C() {
|
|
113
|
+
return h === void 0 ? g : E(pe());
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
var s = pe(),
|
|
117
|
-
if (d = arguments,
|
|
118
|
-
if (
|
|
119
|
-
return
|
|
115
|
+
function i() {
|
|
116
|
+
var s = pe(), w = I(s);
|
|
117
|
+
if (d = arguments, b = this, v = s, w) {
|
|
118
|
+
if (h === void 0)
|
|
119
|
+
return y(v);
|
|
120
120
|
if (k)
|
|
121
|
-
return clearTimeout(
|
|
121
|
+
return clearTimeout(h), h = setTimeout(P, u), m(v);
|
|
122
122
|
}
|
|
123
|
-
return
|
|
123
|
+
return h === void 0 && (h = setTimeout(P, u)), g;
|
|
124
124
|
}
|
|
125
|
-
return
|
|
125
|
+
return i.cancel = R, i.flush = C, i;
|
|
126
126
|
}
|
|
127
|
-
var
|
|
128
|
-
const
|
|
129
|
-
const g =
|
|
127
|
+
var Zt = Yt;
|
|
128
|
+
const Kt = /* @__PURE__ */ Ke(Zt), _t = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), te = (e) => typeof e == "string" && _t(e) ? e : e + "px", er = (e, u, c, d, b, L) => {
|
|
129
|
+
const g = j(null), h = j(null), v = He(), D = j(), T = j(!1), k = j(""), O = j(""), m = S(() => e.mode === "multiple" || e.mode === "tags"), y = {
|
|
130
130
|
label: "name",
|
|
131
131
|
children: "children",
|
|
132
132
|
pathName: "pathName",
|
|
133
133
|
disabled: "disabled",
|
|
134
134
|
...d.props ?? {}
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}), V = T({
|
|
135
|
+
}, M = Fe.value === "zh-CN" ? "," : ", ", I = (t) => {
|
|
136
|
+
if (typeof t != "string") return !1;
|
|
137
|
+
const n = t.trim();
|
|
138
|
+
return n ? !!(/[\u4e00-\u9fa5]/.test(n) || /\s/.test(n) || /[()()【】\[\]]/.test(n)) : !1;
|
|
139
|
+
}, P = S({
|
|
141
140
|
get: () => e.keyword || "",
|
|
142
141
|
set: (t) => {
|
|
143
|
-
|
|
142
|
+
u("update:keyword", t);
|
|
144
143
|
}
|
|
145
|
-
}),
|
|
144
|
+
}), E = S({
|
|
146
145
|
get: () => e.path,
|
|
147
146
|
set: (t) => {
|
|
148
|
-
|
|
147
|
+
u("update:path", t);
|
|
149
148
|
}
|
|
150
|
-
}),
|
|
151
|
-
for (let
|
|
152
|
-
const
|
|
153
|
-
if (
|
|
154
|
-
if (
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
149
|
+
}), R = (t, n, l = []) => {
|
|
150
|
+
for (let o = 0; o < t.length; o++) {
|
|
151
|
+
const $ = t[o], r = $[y.label];
|
|
152
|
+
if (l.push(r), r === n) return l.join("/");
|
|
153
|
+
if ($.children && $.children.length > 0) {
|
|
154
|
+
const f = R($[y.children], n, l);
|
|
155
|
+
if (f) return f;
|
|
157
156
|
}
|
|
158
|
-
|
|
157
|
+
l.pop();
|
|
159
158
|
}
|
|
160
159
|
return null;
|
|
161
|
-
},
|
|
162
|
-
var
|
|
160
|
+
}, C = S(() => {
|
|
161
|
+
var l;
|
|
163
162
|
let t = [], n = [];
|
|
164
|
-
return
|
|
165
|
-
...
|
|
166
|
-
[
|
|
163
|
+
return b.value ? n = ((l = v.value) == null ? void 0 : l.lazyData) || [] : e.data && (n = Qe(e.data, y.children) || []), n.length && (t = n.map((o) => ({
|
|
164
|
+
...o,
|
|
165
|
+
[y.pathName]: o[y.pathName] ? o[y.pathName] : b.value ? o[y.label] : R(e.data, o[y.label])
|
|
167
166
|
}))), t;
|
|
168
|
-
}),
|
|
167
|
+
}), i = S({
|
|
168
|
+
get: () => {
|
|
169
|
+
const t = e.modelValue;
|
|
170
|
+
if (t === "" || t === null || t === void 0) return;
|
|
171
|
+
if (m.value || C.value.find((l) => (l == null ? void 0 : l[c.value]) === t)) return t;
|
|
172
|
+
if (typeof t == "string") {
|
|
173
|
+
const l = C.value.find((o) => (o == null ? void 0 : o[y.label]) === t);
|
|
174
|
+
if (l) return l == null ? void 0 : l[c.value];
|
|
175
|
+
}
|
|
176
|
+
return t;
|
|
177
|
+
},
|
|
178
|
+
set: (t) => {
|
|
179
|
+
u("update:modelValue", t);
|
|
180
|
+
}
|
|
181
|
+
}), s = j(""), w = j(!0), N = () => {
|
|
169
182
|
var t, n;
|
|
170
|
-
if (!e.showTextStrict || !
|
|
171
|
-
if (
|
|
172
|
-
if (
|
|
173
|
-
if (!
|
|
174
|
-
const
|
|
175
|
-
return (n =
|
|
183
|
+
if (!e.showTextStrict || !b.value || e.parentLinkChildrenStrictly) return !0;
|
|
184
|
+
if (C.value.length === 0) return I(e.modelValue);
|
|
185
|
+
if (m.value) {
|
|
186
|
+
if (!i.value || !((t = i.value) != null && t.length)) return !0;
|
|
187
|
+
const l = C.value.map((o) => o[c.value]);
|
|
188
|
+
return (n = i.value) == null ? void 0 : n.some((o) => l.includes(o));
|
|
176
189
|
} else
|
|
177
|
-
return
|
|
190
|
+
return !i.value || C.value.find((o) => o[c.value] === i.value) ? !0 : I(e.modelValue);
|
|
178
191
|
};
|
|
179
192
|
ve(
|
|
180
|
-
() => [
|
|
193
|
+
() => [C.value, i.value],
|
|
181
194
|
([t, n]) => {
|
|
182
|
-
if (
|
|
183
|
-
if (
|
|
184
|
-
if (!n || !
|
|
185
|
-
|
|
195
|
+
if (w.value = !N(), !w.value)
|
|
196
|
+
if (m.value)
|
|
197
|
+
if (!Array.isArray(n) || !n.length)
|
|
198
|
+
s.value = "";
|
|
186
199
|
else {
|
|
187
|
-
const
|
|
188
|
-
|
|
200
|
+
const l = t == null ? void 0 : t.filter((o) => n.includes(o[c.value]));
|
|
201
|
+
l != null && l.length ? s.value = l.map((o) => e.showFullPath ? o[y.pathName] : o[y.label]).join(M) : s.value = "";
|
|
189
202
|
}
|
|
190
203
|
else if (!n)
|
|
191
|
-
|
|
204
|
+
s.value = "";
|
|
192
205
|
else {
|
|
193
|
-
const
|
|
194
|
-
|
|
206
|
+
const l = t == null ? void 0 : t.find((o) => o[c.value] === n);
|
|
207
|
+
l ? s.value = e.showFullPath ? l[y.pathName] : l[y.label] : s.value = I(e.modelValue) ? e.modelValue : "";
|
|
195
208
|
}
|
|
196
209
|
},
|
|
197
210
|
{ immediate: !0 }
|
|
198
211
|
);
|
|
199
|
-
const
|
|
200
|
-
height: e.poppverHeight ?
|
|
201
|
-
maxHeight: e.poppverMaxHeight ?
|
|
202
|
-
})),
|
|
203
|
-
|
|
212
|
+
const W = S(() => ({
|
|
213
|
+
height: e.poppverHeight ? te(e.poppverHeight) : void 0,
|
|
214
|
+
maxHeight: e.poppverMaxHeight ? te(e.poppverMaxHeight) : void 0
|
|
215
|
+
})), q = () => {
|
|
216
|
+
u("visible-change", !0);
|
|
204
217
|
}, X = () => {
|
|
205
218
|
var t;
|
|
206
|
-
|
|
207
|
-
}, J =
|
|
208
|
-
e.disabled || e.isView || (
|
|
209
|
-
}, 200),
|
|
210
|
-
var n,
|
|
211
|
-
await
|
|
219
|
+
P.value = "", (t = v.value) == null || t.searchClear(), u("visible-change", !1);
|
|
220
|
+
}, J = Kt(() => {
|
|
221
|
+
e.disabled || e.isView || (T.value ? T.value = !1 : (document.body.click(), T.value = !0));
|
|
222
|
+
}, 200), F = async () => {
|
|
223
|
+
var n, l;
|
|
224
|
+
await _();
|
|
212
225
|
let t = [];
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
|
|
226
|
+
m.value || (i.value || i.value === 0) && (b.value && await ((n = v.value) == null ? void 0 : n.lazyDataNextTick(i.value)), t = C.value.filter((o) => o[c.value] === i.value)), m.value && (i.value || i.value.length) && (b.value && await ((l = v.value) == null ? void 0 : l.lazyDataNextTick(i.value)), t = C.value.filter((o) => i.value.includes(o[c.value]))), u("change", i.value, t);
|
|
227
|
+
}, A = j(!1), re = async () => {
|
|
228
|
+
T.value = !1, i.value = m.value ? [] : "", F(), A.value = !0;
|
|
216
229
|
}, le = async (t) => {
|
|
217
|
-
var n,
|
|
218
|
-
if (!
|
|
219
|
-
if (!
|
|
220
|
-
let
|
|
221
|
-
|
|
230
|
+
var n, l, o, $, r, f;
|
|
231
|
+
if (!A.value && m.value) {
|
|
232
|
+
if (!b.value && !L.value) {
|
|
233
|
+
let p = (l = (n = v.value) == null ? void 0 : n.treeRef) == null ? void 0 : l.getNode(t);
|
|
234
|
+
p.checked = !1, (o = v.value) == null || o.childLinkParent(p, p.checked), ($ = v.value) == null || $.parentLinkChild(p, p.checked);
|
|
222
235
|
}
|
|
223
|
-
if (
|
|
224
|
-
let
|
|
225
|
-
if (
|
|
226
|
-
const
|
|
227
|
-
if (
|
|
228
|
-
const
|
|
229
|
-
|
|
236
|
+
if (b.value && e.parentLinkChildrenStrictly) {
|
|
237
|
+
let p = C.value.find((B) => B[c.value] === t);
|
|
238
|
+
if (p && ((r = v.value) != null && r.getGrandChildrenFn)) {
|
|
239
|
+
const B = await v.value.getGrandChildrenFn(p);
|
|
240
|
+
if (B && B.length) {
|
|
241
|
+
const je = B.map((se) => se[c.value]);
|
|
242
|
+
i.value && ((f = i.value) != null && f.length) && (i.value = i.value.filter((se) => !je.includes(se)));
|
|
230
243
|
}
|
|
231
244
|
}
|
|
232
245
|
}
|
|
233
|
-
|
|
246
|
+
F();
|
|
234
247
|
}
|
|
235
248
|
}, ae = (t) => {
|
|
236
249
|
if (!e.filter) return;
|
|
237
250
|
const n = t && (t == null ? void 0 : t.trim());
|
|
238
|
-
|
|
239
|
-
},
|
|
251
|
+
P.value = n, T.value || (T.value = !0);
|
|
252
|
+
}, ne = () => {
|
|
240
253
|
var t, n;
|
|
241
|
-
|
|
254
|
+
m.value || (T.value = !1, e.filter && ((n = (t = h.value) == null ? void 0 : t.$select) == null || n.focus()));
|
|
242
255
|
}, Q = () => g != null && g.value && g.value.offsetWidth ? g.value.offsetWidth + "px" : "100%", Y = () => {
|
|
243
|
-
|
|
244
|
-
k.value = e.width ?
|
|
256
|
+
_(() => {
|
|
257
|
+
k.value = e.width ? te(e.width) : Q(), O.value = e.poppverWidth ? te(e.poppverWidth) : Q();
|
|
245
258
|
});
|
|
246
|
-
}, ne = (t) => {
|
|
247
|
-
var n;
|
|
248
|
-
W.value && (W.value = !1), (n = m.value) == null || n.toChangeMaxCount(!0), i("focus", t);
|
|
249
259
|
}, Z = (t) => {
|
|
250
|
-
|
|
260
|
+
var n;
|
|
261
|
+
A.value && (A.value = !1), (n = h.value) == null || n.toChangeMaxCount(!0), u("focus", t);
|
|
262
|
+
}, G = (t) => {
|
|
263
|
+
u("blur", t);
|
|
251
264
|
};
|
|
252
265
|
ve(
|
|
253
|
-
() =>
|
|
266
|
+
() => T.value,
|
|
254
267
|
(t) => {
|
|
255
|
-
var
|
|
256
|
-
const n = (
|
|
257
|
-
t ? n.style.transform = "rotate(180deg)" : n.style.transform = "", (
|
|
258
|
-
var
|
|
259
|
-
(
|
|
268
|
+
var l, o;
|
|
269
|
+
const n = (l = g.value) == null ? void 0 : l.querySelector(".ant-select-arrow>.das-icon");
|
|
270
|
+
t ? n.style.transform = "rotate(180deg)" : n.style.transform = "", (o = h.value) == null || o.toChangeMaxCount(t), _(() => {
|
|
271
|
+
var $, r, f;
|
|
272
|
+
(f = (r = ($ = a(D)) == null ? void 0 : $.popperRef) == null ? void 0 : r.popperInstanceRef) == null || f.update();
|
|
260
273
|
});
|
|
261
274
|
}
|
|
262
275
|
);
|
|
263
|
-
const
|
|
276
|
+
const K = j(null), oe = () => new Promise((t) => {
|
|
264
277
|
const n = () => {
|
|
265
|
-
var
|
|
266
|
-
const
|
|
267
|
-
if (
|
|
278
|
+
var o;
|
|
279
|
+
const l = (o = g.value) == null ? void 0 : o.querySelector(".ant-select-selector");
|
|
280
|
+
if (l) return t(l);
|
|
268
281
|
setTimeout(() => n(), 50);
|
|
269
282
|
};
|
|
270
283
|
n();
|
|
271
284
|
}), ie = (t) => {
|
|
272
|
-
|
|
285
|
+
i.value = t;
|
|
273
286
|
};
|
|
274
|
-
return
|
|
287
|
+
return Pe(async () => {
|
|
275
288
|
Y();
|
|
276
289
|
const t = await oe();
|
|
277
|
-
t && (
|
|
278
|
-
|
|
279
|
-
var
|
|
280
|
-
(
|
|
290
|
+
t && (K.value = Je((n) => {
|
|
291
|
+
_(() => {
|
|
292
|
+
var l, o, $;
|
|
293
|
+
($ = (o = (l = a(D)) == null ? void 0 : l.popperRef) == null ? void 0 : o.popperInstanceRef) == null || $.update(), Y();
|
|
281
294
|
});
|
|
282
295
|
}, t));
|
|
283
|
-
}),
|
|
296
|
+
}), Ne(() => {
|
|
284
297
|
var t;
|
|
285
|
-
(t =
|
|
298
|
+
(t = K.value) == null || t.disconnect();
|
|
286
299
|
}), {
|
|
287
|
-
innerValue:
|
|
288
|
-
popoverRef:
|
|
300
|
+
innerValue: i,
|
|
301
|
+
popoverRef: D,
|
|
289
302
|
dasTreeSelectRef: g,
|
|
290
|
-
$tree:
|
|
291
|
-
$select:
|
|
292
|
-
innerKeyword:
|
|
303
|
+
$tree: v,
|
|
304
|
+
$select: h,
|
|
305
|
+
innerKeyword: P,
|
|
293
306
|
realWidth: k,
|
|
294
|
-
realPoppverWidth:
|
|
295
|
-
poppverContentStyle:
|
|
296
|
-
treePath:
|
|
297
|
-
treeProps:
|
|
298
|
-
selectOptions:
|
|
299
|
-
currentLabel:
|
|
300
|
-
poppverShow:
|
|
307
|
+
realPoppverWidth: O,
|
|
308
|
+
poppverContentStyle: W,
|
|
309
|
+
treePath: E,
|
|
310
|
+
treeProps: y,
|
|
311
|
+
selectOptions: C,
|
|
312
|
+
currentLabel: s,
|
|
313
|
+
poppverShow: q,
|
|
301
314
|
poppverHide: X,
|
|
302
|
-
treeChange:
|
|
303
|
-
nodeChange:
|
|
315
|
+
treeChange: F,
|
|
316
|
+
nodeChange: ne,
|
|
304
317
|
deselect: le,
|
|
305
318
|
selectSearch: ae,
|
|
306
|
-
selectClear:
|
|
307
|
-
popoverVisible:
|
|
319
|
+
selectClear: re,
|
|
320
|
+
popoverVisible: T,
|
|
308
321
|
selectMouseDown: J,
|
|
309
322
|
resetDefaultVal: ie,
|
|
310
|
-
focus:
|
|
311
|
-
blur:
|
|
312
|
-
checkselectOptionsData:
|
|
313
|
-
textHide:
|
|
314
|
-
showCheckbox:
|
|
323
|
+
focus: Z,
|
|
324
|
+
blur: G,
|
|
325
|
+
checkselectOptionsData: N,
|
|
326
|
+
textHide: w,
|
|
327
|
+
showCheckbox: m
|
|
315
328
|
};
|
|
316
|
-
},
|
|
329
|
+
}, tr = {
|
|
317
330
|
key: 1,
|
|
318
331
|
class: "das-tree-select__selct-text-content"
|
|
319
|
-
},
|
|
332
|
+
}, rr = {
|
|
320
333
|
name: "DasTreeSelect",
|
|
321
334
|
inheritAttrs: !1
|
|
322
|
-
},
|
|
323
|
-
...
|
|
335
|
+
}, lr = /* @__PURE__ */ xe({
|
|
336
|
+
...rr,
|
|
324
337
|
props: {
|
|
325
338
|
data: { default: () => [] },
|
|
326
339
|
mode: { default: void 0 },
|
|
@@ -355,262 +368,262 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
355
368
|
virtual: { type: Boolean, default: !1 }
|
|
356
369
|
},
|
|
357
370
|
emits: ["update:modelValue", "update:path", "update:keyword", "change", "focus", "blur", "visible-change"],
|
|
358
|
-
setup(e, { expose:
|
|
359
|
-
const d = e,
|
|
371
|
+
setup(e, { expose: u, emit: c }) {
|
|
372
|
+
const d = e, b = c, L = Oe(), g = S(() => d.placeholder || Ae("请选择")), h = S(() => L.nodeKey ?? L["node-key"] ?? "id"), v = S(() => d.load ?? void 0), D = S(() => d.search ?? void 0), T = S(() => d.getGrandChildren ?? void 0), k = S(() => L.lazy ?? !!v.value), O = S(() => k.value ? !1 : d.defaultExpandAll), m = S(() => d.selectAttrs ? d.selectAttrs : {}), y = S(() => !!(d.disabled || d.isView)), M = S(() => d.parentLinkChildrenStrictly || d.childLinkParentStrictly ? !0 : !!(d.checkStrictly ?? k.value)), I = {
|
|
360
373
|
fn: () => {
|
|
361
|
-
|
|
374
|
+
G.value = !1;
|
|
362
375
|
}
|
|
363
|
-
},
|
|
364
|
-
|
|
376
|
+
}, P = (r) => {
|
|
377
|
+
r.key === "Enter" && r.stopPropagation();
|
|
365
378
|
}, {
|
|
366
|
-
dasTreeSelectRef:
|
|
367
|
-
$tree:
|
|
368
|
-
$select:
|
|
369
|
-
innerValue:
|
|
379
|
+
dasTreeSelectRef: E,
|
|
380
|
+
$tree: R,
|
|
381
|
+
$select: C,
|
|
382
|
+
innerValue: i,
|
|
370
383
|
innerKeyword: s,
|
|
371
|
-
realWidth:
|
|
372
|
-
poppverContentStyle:
|
|
373
|
-
realPoppverWidth:
|
|
374
|
-
treeChange:
|
|
375
|
-
nodeChange:
|
|
376
|
-
treePath:
|
|
377
|
-
treeProps:
|
|
378
|
-
selectOptions:
|
|
379
|
-
currentLabel:
|
|
380
|
-
popoverRef:
|
|
381
|
-
deselect:
|
|
382
|
-
poppverShow:
|
|
383
|
-
poppverHide:
|
|
384
|
-
selectSearch:
|
|
384
|
+
realWidth: w,
|
|
385
|
+
poppverContentStyle: N,
|
|
386
|
+
realPoppverWidth: W,
|
|
387
|
+
treeChange: q,
|
|
388
|
+
nodeChange: X,
|
|
389
|
+
treePath: J,
|
|
390
|
+
treeProps: F,
|
|
391
|
+
selectOptions: A,
|
|
392
|
+
currentLabel: re,
|
|
393
|
+
popoverRef: le,
|
|
394
|
+
deselect: ae,
|
|
395
|
+
poppverShow: ne,
|
|
396
|
+
poppverHide: Q,
|
|
397
|
+
selectSearch: Y,
|
|
385
398
|
selectMouseDown: Z,
|
|
386
|
-
popoverVisible:
|
|
387
|
-
resetDefaultVal:
|
|
388
|
-
selectClear:
|
|
389
|
-
focus:
|
|
390
|
-
blur:
|
|
391
|
-
textHide:
|
|
392
|
-
checkselectOptionsData:
|
|
393
|
-
showCheckbox:
|
|
394
|
-
} =
|
|
395
|
-
return
|
|
399
|
+
popoverVisible: G,
|
|
400
|
+
resetDefaultVal: K,
|
|
401
|
+
selectClear: oe,
|
|
402
|
+
focus: ie,
|
|
403
|
+
blur: t,
|
|
404
|
+
textHide: n,
|
|
405
|
+
checkselectOptionsData: l,
|
|
406
|
+
showCheckbox: o
|
|
407
|
+
} = er(d, b, h, L, k, M), $ = S(() => m.value.isTooltip ? m.value.isTooltip && l() : m.value["is-tooltip"] ? m.value["is-tooltip"] && l() : l());
|
|
408
|
+
return u({
|
|
396
409
|
/** das-select */
|
|
397
|
-
$select:
|
|
410
|
+
$select: C,
|
|
398
411
|
/** das-tree */
|
|
399
|
-
$tree:
|
|
412
|
+
$tree: R,
|
|
400
413
|
/** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
|
|
401
|
-
resetDefaultVal:
|
|
402
|
-
}), (
|
|
414
|
+
resetDefaultVal: K
|
|
415
|
+
}), (r, f) => he((z(), ue("div", {
|
|
403
416
|
ref_key: "dasTreeSelectRef",
|
|
404
|
-
ref:
|
|
405
|
-
class:
|
|
406
|
-
style: me({ width: a(
|
|
417
|
+
ref: E,
|
|
418
|
+
class: Be({ "das-ui-tree-select": !0, "is-lazy": k.value, "text-hide": a(n), "show-select": r.showSelectDom }),
|
|
419
|
+
style: me({ width: a(w) })
|
|
407
420
|
}, [
|
|
408
421
|
de(a(We), {
|
|
409
422
|
ref_key: "popoverRef",
|
|
410
|
-
ref:
|
|
411
|
-
visible: a(
|
|
423
|
+
ref: le,
|
|
424
|
+
visible: a(G),
|
|
412
425
|
"popper-class": "das-tree-select-popper",
|
|
413
426
|
placement: "bottom-start",
|
|
414
427
|
"show-arrow": !1,
|
|
415
|
-
width: a(
|
|
416
|
-
disabled:
|
|
428
|
+
width: a(W),
|
|
429
|
+
disabled: y.value,
|
|
417
430
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
418
|
-
onShow: a(
|
|
419
|
-
onHide: a(
|
|
431
|
+
onShow: a(ne),
|
|
432
|
+
onHide: a(Q)
|
|
420
433
|
}, {
|
|
421
|
-
reference:
|
|
422
|
-
|
|
434
|
+
reference: V(() => [
|
|
435
|
+
r.showSelectDom ? (z(), ue("div", {
|
|
423
436
|
key: 0,
|
|
424
437
|
class: "das-tree-select__select-content",
|
|
425
438
|
onMousedown: f[1] || (f[1] = fe(
|
|
426
439
|
//@ts-ignore
|
|
427
|
-
(...
|
|
440
|
+
(...p) => a(Z) && a(Z)(...p),
|
|
428
441
|
["stop"]
|
|
429
442
|
))
|
|
430
443
|
}, [
|
|
431
|
-
de(a(
|
|
444
|
+
de(a(Ge), ce({
|
|
432
445
|
ref_key: "$select",
|
|
433
|
-
ref:
|
|
434
|
-
class: { "is-active": a(
|
|
446
|
+
ref: C,
|
|
447
|
+
class: { "is-active": a(G) },
|
|
435
448
|
dropdownClassName: "das-tree-select-dropdown",
|
|
436
|
-
modelValue: a(
|
|
437
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
438
|
-
},
|
|
449
|
+
modelValue: a(i),
|
|
450
|
+
"onUpdate:modelValue": f[0] || (f[0] = (p) => H(i) ? i.value = p : null)
|
|
451
|
+
}, m.value, {
|
|
439
452
|
searchValue: a(s),
|
|
440
|
-
options: a(
|
|
441
|
-
disabled:
|
|
442
|
-
isView:
|
|
443
|
-
size:
|
|
444
|
-
mode:
|
|
445
|
-
borderType:
|
|
453
|
+
options: a(A),
|
|
454
|
+
disabled: r.disabled,
|
|
455
|
+
isView: r.isView,
|
|
456
|
+
size: r.size,
|
|
457
|
+
mode: r.mode,
|
|
458
|
+
borderType: r.borderType,
|
|
446
459
|
placeholder: g.value,
|
|
447
|
-
"show-search":
|
|
448
|
-
filterOption:
|
|
449
|
-
width: a(
|
|
460
|
+
"show-search": r.filter,
|
|
461
|
+
filterOption: r.filter,
|
|
462
|
+
width: a(w),
|
|
450
463
|
fieldNames: {
|
|
451
|
-
value:
|
|
452
|
-
label:
|
|
464
|
+
value: h.value,
|
|
465
|
+
label: r.showFullPath ? a(F).pathName : a(F).label
|
|
453
466
|
},
|
|
454
|
-
isTooltip:
|
|
455
|
-
errorMode:
|
|
456
|
-
error:
|
|
457
|
-
errorLabel:
|
|
467
|
+
isTooltip: $.value,
|
|
468
|
+
errorMode: r.errorMode,
|
|
469
|
+
error: r.error,
|
|
470
|
+
errorLabel: r.errorLabel,
|
|
458
471
|
autoClearSearchValue: !1,
|
|
459
472
|
isExterControlCount: "",
|
|
460
|
-
onDeselect: a(
|
|
461
|
-
onSearch: a(
|
|
462
|
-
onInputKeyDown:
|
|
463
|
-
onFocus: a(
|
|
464
|
-
onBlur: a(
|
|
465
|
-
onClear: a(
|
|
473
|
+
onDeselect: a(ae),
|
|
474
|
+
onSearch: a(Y),
|
|
475
|
+
onInputKeyDown: P,
|
|
476
|
+
onFocus: a(ie),
|
|
477
|
+
onBlur: a(t),
|
|
478
|
+
onClear: a(oe)
|
|
466
479
|
}), {
|
|
467
|
-
suffixIcon:
|
|
468
|
-
de(a(
|
|
480
|
+
suffixIcon: V(() => [
|
|
481
|
+
de(a(qe), {
|
|
469
482
|
size: "medium",
|
|
470
483
|
style: { transition: "transform 0.5s" },
|
|
471
|
-
iconColor: a(
|
|
484
|
+
iconColor: a(G) ? "#5582F3" : "currentColor"
|
|
472
485
|
}, null, 8, ["iconColor"])
|
|
473
486
|
]),
|
|
474
487
|
_: 1
|
|
475
488
|
}, 16, ["class", "modelValue", "searchValue", "options", "disabled", "isView", "size", "mode", "borderType", "placeholder", "show-search", "filterOption", "width", "fieldNames", "isTooltip", "errorMode", "error", "errorLabel", "onDeselect", "onSearch", "onFocus", "onBlur", "onClear"])
|
|
476
|
-
], 32)) : he((
|
|
477
|
-
|
|
489
|
+
], 32)) : he((z(), ue("div", tr, [
|
|
490
|
+
Ie(Re(a(re)), 1)
|
|
478
491
|
])), [
|
|
479
|
-
[a(
|
|
492
|
+
[a(Xe)]
|
|
480
493
|
])
|
|
481
494
|
]),
|
|
482
|
-
default:
|
|
495
|
+
default: V(() => [
|
|
483
496
|
Me("div", {
|
|
484
497
|
class: "das-tree-select__tree-content",
|
|
485
|
-
style: me(a(
|
|
498
|
+
style: me(a(N)),
|
|
486
499
|
onClick: f[6] || (f[6] = fe(() => {
|
|
487
500
|
}, ["stop"])),
|
|
488
501
|
onMousedown: f[7] || (f[7] = fe(() => {
|
|
489
502
|
}, ["stop"]))
|
|
490
503
|
}, [
|
|
491
|
-
|
|
504
|
+
r.virtual ? (z(), ye(a(ze), ce({
|
|
492
505
|
key: 1,
|
|
493
506
|
ref_key: "$tree",
|
|
494
|
-
ref:
|
|
495
|
-
}, a(
|
|
496
|
-
data:
|
|
497
|
-
modelValue: a(
|
|
498
|
-
"onUpdate:modelValue": f[4] || (f[4] = (
|
|
507
|
+
ref: R
|
|
508
|
+
}, a(L), {
|
|
509
|
+
data: r.data,
|
|
510
|
+
modelValue: a(i),
|
|
511
|
+
"onUpdate:modelValue": f[4] || (f[4] = (p) => H(i) ? i.value = p : null),
|
|
499
512
|
"filter-value": a(s),
|
|
500
|
-
"onUpdate:filterValue": f[5] || (f[5] = (
|
|
501
|
-
"show-checkbox": a(
|
|
502
|
-
"is-filter":
|
|
513
|
+
"onUpdate:filterValue": f[5] || (f[5] = (p) => H(s) ? s.value = p : null),
|
|
514
|
+
"show-checkbox": a(o),
|
|
515
|
+
"is-filter": r.filter,
|
|
503
516
|
"show-filter-input": !1,
|
|
504
517
|
"filter-mode": "input",
|
|
505
518
|
lazy: k.value,
|
|
506
|
-
load:
|
|
519
|
+
load: v.value,
|
|
507
520
|
"batch-load": d.batchLoad,
|
|
508
|
-
search:
|
|
509
|
-
path: a(
|
|
510
|
-
"default-expand-all":
|
|
511
|
-
"check-strictly": k.value ? !0 :
|
|
512
|
-
parentLinkChildrenStrictly:
|
|
513
|
-
getGrandChildren:
|
|
514
|
-
childLinkParentStrictly:
|
|
515
|
-
onChange: a(
|
|
516
|
-
onNodeChange: a(
|
|
517
|
-
}),
|
|
518
|
-
default:
|
|
519
|
-
|
|
520
|
-
node:
|
|
521
|
-
data:
|
|
521
|
+
search: D.value,
|
|
522
|
+
path: a(J),
|
|
523
|
+
"default-expand-all": O.value,
|
|
524
|
+
"check-strictly": k.value ? !0 : M.value,
|
|
525
|
+
parentLinkChildrenStrictly: r.parentLinkChildrenStrictly,
|
|
526
|
+
getGrandChildren: T.value,
|
|
527
|
+
childLinkParentStrictly: r.childLinkParentStrictly,
|
|
528
|
+
onChange: a(q),
|
|
529
|
+
onNodeChange: a(X)
|
|
530
|
+
}), be({
|
|
531
|
+
default: V(({ node: p, data: B }) => [
|
|
532
|
+
x(r.$slots, "default", {
|
|
533
|
+
node: p,
|
|
534
|
+
data: B
|
|
522
535
|
})
|
|
523
536
|
]),
|
|
524
537
|
_: 2
|
|
525
538
|
}, [
|
|
526
|
-
|
|
539
|
+
r.$slots.prefix ? {
|
|
527
540
|
name: "prefix",
|
|
528
|
-
fn:
|
|
529
|
-
|
|
541
|
+
fn: V(() => [
|
|
542
|
+
x(r.$slots, "prefix")
|
|
530
543
|
]),
|
|
531
544
|
key: "0"
|
|
532
545
|
} : void 0,
|
|
533
|
-
|
|
546
|
+
r.$slots.suffix ? {
|
|
534
547
|
name: "suffix",
|
|
535
|
-
fn:
|
|
536
|
-
|
|
548
|
+
fn: V(() => [
|
|
549
|
+
x(r.$slots, "suffix")
|
|
537
550
|
]),
|
|
538
551
|
key: "1"
|
|
539
552
|
} : void 0,
|
|
540
|
-
|
|
553
|
+
r.$slots.prepend ? {
|
|
541
554
|
name: "prepend",
|
|
542
|
-
fn:
|
|
543
|
-
|
|
555
|
+
fn: V(() => [
|
|
556
|
+
x(r.$slots, "prepend")
|
|
544
557
|
]),
|
|
545
558
|
key: "2"
|
|
546
559
|
} : void 0,
|
|
547
|
-
|
|
560
|
+
r.$slots.append ? {
|
|
548
561
|
name: "append",
|
|
549
|
-
fn:
|
|
550
|
-
|
|
562
|
+
fn: V(() => [
|
|
563
|
+
x(r.$slots, "append")
|
|
551
564
|
]),
|
|
552
565
|
key: "3"
|
|
553
566
|
} : void 0
|
|
554
|
-
]), 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"])) : (
|
|
567
|
+
]), 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"])) : (z(), ye(a(Ue), ce({
|
|
555
568
|
key: 0,
|
|
556
569
|
ref_key: "$tree",
|
|
557
|
-
ref:
|
|
558
|
-
}, a(
|
|
559
|
-
data:
|
|
560
|
-
modelValue: a(
|
|
561
|
-
"onUpdate:modelValue": f[2] || (f[2] = (
|
|
570
|
+
ref: R
|
|
571
|
+
}, a(L), {
|
|
572
|
+
data: r.data,
|
|
573
|
+
modelValue: a(i),
|
|
574
|
+
"onUpdate:modelValue": f[2] || (f[2] = (p) => H(i) ? i.value = p : null),
|
|
562
575
|
"filter-value": a(s),
|
|
563
|
-
"onUpdate:filterValue": f[3] || (f[3] = (
|
|
564
|
-
"show-checkbox": a(
|
|
565
|
-
"is-filter":
|
|
576
|
+
"onUpdate:filterValue": f[3] || (f[3] = (p) => H(s) ? s.value = p : null),
|
|
577
|
+
"show-checkbox": a(o),
|
|
578
|
+
"is-filter": r.filter,
|
|
566
579
|
"show-filter-input": !1,
|
|
567
580
|
"filter-mode": "input",
|
|
568
581
|
lazy: k.value,
|
|
569
|
-
load:
|
|
582
|
+
load: v.value,
|
|
570
583
|
"batch-load": d.batchLoad,
|
|
571
|
-
search:
|
|
572
|
-
path: a(
|
|
573
|
-
"default-expand-all":
|
|
574
|
-
"check-strictly": k.value ? !0 :
|
|
575
|
-
parentLinkChildrenStrictly:
|
|
576
|
-
getGrandChildren:
|
|
577
|
-
childLinkParentStrictly:
|
|
578
|
-
onChange: a(
|
|
579
|
-
onNodeChange: a(
|
|
580
|
-
}),
|
|
581
|
-
default:
|
|
582
|
-
|
|
583
|
-
node:
|
|
584
|
-
data:
|
|
584
|
+
search: D.value,
|
|
585
|
+
path: a(J),
|
|
586
|
+
"default-expand-all": O.value,
|
|
587
|
+
"check-strictly": k.value ? !0 : M.value,
|
|
588
|
+
parentLinkChildrenStrictly: r.parentLinkChildrenStrictly,
|
|
589
|
+
getGrandChildren: T.value,
|
|
590
|
+
childLinkParentStrictly: r.childLinkParentStrictly,
|
|
591
|
+
onChange: a(q),
|
|
592
|
+
onNodeChange: a(X)
|
|
593
|
+
}), be({
|
|
594
|
+
default: V(({ node: p, data: B }) => [
|
|
595
|
+
x(r.$slots, "default", {
|
|
596
|
+
node: p,
|
|
597
|
+
data: B
|
|
585
598
|
})
|
|
586
599
|
]),
|
|
587
600
|
_: 2
|
|
588
601
|
}, [
|
|
589
|
-
|
|
602
|
+
r.$slots.prefix ? {
|
|
590
603
|
name: "prefix",
|
|
591
|
-
fn:
|
|
592
|
-
|
|
604
|
+
fn: V(() => [
|
|
605
|
+
x(r.$slots, "prefix")
|
|
593
606
|
]),
|
|
594
607
|
key: "0"
|
|
595
608
|
} : void 0,
|
|
596
|
-
|
|
609
|
+
r.$slots.suffix ? {
|
|
597
610
|
name: "suffix",
|
|
598
|
-
fn:
|
|
599
|
-
|
|
611
|
+
fn: V(() => [
|
|
612
|
+
x(r.$slots, "suffix")
|
|
600
613
|
]),
|
|
601
614
|
key: "1"
|
|
602
615
|
} : void 0,
|
|
603
|
-
|
|
616
|
+
r.$slots.prepend ? {
|
|
604
617
|
name: "prepend",
|
|
605
|
-
fn:
|
|
606
|
-
|
|
618
|
+
fn: V(() => [
|
|
619
|
+
x(r.$slots, "prepend")
|
|
607
620
|
]),
|
|
608
621
|
key: "2"
|
|
609
622
|
} : void 0,
|
|
610
|
-
|
|
623
|
+
r.$slots.append ? {
|
|
611
624
|
name: "append",
|
|
612
|
-
fn:
|
|
613
|
-
|
|
625
|
+
fn: V(() => [
|
|
626
|
+
x(r.$slots, "append")
|
|
614
627
|
]),
|
|
615
628
|
key: "3"
|
|
616
629
|
} : void 0
|
|
@@ -620,17 +633,17 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
620
633
|
_: 3
|
|
621
634
|
}, 8, ["visible", "width", "disabled", "onShow", "onHide"])
|
|
622
635
|
], 6)), [
|
|
623
|
-
[a(
|
|
636
|
+
[a(Ye), I]
|
|
624
637
|
]);
|
|
625
638
|
}
|
|
626
|
-
}),
|
|
639
|
+
}), ar = {
|
|
627
640
|
"--das-ui-tree-select-keyword-input-active": "#5582F3",
|
|
628
641
|
"--das-ui-tree-select-search-no-data": "#999999"
|
|
629
642
|
};
|
|
630
|
-
|
|
631
|
-
const
|
|
643
|
+
Ze(ar);
|
|
644
|
+
const gr = Ee(lr), kr = () => j(null), Sr = { title: "tree-select 树选择" };
|
|
632
645
|
export {
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
646
|
+
gr as DasTreeSelect,
|
|
647
|
+
kr as DasTreeSelectRef,
|
|
648
|
+
Sr as default
|
|
636
649
|
};
|