@das-fed/upf-ui 6.4.0-dev.199 → 6.4.0-dev.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/front-end/i18n/front-end-page/dasui_en-US.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +1 -1
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +1 -1
- package/package.json +5 -5
- package/packages/components/tree/index.js +1020 -1011
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +4 -4
- package/packages/components/tree/src/hooks/use-tree.d.ts +1 -1
- package/packages/components/tree-select/index.js +56 -50
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +1 -1
|
Binary file
|
|
@@ -173,7 +173,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
|
173
173
|
readonly previousSibling: any | null;
|
|
174
174
|
contains: (target: import("element-plus/es/components/tree/src/model/node.mjs").default, deep?: boolean) => boolean;
|
|
175
175
|
remove: () => void;
|
|
176
|
-
insertChild: (child
|
|
176
|
+
insertChild: (child?: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode | undefined, index?: number | undefined, batch?: boolean | undefined) => void;
|
|
177
177
|
insertBefore: (child: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode, ref: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
178
178
|
insertAfter: (child: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode, ref: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
179
179
|
removeChild: (child: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
@@ -548,7 +548,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
|
548
548
|
readonly previousSibling: any | null;
|
|
549
549
|
contains: (target: import("element-plus/es/components/tree/src/model/node.mjs").default, deep?: boolean) => boolean;
|
|
550
550
|
remove: () => void;
|
|
551
|
-
insertChild: (child
|
|
551
|
+
insertChild: (child?: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode | undefined, index?: number | undefined, batch?: boolean | undefined) => void;
|
|
552
552
|
insertBefore: (child: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode, ref: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
553
553
|
insertAfter: (child: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode, ref: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
554
554
|
removeChild: (child: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
@@ -916,7 +916,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
|
916
916
|
readonly previousSibling: any | null;
|
|
917
917
|
contains: (target: import("element-plus/es/components/tree/src/model/node.mjs").default, deep?: boolean) => boolean;
|
|
918
918
|
remove: () => void;
|
|
919
|
-
insertChild: (child
|
|
919
|
+
insertChild: (child?: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode | undefined, index?: number | undefined, batch?: boolean | undefined) => void;
|
|
920
920
|
insertBefore: (child: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode, ref: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
921
921
|
insertAfter: (child: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode, ref: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
922
922
|
removeChild: (child: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
@@ -1291,7 +1291,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {
|
|
|
1291
1291
|
readonly previousSibling: any | null;
|
|
1292
1292
|
contains: (target: import("element-plus/es/components/tree/src/model/node.mjs").default, deep?: boolean) => boolean;
|
|
1293
1293
|
remove: () => void;
|
|
1294
|
-
insertChild: (child
|
|
1294
|
+
insertChild: (child?: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode | undefined, index?: number | undefined, batch?: boolean | undefined) => void;
|
|
1295
1295
|
insertBefore: (child: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode, ref: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
1296
1296
|
insertAfter: (child: import("element-plus/es/components/tree/src/model/node.mjs").default | import("element-plus/es/components/tree/src/tree.type.mjs").FakeNode, ref: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
1297
1297
|
removeChild: (child: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPublicInstance, HTMLAttributes } from 'vue';
|
|
2
2
|
import type { Props, Emits, TreeOptionProps, MergeOprations } from '../type';
|
|
3
3
|
import type { Ref } from 'vue';
|
|
4
|
-
export declare const useTree: (props: Props, emit: Emits, treeRef: Ref, treePath: Ref, innerValue: Ref, isLazy: Ref, innerExpandedKeys: Ref, onCheck: Function, rootNodeAllLeft: Ref) => {
|
|
4
|
+
export declare const useTree: (props: Props, emit: Emits, treeRef: Ref, treePath: Ref, innerValue: Ref, isLazy: Ref, innerExpandedKeys: Ref, onCheck: Function, rootNodeAllLeft: Ref, attrs: any) => {
|
|
5
5
|
realHeight: import("vue").ComputedRef<string>;
|
|
6
6
|
dasTree: Ref<any, any>;
|
|
7
7
|
treeRef: Ref<any, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/components/tree-select/style.css';
|
|
2
|
-
import { ref as P, computed as
|
|
2
|
+
import { ref as P, computed as T, watch as ve, nextTick as K, unref as l, onMounted as Ne, onBeforeUnmount as Pe, defineComponent as Ve, useAttrs as xe, withDirectives as he, openBlock as H, createElementBlock as ue, normalizeClass as Oe, normalizeStyle as me, createVNode as de, withCtx as j, withModifiers as fe, mergeProps as ce, isRef as U, createTextVNode as Be, toDisplayString as Re, createElementVNode as Me, createBlock as be, createSlots as ye, renderSlot as O } 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";
|
|
@@ -41,8 +41,8 @@ function yt(e) {
|
|
|
41
41
|
var d = !0;
|
|
42
42
|
} catch {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
return d && (i ? e[q] = c : delete e[q]),
|
|
44
|
+
var y = bt.call(e);
|
|
45
|
+
return d && (i ? e[q] = c : delete e[q]), y;
|
|
46
46
|
}
|
|
47
47
|
var gt = yt, kt = Object.prototype, St = kt.toString;
|
|
48
48
|
function Tt(e) {
|
|
@@ -78,24 +78,24 @@ function At(e) {
|
|
|
78
78
|
}
|
|
79
79
|
var Ht = At, Ut = $e, pe = ot, we = Ht, qt = "Expected a function", Xt = Math.max, Jt = Math.min;
|
|
80
80
|
function Qt(e, i, c) {
|
|
81
|
-
var d,
|
|
81
|
+
var d, y, $, g, m, p, N = 0, w = !1, k = !1, B = !0;
|
|
82
82
|
if (typeof e != "function")
|
|
83
83
|
throw new TypeError(qt);
|
|
84
|
-
i = we(i) || 0, Ut(c) && (w = !!c.leading,
|
|
84
|
+
i = we(i) || 0, Ut(c) && (w = !!c.leading, k = "maxWait" in c, $ = k ? Xt(we(c.maxWait) || 0, i) : $, B = "trailing" in c ? !!c.trailing : B);
|
|
85
85
|
function b(s) {
|
|
86
|
-
var L = d, R =
|
|
87
|
-
return d =
|
|
86
|
+
var L = d, R = y;
|
|
87
|
+
return d = y = void 0, N = s, g = e.apply(R, L), g;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return N = s, m = setTimeout(V, i), w ? b(s) :
|
|
89
|
+
function S(s) {
|
|
90
|
+
return N = s, m = setTimeout(V, i), w ? b(s) : g;
|
|
91
91
|
}
|
|
92
92
|
function E(s) {
|
|
93
93
|
var L = s - p, R = s - N, I = i - L;
|
|
94
|
-
return
|
|
94
|
+
return k ? Jt(I, $ - R) : I;
|
|
95
95
|
}
|
|
96
96
|
function u(s) {
|
|
97
97
|
var L = s - p, R = s - N;
|
|
98
|
-
return p === void 0 || L >= i || L < 0 ||
|
|
98
|
+
return p === void 0 || L >= i || L < 0 || k && R >= $;
|
|
99
99
|
}
|
|
100
100
|
function V() {
|
|
101
101
|
var s = pe();
|
|
@@ -104,64 +104,70 @@ function Qt(e, i, c) {
|
|
|
104
104
|
m = setTimeout(V, E(s));
|
|
105
105
|
}
|
|
106
106
|
function G(s) {
|
|
107
|
-
return m = void 0, B && d ? b(s) : (d =
|
|
107
|
+
return m = void 0, B && d ? b(s) : (d = y = void 0, g);
|
|
108
108
|
}
|
|
109
109
|
function M() {
|
|
110
|
-
m !== void 0 && clearTimeout(m), N = 0, d = p =
|
|
110
|
+
m !== void 0 && clearTimeout(m), N = 0, d = p = y = m = void 0;
|
|
111
111
|
}
|
|
112
112
|
function D() {
|
|
113
|
-
return m === void 0 ?
|
|
113
|
+
return m === void 0 ? g : G(pe());
|
|
114
114
|
}
|
|
115
115
|
function v() {
|
|
116
116
|
var s = pe(), L = u(s);
|
|
117
|
-
if (d = arguments,
|
|
117
|
+
if (d = arguments, y = this, p = s, L) {
|
|
118
118
|
if (m === void 0)
|
|
119
|
-
return
|
|
120
|
-
if (
|
|
119
|
+
return S(p);
|
|
120
|
+
if (k)
|
|
121
121
|
return clearTimeout(m), m = setTimeout(V, i), b(p);
|
|
122
122
|
}
|
|
123
|
-
return m === void 0 && (m = setTimeout(V, i)),
|
|
123
|
+
return m === void 0 && (m = setTimeout(V, i)), g;
|
|
124
124
|
}
|
|
125
125
|
return v.cancel = M, v.flush = D, v;
|
|
126
126
|
}
|
|
127
127
|
var Yt = Qt;
|
|
128
|
-
const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), ee = (e) => typeof e == "string" && Kt(e) ? e : e + "px", _t = (e, i, c, d,
|
|
129
|
-
const
|
|
128
|
+
const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), ee = (e) => typeof e == "string" && Kt(e) ? e : e + "px", _t = (e, i, c, d, y, $) => {
|
|
129
|
+
const g = P(null), m = P(null), p = Ae(), N = P(), w = P(!1), k = P(""), B = P(""), b = T(() => e.mode === "multiple" || e.mode === "tags"), S = {
|
|
130
|
+
label: "name",
|
|
131
|
+
children: "children",
|
|
132
|
+
pathName: "pathName",
|
|
133
|
+
disabled: "disabled",
|
|
134
|
+
...d.props ?? {}
|
|
135
|
+
}, E = Fe.value === "zh-CN" ? "," : ", ", u = T({
|
|
130
136
|
get: () => e.modelValue ? e.modelValue : void 0,
|
|
131
137
|
set: (t) => {
|
|
132
138
|
i("update:modelValue", t);
|
|
133
139
|
}
|
|
134
|
-
}), V =
|
|
140
|
+
}), V = T({
|
|
135
141
|
get: () => e.keyword || "",
|
|
136
142
|
set: (t) => {
|
|
137
143
|
i("update:keyword", t);
|
|
138
144
|
}
|
|
139
|
-
}), G =
|
|
145
|
+
}), G = T({
|
|
140
146
|
get: () => e.path,
|
|
141
147
|
set: (t) => {
|
|
142
148
|
i("update:path", t);
|
|
143
149
|
}
|
|
144
150
|
}), M = (t, n, o = []) => {
|
|
145
151
|
for (let r = 0; r < t.length; r++) {
|
|
146
|
-
const C = t[r], x = C[
|
|
152
|
+
const C = t[r], x = C[S.label];
|
|
147
153
|
if (o.push(x), x === n) return o.join("/");
|
|
148
154
|
if (C.children && C.children.length > 0) {
|
|
149
|
-
const a = M(C[
|
|
155
|
+
const a = M(C[S.children], n, o);
|
|
150
156
|
if (a) return a;
|
|
151
157
|
}
|
|
152
158
|
o.pop();
|
|
153
159
|
}
|
|
154
160
|
return null;
|
|
155
|
-
}, D =
|
|
161
|
+
}, D = T(() => {
|
|
156
162
|
var o;
|
|
157
163
|
let t = [], n = [];
|
|
158
|
-
return
|
|
164
|
+
return y.value ? n = ((o = p.value) == null ? void 0 : o.lazyData) || [] : e.data && (n = Je(e.data, S.children) || []), n.length && (t = n.map((r) => ({
|
|
159
165
|
...r,
|
|
160
|
-
[
|
|
166
|
+
[S.pathName]: r[S.pathName] ? r[S.pathName] : y.value ? r[S.label] : M(e.data, r[S.label])
|
|
161
167
|
}))), t;
|
|
162
168
|
}), v = P(""), s = P(!0), L = () => {
|
|
163
169
|
var t, n;
|
|
164
|
-
if (!e.showTextStrict || !
|
|
170
|
+
if (!e.showTextStrict || !y.value || e.parentLinkChildrenStrictly) return !0;
|
|
165
171
|
if (D.value.length === 0) return !1;
|
|
166
172
|
if (b.value) {
|
|
167
173
|
if (!u.value || !((t = u.value) != null && t.length)) return !0;
|
|
@@ -179,18 +185,18 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
179
185
|
v.value = "";
|
|
180
186
|
else {
|
|
181
187
|
const o = t == null ? void 0 : t.filter((r) => n.includes(r[c.value]));
|
|
182
|
-
o != null && o.length ? v.value = o.map((r) => e.showFullPath ? r[
|
|
188
|
+
o != null && o.length ? v.value = o.map((r) => e.showFullPath ? r[S.pathName] : r[S.label]).join(E) : v.value = "";
|
|
183
189
|
}
|
|
184
190
|
else if (!n)
|
|
185
191
|
v.value = "";
|
|
186
192
|
else {
|
|
187
193
|
const o = t == null ? void 0 : t.find((r) => r[c.value] === n);
|
|
188
|
-
o ? v.value = e.showFullPath ? o[
|
|
194
|
+
o ? v.value = e.showFullPath ? o[S.pathName] : o[S.label] : v.value = "";
|
|
189
195
|
}
|
|
190
196
|
},
|
|
191
197
|
{ immediate: !0 }
|
|
192
198
|
);
|
|
193
|
-
const R =
|
|
199
|
+
const R = T(() => ({
|
|
194
200
|
height: e.poppverHeight ? ee(e.poppverHeight) : void 0,
|
|
195
201
|
maxHeight: e.poppverMaxHeight ? ee(e.poppverMaxHeight) : void 0
|
|
196
202
|
})), I = () => {
|
|
@@ -204,17 +210,17 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
204
210
|
var n, o;
|
|
205
211
|
await K();
|
|
206
212
|
let t = [];
|
|
207
|
-
b.value || (u.value || u.value === 0) && (
|
|
213
|
+
b.value || (u.value || u.value === 0) && (y.value && await ((n = p.value) == null ? void 0 : n.lazyDataNextTick(u.value)), t = D.value.filter((r) => r[c.value] === u.value)), b.value && (u.value || u.value.length) && (y.value && await ((o = p.value) == null ? void 0 : o.lazyDataNextTick(u.value)), t = D.value.filter((r) => u.value.includes(r[c.value]))), i("change", u.value, t);
|
|
208
214
|
}, W = P(!1), te = async () => {
|
|
209
215
|
w.value = !1, u.value = b.value ? [] : "", z(), W.value = !0;
|
|
210
216
|
}, ae = async (t) => {
|
|
211
217
|
var n, o, r, C, x, a;
|
|
212
218
|
if (!W.value && b.value) {
|
|
213
|
-
if (!
|
|
219
|
+
if (!y.value && !$.value) {
|
|
214
220
|
let f = (o = (n = p.value) == null ? void 0 : n.treeRef) == null ? void 0 : o.getNode(t);
|
|
215
221
|
f.checked = !1, (r = p.value) == null || r.childLinkParent(f, f.checked), (C = p.value) == null || C.parentLinkChild(f, f.checked);
|
|
216
222
|
}
|
|
217
|
-
if (
|
|
223
|
+
if (y.value && e.parentLinkChildrenStrictly) {
|
|
218
224
|
let f = D.value.find((h) => h[c.value] === t);
|
|
219
225
|
if (f && ((x = p.value) != null && x.getGrandChildrenFn)) {
|
|
220
226
|
const h = await p.value.getGrandChildrenFn(f);
|
|
@@ -233,9 +239,9 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
233
239
|
}, re = () => {
|
|
234
240
|
var t, n;
|
|
235
241
|
b.value || (w.value = !1, e.filter && ((n = (t = m.value) == null ? void 0 : t.$select) == null || n.focus()));
|
|
236
|
-
}, Q = () =>
|
|
242
|
+
}, Q = () => g != null && g.value && g.value.offsetWidth ? g.value.offsetWidth + "px" : "100%", Y = () => {
|
|
237
243
|
K(() => {
|
|
238
|
-
|
|
244
|
+
k.value = e.width ? ee(e.width) : Q(), B.value = e.poppverWidth ? ee(e.poppverWidth) : Q();
|
|
239
245
|
});
|
|
240
246
|
}, ne = (t) => {
|
|
241
247
|
var n;
|
|
@@ -247,7 +253,7 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
247
253
|
() => w.value,
|
|
248
254
|
(t) => {
|
|
249
255
|
var o, r;
|
|
250
|
-
const n = (o =
|
|
256
|
+
const n = (o = g.value) == null ? void 0 : o.querySelector(".ant-select-arrow>.das-icon");
|
|
251
257
|
t ? n.style.transform = "rotate(180deg)" : n.style.transform = "", (r = m.value) == null || r.toChangeMaxCount(t), K(() => {
|
|
252
258
|
var C, x, a;
|
|
253
259
|
(a = (x = (C = l(N)) == null ? void 0 : C.popperRef) == null ? void 0 : x.popperInstanceRef) == null || a.update();
|
|
@@ -257,7 +263,7 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
257
263
|
const F = P(null), oe = () => new Promise((t) => {
|
|
258
264
|
const n = () => {
|
|
259
265
|
var r;
|
|
260
|
-
const o = (r =
|
|
266
|
+
const o = (r = g.value) == null ? void 0 : r.querySelector(".ant-select-selector");
|
|
261
267
|
if (o) return t(o);
|
|
262
268
|
setTimeout(() => n(), 50);
|
|
263
269
|
};
|
|
@@ -280,15 +286,15 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
280
286
|
}), {
|
|
281
287
|
innerValue: u,
|
|
282
288
|
popoverRef: N,
|
|
283
|
-
dasTreeSelectRef:
|
|
289
|
+
dasTreeSelectRef: g,
|
|
284
290
|
$tree: p,
|
|
285
291
|
$select: m,
|
|
286
292
|
innerKeyword: V,
|
|
287
|
-
realWidth:
|
|
293
|
+
realWidth: k,
|
|
288
294
|
realPoppverWidth: B,
|
|
289
295
|
poppverContentStyle: R,
|
|
290
296
|
treePath: G,
|
|
291
|
-
treeProps:
|
|
297
|
+
treeProps: S,
|
|
292
298
|
selectOptions: D,
|
|
293
299
|
currentLabel: v,
|
|
294
300
|
poppverShow: I,
|
|
@@ -350,7 +356,7 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
350
356
|
},
|
|
351
357
|
emits: ["update:modelValue", "update:path", "update:keyword", "change", "focus", "blur", "visible-change"],
|
|
352
358
|
setup(e, { expose: i, emit: c }) {
|
|
353
|
-
const d = e,
|
|
359
|
+
const d = e, y = c, $ = xe(), g = T(() => d.placeholder || Ge("请选择")), m = T(() => $.nodeKey ?? $["node-key"] ?? "id"), p = T(() => d.load ?? void 0), N = T(() => d.search ?? void 0), w = T(() => d.getGrandChildren ?? void 0), k = T(() => $.lazy ?? !!p.value), B = T(() => k.value ? !1 : d.defaultExpandAll), b = T(() => d.selectAttrs ? d.selectAttrs : {}), S = T(() => !!(d.disabled || d.isView)), E = T(() => d.parentLinkChildrenStrictly || d.childLinkParentStrictly ? !0 : !!(d.checkStrictly ?? k.value)), u = {
|
|
354
360
|
fn: () => {
|
|
355
361
|
F.value = !1;
|
|
356
362
|
}
|
|
@@ -385,7 +391,7 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
385
391
|
textHide: o,
|
|
386
392
|
checkselectOptionsData: r,
|
|
387
393
|
showCheckbox: C
|
|
388
|
-
} = _t(d,
|
|
394
|
+
} = _t(d, y, m, $, k, E), x = T(() => b.value.isTooltip ? b.value.isTooltip && r() : b.value["is-tooltip"] ? b.value["is-tooltip"] && r() : r());
|
|
389
395
|
return i({
|
|
390
396
|
/** das-select */
|
|
391
397
|
$select: D,
|
|
@@ -396,7 +402,7 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
396
402
|
}), (a, f) => he((H(), ue("div", {
|
|
397
403
|
ref_key: "dasTreeSelectRef",
|
|
398
404
|
ref: G,
|
|
399
|
-
class: Oe({ "das-ui-tree-select": !0, "is-lazy":
|
|
405
|
+
class: Oe({ "das-ui-tree-select": !0, "is-lazy": k.value, "text-hide": l(o), "show-select": a.showSelectDom }),
|
|
400
406
|
style: me({ width: l(L) })
|
|
401
407
|
}, [
|
|
402
408
|
de(l(We), {
|
|
@@ -407,7 +413,7 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
407
413
|
placement: "bottom-start",
|
|
408
414
|
"show-arrow": !1,
|
|
409
415
|
width: l(I),
|
|
410
|
-
disabled:
|
|
416
|
+
disabled: S.value,
|
|
411
417
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
412
418
|
onShow: l(Q),
|
|
413
419
|
onHide: l(Y)
|
|
@@ -437,7 +443,7 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
437
443
|
size: a.size,
|
|
438
444
|
mode: a.mode,
|
|
439
445
|
borderType: a.borderType,
|
|
440
|
-
placeholder:
|
|
446
|
+
placeholder: g.value,
|
|
441
447
|
"show-search": a.filter,
|
|
442
448
|
filterOption: a.filter,
|
|
443
449
|
width: l(L),
|
|
@@ -496,13 +502,13 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
496
502
|
"is-filter": a.filter,
|
|
497
503
|
"show-filter-input": !1,
|
|
498
504
|
"filter-mode": "input",
|
|
499
|
-
lazy:
|
|
505
|
+
lazy: k.value,
|
|
500
506
|
load: p.value,
|
|
501
507
|
"batch-load": d.batchLoad,
|
|
502
508
|
search: N.value,
|
|
503
509
|
path: l(z),
|
|
504
510
|
"default-expand-all": B.value,
|
|
505
|
-
"check-strictly":
|
|
511
|
+
"check-strictly": k.value ? !0 : E.value,
|
|
506
512
|
parentLinkChildrenStrictly: a.parentLinkChildrenStrictly,
|
|
507
513
|
getGrandChildren: w.value,
|
|
508
514
|
childLinkParentStrictly: a.childLinkParentStrictly,
|
|
@@ -559,13 +565,13 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
|
|
|
559
565
|
"is-filter": a.filter,
|
|
560
566
|
"show-filter-input": !1,
|
|
561
567
|
"filter-mode": "input",
|
|
562
|
-
lazy:
|
|
568
|
+
lazy: k.value,
|
|
563
569
|
load: p.value,
|
|
564
570
|
"batch-load": d.batchLoad,
|
|
565
571
|
search: N.value,
|
|
566
572
|
path: l(z),
|
|
567
573
|
"default-expand-all": B.value,
|
|
568
|
-
"check-strictly":
|
|
574
|
+
"check-strictly": k.value ? !0 : E.value,
|
|
569
575
|
parentLinkChildrenStrictly: a.parentLinkChildrenStrictly,
|
|
570
576
|
getGrandChildren: w.value,
|
|
571
577
|
childLinkParentStrictly: a.childLinkParentStrictly,
|
|
Binary file
|
|
@@ -6830,7 +6830,7 @@ export declare const useTreeSelect: (props: Props, emit: Emits, nodeKey: any, at
|
|
|
6830
6830
|
maxHeight: string | undefined;
|
|
6831
6831
|
}>;
|
|
6832
6832
|
treePath: import("vue").WritableComputedRef<string | string[] | undefined, string | string[] | undefined>;
|
|
6833
|
-
treeProps:
|
|
6833
|
+
treeProps: any;
|
|
6834
6834
|
selectOptions: import("vue").ComputedRef<any[]>;
|
|
6835
6835
|
currentLabel: import("vue").Ref<string, string>;
|
|
6836
6836
|
poppverShow: () => void;
|