@xtctwins/tctwins-bimx-engine 0.2.13 → 0.2.15
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/README.md +5 -5
- package/dist/{AnnotationTool-h6kLP4-J.mjs → AnnotationTool-C7K9wUXu.mjs} +32 -32
- package/dist/BIMX_Viewer_Lib.es.js +2 -2
- package/dist/BIMX_Viewer_Lib.umd.js +153 -151
- package/dist/{CommentTool-fEkFa5a4.mjs → CommentTool-Q03T0eRh.mjs} +44 -44
- package/dist/{HiddenTool-CHEX-LN8.mjs → HiddenTool-DPhsLeVn.mjs} +12 -12
- package/dist/{InspectorTool-Dp0nln8M.mjs → InspectorTool-xpaagssU.mjs} +25 -25
- package/dist/{MeasureTool-CIPDVGJ2.mjs → MeasureTool-CC7ByKQe.mjs} +36 -36
- package/dist/{NavigateTool-BTg74q73.mjs → NavigateTool-rX2EtTJm.mjs} +1 -1
- package/dist/{RoamTool-b-iVvgOg.mjs → RoamTool-CV51Zfk8.mjs} +19 -19
- package/dist/ScreenShotTool-CaJnfAGU.mjs +357 -0
- package/dist/{SectionTool-BmaWUeLw.mjs → SectionTool-DCBKDTuD.mjs} +55 -55
- package/dist/{SettingTool-WjB-y_2N.mjs → SettingTool-ZeE9Wi9d.mjs} +136 -136
- package/dist/{StructureTree-fQGdtbdW.mjs → StructureTree-C0ciwt0x.mjs} +241 -232
- package/dist/{alert-Byx6QRux.mjs → alert-BoGlpl1a.mjs} +3 -3
- package/dist/el-input-number-DC387stR.mjs +858 -0
- package/dist/{index-DUCjdjwm.mjs → index-Dbz1Z0EN.mjs} +47804 -45619
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-DN1hWNk5.mjs → panel.vue_vue_type_style_index_0_lang-0alZxKkz.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-CmihOwoA.mjs → tallPanel-kCOLfaS2.mjs} +16 -16
- package/package.json +66 -65
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
- package/types/components/BCFComponents/commentInput.vue.d.ts +38 -9
- package/types/components/BCFComponents/commentsView.vue.d.ts +38 -7
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
- package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +4 -6
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +3042 -1
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +56 -0
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +55 -0
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +278 -0
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +255 -0
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +17 -0
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +54 -0
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +17 -0
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +12 -0
- package/types/components/bimxViewer.vue.d.ts +7 -12
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +32 -0
- package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
- package/types/components/utilsComponents/loading.vue.d.ts +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +8 -2
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
- package/types/pages/viewerEntry.vue.d.ts +4 -51
- package/types/services/request/api.d.ts +3 -0
- package/types/services/request/index.d.ts +14 -0
- package/types/services/request/types.d.ts +12 -0
- package/types/store/bcfReflect.d.ts +2 -0
- package/types/tests/bcf.d.ts +8 -0
- package/dist/ScreenShotTool-Cei3hiGn.mjs +0 -357
- package/dist/el-input-number-6wp_0Clc.mjs +0 -818
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { u as de, _ as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { defineComponent as re, openBlock as
|
|
5
|
-
import { S as
|
|
6
|
-
import { Loading as
|
|
7
|
-
const
|
|
1
|
+
import { u as de, _ as ke, w as Be, h as be, i as Pe, a as fe, b as _e, c as ve, d as Ae, e as Me, f as He, r as Ce, g as ze, E as Fe, j as qe, k as Re, l as Ve, m as Q, n as Ue, o as We, s as Ye, p as Ge, q as Je, t as X, v as me, T as De, x as Qe, y as Xe, z as Ze, A as et } from "./index-Dbz1Z0EN.mjs";
|
|
2
|
+
import { _ as tt } from "./tallPanel-kCOLfaS2.mjs";
|
|
3
|
+
import { _ as nt } from "./panel.vue_vue_type_style_index_0_lang-0alZxKkz.mjs";
|
|
4
|
+
import { defineComponent as re, openBlock as D, createBlock as G, Transition as ot, mergeProps as st, unref as U, toHandlers as dt, withCtx as I, renderSlot as Ke, reactive as rt, inject as se, h as Te, provide as he, ref as x, getCurrentInstance as Le, watch as M, nextTick as ge, resolveComponent as ee, withDirectives as W, createElementBlock as $, normalizeClass as H, withModifiers as Z, createElementVNode as _, normalizeStyle as at, resolveDynamicComponent as it, createCommentVNode as ie, createVNode as S, Fragment as ce, renderList as ue, vShow as Y, shallowRef as Se, onMounted as $e, onUpdated as lt, computed as ct, toDisplayString as q, onBeforeUnmount as ut } from "vue";
|
|
5
|
+
import { S as pe } from "./const-B1FlFgEN.mjs";
|
|
6
|
+
import { Loading as ht, CaretRight as ft } from "@element-plus/icons-vue";
|
|
7
|
+
const pt = re({
|
|
8
8
|
name: "ElCollapseTransition"
|
|
9
|
-
}),
|
|
10
|
-
...
|
|
9
|
+
}), yt = /* @__PURE__ */ re({
|
|
10
|
+
...pt,
|
|
11
11
|
setup(t) {
|
|
12
12
|
const e = de("collapse-transition"), o = (n) => {
|
|
13
13
|
n.style.maxHeight = "", n.style.overflow = n.dataset.oldOverflow, n.style.paddingTop = n.dataset.oldPaddingTop, n.style.paddingBottom = n.dataset.oldPaddingBottom;
|
|
@@ -39,32 +39,32 @@ const ut = re({
|
|
|
39
39
|
o(n);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
return (n, d) => (
|
|
42
|
+
return (n, d) => (D(), G(ot, st({
|
|
43
43
|
name: U(e).b()
|
|
44
|
-
},
|
|
44
|
+
}, dt(s)), {
|
|
45
45
|
default: I(() => [
|
|
46
|
-
|
|
46
|
+
Ke(n.$slots, "default")
|
|
47
47
|
]),
|
|
48
48
|
_: 3
|
|
49
49
|
}, 16, ["name"]));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
var
|
|
53
|
-
const
|
|
52
|
+
var vt = /* @__PURE__ */ ke(yt, [["__file", "collapse-transition.vue"]]);
|
|
53
|
+
const gt = Be(vt), oe = "$treeNodeId", Ie = function(t, e) {
|
|
54
54
|
!e || e[oe] || Object.defineProperty(e, oe, {
|
|
55
55
|
value: t.id,
|
|
56
56
|
enumerable: !1,
|
|
57
57
|
configurable: !1,
|
|
58
58
|
writable: !1
|
|
59
59
|
});
|
|
60
|
-
},
|
|
60
|
+
}, xe = function(t, e) {
|
|
61
61
|
return t ? e[t] : e[oe];
|
|
62
|
-
},
|
|
62
|
+
}, Ee = (t, e, o) => {
|
|
63
63
|
const s = t.value.currentNode;
|
|
64
64
|
o();
|
|
65
65
|
const n = t.value.currentNode;
|
|
66
66
|
s !== n && e("current-change", n ? n.data : null, n);
|
|
67
|
-
},
|
|
67
|
+
}, we = (t) => {
|
|
68
68
|
let e = !0, o = !0, s = !0;
|
|
69
69
|
for (let n = 0, d = t.length; n < d; n++) {
|
|
70
70
|
const r = t[n];
|
|
@@ -74,27 +74,27 @@ const pt = Te(ft), oe = "$treeNodeId", Ke = function(t, e) {
|
|
|
74
74
|
}, le = function(t) {
|
|
75
75
|
if (t.childNodes.length === 0 || t.loading)
|
|
76
76
|
return;
|
|
77
|
-
const { all: e, none: o, half: s } =
|
|
77
|
+
const { all: e, none: o, half: s } = we(t.childNodes);
|
|
78
78
|
e ? (t.checked = !0, t.indeterminate = !1) : s ? (t.checked = !1, t.indeterminate = !0) : o && (t.checked = !1, t.indeterminate = !1);
|
|
79
79
|
const n = t.parent;
|
|
80
80
|
!n || n.level === 0 || t.store.checkStrictly || le(n);
|
|
81
|
-
},
|
|
81
|
+
}, ye = function(t, e) {
|
|
82
82
|
const o = t.store.props, s = t.data || {}, n = o[e];
|
|
83
|
-
if (
|
|
83
|
+
if (ve(n))
|
|
84
84
|
return n(s, t);
|
|
85
|
-
if (
|
|
85
|
+
if (Ae(n))
|
|
86
86
|
return s[n];
|
|
87
|
-
if (
|
|
87
|
+
if (_e(n)) {
|
|
88
88
|
const d = s[e];
|
|
89
89
|
return d === void 0 ? "" : d;
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
|
-
let
|
|
92
|
+
let kt = 0;
|
|
93
93
|
class te {
|
|
94
94
|
constructor(e) {
|
|
95
|
-
this.id =
|
|
95
|
+
this.id = kt++, this.text = null, this.checked = !1, this.indeterminate = !1, this.data = null, this.expanded = !1, this.parent = null, this.visible = !0, this.isCurrent = !1, this.canFocus = !1;
|
|
96
96
|
for (const o in e)
|
|
97
|
-
|
|
97
|
+
be(e, o) && (this[o] = e[o]);
|
|
98
98
|
this.level = 0, this.loaded = !1, this.childNodes = [], this.loading = !1, this.parent && (this.level = this.parent.level + 1);
|
|
99
99
|
}
|
|
100
100
|
initialize() {
|
|
@@ -104,30 +104,30 @@ class te {
|
|
|
104
104
|
e.registerNode(this);
|
|
105
105
|
const o = e.props;
|
|
106
106
|
if (o && typeof o.isLeaf < "u") {
|
|
107
|
-
const d =
|
|
108
|
-
|
|
107
|
+
const d = ye(this, "isLeaf");
|
|
108
|
+
Pe(d) && (this.isLeafByUser = d);
|
|
109
109
|
}
|
|
110
|
-
if (e.lazy !== !0 && this.data ? (this.setData(this.data), e.defaultExpandAll && (this.expanded = !0, this.canFocus = !0)) : this.level > 0 && e.lazy && e.defaultExpandAll && !this.isLeafByUser && this.expand(),
|
|
110
|
+
if (e.lazy !== !0 && this.data ? (this.setData(this.data), e.defaultExpandAll && (this.expanded = !0, this.canFocus = !0)) : this.level > 0 && e.lazy && e.defaultExpandAll && !this.isLeafByUser && this.expand(), fe(this.data) || Ie(this, this.data), !this.data)
|
|
111
111
|
return;
|
|
112
112
|
const s = e.defaultExpandedKeys, n = e.key;
|
|
113
113
|
n && s && s.includes(this.key) && this.expand(null, e.autoExpandParent), n && e.currentNodeKey !== void 0 && this.key === e.currentNodeKey && (e.currentNode = this, e.currentNode.isCurrent = !0), e.lazy && e._initDefaultCheckedNode(this), this.updateLeafState(), this.parent && (this.level === 1 || this.parent.expanded === !0) && (this.canFocus = !0);
|
|
114
114
|
}
|
|
115
115
|
setData(e) {
|
|
116
|
-
|
|
116
|
+
fe(e) || Ie(this, e), this.data = e, this.childNodes = [];
|
|
117
117
|
let o;
|
|
118
|
-
this.level === 0 &&
|
|
118
|
+
this.level === 0 && fe(this.data) ? o = this.data : o = ye(this, "children") || [];
|
|
119
119
|
for (let s = 0, n = o.length; s < n; s++)
|
|
120
120
|
this.insertChild({ data: o[s] });
|
|
121
121
|
}
|
|
122
122
|
get label() {
|
|
123
|
-
return
|
|
123
|
+
return ye(this, "label");
|
|
124
124
|
}
|
|
125
125
|
get key() {
|
|
126
126
|
const e = this.store.key;
|
|
127
127
|
return this.data ? this.data[e] : null;
|
|
128
128
|
}
|
|
129
129
|
get disabled() {
|
|
130
|
-
return
|
|
130
|
+
return ye(this, "disabled");
|
|
131
131
|
}
|
|
132
132
|
get nextSibling() {
|
|
133
133
|
const e = this.parent;
|
|
@@ -160,14 +160,14 @@ class te {
|
|
|
160
160
|
if (!(e instanceof te)) {
|
|
161
161
|
if (!s) {
|
|
162
162
|
const n = this.getChildren(!0);
|
|
163
|
-
n.includes(e.data) || (
|
|
163
|
+
n.includes(e.data) || (_e(o) || o < 0 ? n.push(e.data) : n.splice(o, 0, e.data));
|
|
164
164
|
}
|
|
165
165
|
Object.assign(e, {
|
|
166
166
|
parent: this,
|
|
167
167
|
store: this.store
|
|
168
|
-
}), e =
|
|
168
|
+
}), e = rt(new te(e)), e instanceof te && e.initialize();
|
|
169
169
|
}
|
|
170
|
-
e.level = this.level + 1,
|
|
170
|
+
e.level = this.level + 1, _e(o) || o < 0 ? this.childNodes.push(e) : this.childNodes.splice(o, 0, e), this.updateLeafState();
|
|
171
171
|
}
|
|
172
172
|
insertBefore(e, o) {
|
|
173
173
|
let s;
|
|
@@ -204,7 +204,7 @@ class te {
|
|
|
204
204
|
});
|
|
205
205
|
};
|
|
206
206
|
this.shouldLoadData() ? this.loadData((n) => {
|
|
207
|
-
|
|
207
|
+
fe(n) && (this.checked ? this.setChecked(!0, !0) : this.store.checkStrictly || le(this), s());
|
|
208
208
|
}) : s();
|
|
209
209
|
}
|
|
210
210
|
doCreateChildren(e, o = {}) {
|
|
@@ -236,7 +236,7 @@ class te {
|
|
|
236
236
|
if (this.indeterminate = e === "half", this.checked = e === !0, this.store.checkStrictly)
|
|
237
237
|
return;
|
|
238
238
|
if (!(this.shouldLoadData() && !this.store.checkDescendants)) {
|
|
239
|
-
const { all: r, allWithoutDisable: i } =
|
|
239
|
+
const { all: r, allWithoutDisable: i } = we(this.childNodes);
|
|
240
240
|
!this.isLeaf && !r && i && (this.checked = !1, e = !1);
|
|
241
241
|
const p = () => {
|
|
242
242
|
if (o) {
|
|
@@ -247,7 +247,7 @@ class te {
|
|
|
247
247
|
const k = N.disabled ? N.checked : n;
|
|
248
248
|
N.setChecked(k, o, !0, n);
|
|
249
249
|
}
|
|
250
|
-
const { half: c, all: l } =
|
|
250
|
+
const { half: c, all: l } = we(h);
|
|
251
251
|
l || (this.checked = l, this.indeterminate = c);
|
|
252
252
|
}
|
|
253
253
|
};
|
|
@@ -308,11 +308,11 @@ class te {
|
|
|
308
308
|
this.store.checkStrictly || le(this);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
class
|
|
311
|
+
class Nt {
|
|
312
312
|
constructor(e) {
|
|
313
313
|
this.currentNode = null, this.currentNodeKey = null;
|
|
314
314
|
for (const o in e)
|
|
315
|
-
|
|
315
|
+
be(e, o) && (this[o] = e[o]);
|
|
316
316
|
this.nodesMap = {};
|
|
317
317
|
}
|
|
318
318
|
initialize() {
|
|
@@ -341,12 +341,12 @@ class vt {
|
|
|
341
341
|
n(this);
|
|
342
342
|
}
|
|
343
343
|
setData(e) {
|
|
344
|
-
e !== this.root.data ? (this.root.setData(e), this._initDefaultCheckedNodes()) : this.root.updateChildren();
|
|
344
|
+
e !== this.root.data ? (this.nodesMap = {}, this.root.setData(e), this._initDefaultCheckedNodes(), this.setCurrentNodeKey(this.currentNodeKey)) : this.root.updateChildren();
|
|
345
345
|
}
|
|
346
346
|
getNode(e) {
|
|
347
347
|
if (e instanceof te)
|
|
348
348
|
return e;
|
|
349
|
-
const o =
|
|
349
|
+
const o = Me(e) ? xe(this.key, e) : e;
|
|
350
350
|
return this.nodesMap[o] || null;
|
|
351
351
|
}
|
|
352
352
|
insertBefore(e, o) {
|
|
@@ -362,7 +362,7 @@ class vt {
|
|
|
362
362
|
o && o.parent && (o === this.currentNode && (this.currentNode = null), o.parent.removeChild(o));
|
|
363
363
|
}
|
|
364
364
|
append(e, o) {
|
|
365
|
-
const s =
|
|
365
|
+
const s = He(o) ? this.root : this.getNode(o);
|
|
366
366
|
s && s.insertChild({ data: e });
|
|
367
367
|
}
|
|
368
368
|
_initDefaultCheckedNodes() {
|
|
@@ -412,7 +412,7 @@ class vt {
|
|
|
412
412
|
_getAllNodes() {
|
|
413
413
|
const e = [], o = this.nodesMap;
|
|
414
414
|
for (const s in o)
|
|
415
|
-
|
|
415
|
+
be(o, s) && e.push(o[s]);
|
|
416
416
|
return e;
|
|
417
417
|
}
|
|
418
418
|
updateChildren(e, o) {
|
|
@@ -494,7 +494,7 @@ class vt {
|
|
|
494
494
|
this.setCurrentNode(n), o && this.currentNode.level > 1 && this.currentNode.parent.expand(null, !0);
|
|
495
495
|
}
|
|
496
496
|
setCurrentNodeKey(e, o = !0) {
|
|
497
|
-
if (e == null) {
|
|
497
|
+
if (this.currentNodeKey = e, e == null) {
|
|
498
498
|
this.currentNode && (this.currentNode.isCurrent = !1), this.currentNode = null;
|
|
499
499
|
return;
|
|
500
500
|
}
|
|
@@ -502,7 +502,7 @@ class vt {
|
|
|
502
502
|
s && (this.setCurrentNode(s), o && this.currentNode.level > 1 && this.currentNode.parent.expand(null, !0));
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
505
|
+
const Ct = re({
|
|
506
506
|
name: "ElTreeNodeContent",
|
|
507
507
|
props: {
|
|
508
508
|
node: {
|
|
@@ -515,14 +515,14 @@ const gt = re({
|
|
|
515
515
|
const e = de("tree"), o = se("NodeInstance"), s = se("RootTree");
|
|
516
516
|
return () => {
|
|
517
517
|
const n = t.node, { data: d, store: r } = n;
|
|
518
|
-
return t.renderContent ? t.renderContent(
|
|
519
|
-
|
|
518
|
+
return t.renderContent ? t.renderContent(Te, { _self: o, node: n, data: d, store: r }) : Ke(s.ctx.slots, "default", { node: n, data: d }, () => [
|
|
519
|
+
Te("span", { class: e.be("node", "label") }, [n.label])
|
|
520
520
|
]);
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
|
-
var
|
|
525
|
-
function
|
|
524
|
+
var mt = /* @__PURE__ */ ke(Ct, [["__file", "tree-node-content.vue"]]);
|
|
525
|
+
function je(t) {
|
|
526
526
|
const e = se("TreeNodeMap", null), o = {
|
|
527
527
|
treeNodeExpand: (s) => {
|
|
528
528
|
t.node !== s && t.node.collapse();
|
|
@@ -537,8 +537,8 @@ function Be(t) {
|
|
|
537
537
|
}
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
|
-
const
|
|
541
|
-
function
|
|
540
|
+
const Oe = Symbol("dragEvents");
|
|
541
|
+
function bt({ props: t, ctx: e, el$: o, dropIndicator$: s, store: n }) {
|
|
542
542
|
const d = de("tree"), r = x({
|
|
543
543
|
showDropIndicator: !1,
|
|
544
544
|
draggingNode: null,
|
|
@@ -546,9 +546,9 @@ function Nt({ props: t, ctx: e, el$: o, dropIndicator$: s, store: n }) {
|
|
|
546
546
|
allowDrop: !0,
|
|
547
547
|
dropType: null
|
|
548
548
|
});
|
|
549
|
-
return he(
|
|
549
|
+
return he(Oe, {
|
|
550
550
|
treeNodeDragStart: ({ event: c, treeNode: l }) => {
|
|
551
|
-
if (
|
|
551
|
+
if (ve(t.allowDrag) && !t.allowDrag(l.node))
|
|
552
552
|
return c.preventDefault(), !1;
|
|
553
553
|
c.dataTransfer.effectAllowed = "move";
|
|
554
554
|
try {
|
|
@@ -559,29 +559,29 @@ function Nt({ props: t, ctx: e, el$: o, dropIndicator$: s, store: n }) {
|
|
|
559
559
|
},
|
|
560
560
|
treeNodeDragOver: ({ event: c, treeNode: l }) => {
|
|
561
561
|
const u = l, g = r.value.dropNode;
|
|
562
|
-
g && g.node.id !== u.node.id &&
|
|
562
|
+
g && g.node.id !== u.node.id && Ce(g.$el, d.is("drop-inner"));
|
|
563
563
|
const N = r.value.draggingNode;
|
|
564
564
|
if (!N || !u)
|
|
565
565
|
return;
|
|
566
|
-
let k = !0, E = !0, B = !0,
|
|
567
|
-
|
|
566
|
+
let k = !0, E = !0, B = !0, z = !0;
|
|
567
|
+
ve(t.allowDrop) && (k = t.allowDrop(N.node, u.node, "prev"), z = E = t.allowDrop(N.node, u.node, "inner"), B = t.allowDrop(N.node, u.node, "next")), c.dataTransfer.dropEffect = E || k || B ? "move" : "none", (k || E || B) && (g == null ? void 0 : g.node.id) !== u.node.id && (g && e.emit("node-drag-leave", N.node, g.node, c), e.emit("node-drag-enter", N.node, u.node, c)), k || E || B ? r.value.dropNode = u : r.value.dropNode = null, u.node.nextSibling === N.node && (B = !1), u.node.previousSibling === N.node && (k = !1), u.node.contains(N.node, !1) && (E = !1), (N.node === u.node || N.node.contains(u.node)) && (k = !1, E = !1, B = !1);
|
|
568
568
|
const L = u.$el.querySelector(`.${d.be("node", "content")}`).getBoundingClientRect(), j = o.value.getBoundingClientRect();
|
|
569
569
|
let A;
|
|
570
570
|
const F = k ? E ? 0.25 : B ? 0.45 : 1 : -1, ne = B ? E ? 0.75 : k ? 0.55 : 0 : 1;
|
|
571
571
|
let R = -9999;
|
|
572
572
|
const y = c.clientY - L.top;
|
|
573
573
|
y < L.height * F ? A = "before" : y > L.height * ne ? A = "after" : E ? A = "inner" : A = "none";
|
|
574
|
-
const
|
|
575
|
-
A === "before" ? R =
|
|
574
|
+
const w = u.$el.querySelector(`.${d.be("node", "expand-icon")}`).getBoundingClientRect(), T = s.value;
|
|
575
|
+
A === "before" ? R = w.top - j.top : A === "after" && (R = w.bottom - j.top), T.style.top = `${R}px`, T.style.left = `${w.right - j.left}px`, A === "inner" ? ze(u.$el, d.is("drop-inner")) : Ce(u.$el, d.is("drop-inner")), r.value.showDropIndicator = A === "before" || A === "after", r.value.allowDrop = r.value.showDropIndicator || z, r.value.dropType = A, e.emit("node-drag-over", N.node, u.node, c);
|
|
576
576
|
},
|
|
577
577
|
treeNodeDragEnd: (c) => {
|
|
578
578
|
const { draggingNode: l, dropType: u, dropNode: g } = r.value;
|
|
579
|
-
if (c.preventDefault(), c.dataTransfer.dropEffect = "move", l && g) {
|
|
579
|
+
if (c.preventDefault(), c.dataTransfer && (c.dataTransfer.dropEffect = "move"), l && g) {
|
|
580
580
|
const N = { data: l.node.data };
|
|
581
581
|
u !== "none" && l.node.remove(), u === "before" ? g.node.parent.insertBefore(N, g.node) : u === "after" ? g.node.parent.insertAfter(N, g.node) : u === "inner" && g.node.insertChild(N), u !== "none" && (n.value.registerNode(N), n.value.key && l.node.eachNode((k) => {
|
|
582
582
|
var E;
|
|
583
583
|
(E = n.value.nodesMap[k.data[n.value.key]]) == null || E.setChecked(k.checked, !n.value.checkStrictly);
|
|
584
|
-
})),
|
|
584
|
+
})), Ce(g.$el, d.is("drop-inner")), e.emit("node-drag-end", l.node, g.node, u, c), u !== "none" && e.emit("node-drop", l.node, g.node, u, c);
|
|
585
585
|
}
|
|
586
586
|
l && !g && e.emit("node-drag-end", l.node, null, u, c), r.value.showDropIndicator = !1, r.value.draggingNode = null, r.value.dropNode = null, r.value.allowDrop = !0;
|
|
587
587
|
}
|
|
@@ -589,14 +589,14 @@ function Nt({ props: t, ctx: e, el$: o, dropIndicator$: s, store: n }) {
|
|
|
589
589
|
dragState: r
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
const
|
|
592
|
+
const _t = re({
|
|
593
593
|
name: "ElTreeNode",
|
|
594
594
|
components: {
|
|
595
|
-
ElCollapseTransition:
|
|
596
|
-
ElCheckbox:
|
|
597
|
-
NodeContent:
|
|
598
|
-
ElIcon:
|
|
599
|
-
Loading:
|
|
595
|
+
ElCollapseTransition: gt,
|
|
596
|
+
ElCheckbox: Fe,
|
|
597
|
+
NodeContent: mt,
|
|
598
|
+
ElIcon: qe,
|
|
599
|
+
Loading: ht
|
|
600
600
|
},
|
|
601
601
|
props: {
|
|
602
602
|
node: {
|
|
@@ -617,8 +617,8 @@ const Ct = re({
|
|
|
617
617
|
},
|
|
618
618
|
emits: ["node-expand"],
|
|
619
619
|
setup(t, e) {
|
|
620
|
-
const o = de("tree"), { broadcastExpanded: s } =
|
|
621
|
-
he("NodeInstance", l), n ||
|
|
620
|
+
const o = de("tree"), { broadcastExpanded: s } = je(t), n = se("RootTree"), d = x(!1), r = x(!1), i = x(null), p = x(null), h = x(null), c = se(Oe), l = Le();
|
|
621
|
+
he("NodeInstance", l), n || Re("Tree", "Can not find node's tree."), t.node.expanded && (d.value = !0, r.value = !0);
|
|
622
622
|
const u = n.props.props.children || "children";
|
|
623
623
|
M(() => {
|
|
624
624
|
const y = t.node.data[u];
|
|
@@ -630,31 +630,40 @@ const Ct = re({
|
|
|
630
630
|
}), M(() => t.node.checked, (y) => {
|
|
631
631
|
k(y, t.node.indeterminate);
|
|
632
632
|
}), M(() => t.node.childNodes.length, () => t.node.reInitChecked()), M(() => t.node.expanded, (y) => {
|
|
633
|
-
|
|
633
|
+
ge(() => d.value = y), y && (r.value = !0);
|
|
634
634
|
});
|
|
635
|
-
const g = (y) =>
|
|
636
|
-
const
|
|
637
|
-
if (!
|
|
635
|
+
const g = (y) => xe(n.props.nodeKey, y.data), N = (y) => {
|
|
636
|
+
const w = t.props.class;
|
|
637
|
+
if (!w)
|
|
638
638
|
return {};
|
|
639
639
|
let T;
|
|
640
|
-
if (
|
|
641
|
-
const { data:
|
|
642
|
-
T =
|
|
640
|
+
if (ve(w)) {
|
|
641
|
+
const { data: O } = y;
|
|
642
|
+
T = w(O, y);
|
|
643
643
|
} else
|
|
644
|
-
T =
|
|
645
|
-
return
|
|
646
|
-
}, k = (y,
|
|
647
|
-
(i.value !== y || p.value !==
|
|
644
|
+
T = w;
|
|
645
|
+
return Ae(T) ? { [T]: !0 } : T;
|
|
646
|
+
}, k = (y, w) => {
|
|
647
|
+
(i.value !== y || p.value !== w) && n.ctx.emit("check-change", t.node.data, y, w), i.value = y, p.value = w;
|
|
648
648
|
}, E = (y) => {
|
|
649
|
-
|
|
649
|
+
Ee(n.store, n.ctx.emit, () => {
|
|
650
|
+
var w;
|
|
651
|
+
if ((w = n == null ? void 0 : n.props) == null ? void 0 : w.nodeKey) {
|
|
652
|
+
const O = g(t.node);
|
|
653
|
+
n.store.value.setCurrentNodeKey(O);
|
|
654
|
+
} else
|
|
655
|
+
n.store.value.setCurrentNode(t.node);
|
|
656
|
+
}), n.currentNode.value = t.node, n.props.expandOnClickNode && z(), n.props.checkOnClickNode && !t.node.disabled && L(null, {
|
|
650
657
|
target: { checked: !t.node.checked }
|
|
651
658
|
}), n.ctx.emit("node-click", t.node.data, t.node, l, y);
|
|
652
659
|
}, B = (y) => {
|
|
653
660
|
n.instance.vnode.props.onNodeContextmenu && (y.stopPropagation(), y.preventDefault()), n.ctx.emit("node-contextmenu", y, t.node.data, t.node, l);
|
|
654
|
-
},
|
|
655
|
-
t.node.isLeaf || (d.value ? (n.ctx.emit("node-collapse", t.node.data, t.node, l), t.node.collapse()) :
|
|
656
|
-
|
|
657
|
-
|
|
661
|
+
}, z = () => {
|
|
662
|
+
t.node.isLeaf || (d.value ? (n.ctx.emit("node-collapse", t.node.data, t.node, l), t.node.collapse()) : t.node.expand(() => {
|
|
663
|
+
e.emit("node-expand", t.node.data, t.node, l);
|
|
664
|
+
}));
|
|
665
|
+
}, L = (y, w) => {
|
|
666
|
+
t.node.setChecked(w.target.checked, !n.props.checkStrictly), ge(() => {
|
|
658
667
|
const T = n.store.value;
|
|
659
668
|
n.ctx.emit("check", t.node.data, {
|
|
660
669
|
checkedNodes: T.getCheckedNodes(),
|
|
@@ -677,10 +686,10 @@ const Ct = re({
|
|
|
677
686
|
handleSelectChange: k,
|
|
678
687
|
handleClick: E,
|
|
679
688
|
handleContextMenu: B,
|
|
680
|
-
handleExpandIconClick:
|
|
689
|
+
handleExpandIconClick: z,
|
|
681
690
|
handleCheckChange: L,
|
|
682
|
-
handleChildNodeExpand: (y,
|
|
683
|
-
s(
|
|
691
|
+
handleChildNodeExpand: (y, w, T) => {
|
|
692
|
+
s(w), n.ctx.emit("node-expand", y, w, T);
|
|
684
693
|
},
|
|
685
694
|
handleDragStart: (y) => {
|
|
686
695
|
n.props.draggable && c.treeNodeDragStart({ event: y, treeNode: t });
|
|
@@ -697,15 +706,15 @@ const Ct = re({
|
|
|
697
706
|
handleDragEnd: (y) => {
|
|
698
707
|
n.props.draggable && c.treeNodeDragEnd(y);
|
|
699
708
|
},
|
|
700
|
-
CaretRight:
|
|
709
|
+
CaretRight: ft
|
|
701
710
|
};
|
|
702
711
|
}
|
|
703
712
|
});
|
|
704
|
-
function
|
|
713
|
+
function Et(t, e, o, s, n, d) {
|
|
705
714
|
const r = ee("el-icon"), i = ee("el-checkbox"), p = ee("loading"), h = ee("node-content"), c = ee("el-tree-node"), l = ee("el-collapse-transition");
|
|
706
|
-
return W((
|
|
715
|
+
return W((D(), $("div", {
|
|
707
716
|
ref: "node$",
|
|
708
|
-
class:
|
|
717
|
+
class: H([
|
|
709
718
|
t.ns.b("node"),
|
|
710
719
|
t.ns.is("expanded", t.expanded),
|
|
711
720
|
t.ns.is("current", t.node.isCurrent),
|
|
@@ -729,12 +738,12 @@ function mt(t, e, o, s, n, d) {
|
|
|
729
738
|
onDrop: Z(t.handleDrop, ["stop"])
|
|
730
739
|
}, [
|
|
731
740
|
_("div", {
|
|
732
|
-
class:
|
|
733
|
-
style:
|
|
741
|
+
class: H(t.ns.be("node", "content")),
|
|
742
|
+
style: at({ paddingLeft: (t.node.level - 1) * t.tree.props.indent + "px" })
|
|
734
743
|
}, [
|
|
735
|
-
t.tree.props.icon || t.CaretRight ? (
|
|
744
|
+
t.tree.props.icon || t.CaretRight ? (D(), G(r, {
|
|
736
745
|
key: 0,
|
|
737
|
-
class:
|
|
746
|
+
class: H([
|
|
738
747
|
t.ns.be("node", "expand-icon"),
|
|
739
748
|
t.ns.is("leaf", t.node.isLeaf),
|
|
740
749
|
{
|
|
@@ -744,11 +753,11 @@ function mt(t, e, o, s, n, d) {
|
|
|
744
753
|
onClick: Z(t.handleExpandIconClick, ["stop"])
|
|
745
754
|
}, {
|
|
746
755
|
default: I(() => [
|
|
747
|
-
(
|
|
756
|
+
(D(), G(it(t.tree.props.icon || t.CaretRight)))
|
|
748
757
|
]),
|
|
749
758
|
_: 1
|
|
750
759
|
}, 8, ["class", "onClick"])) : ie("v-if", !0),
|
|
751
|
-
t.showCheckbox ? (
|
|
760
|
+
t.showCheckbox ? (D(), G(i, {
|
|
752
761
|
key: 1,
|
|
753
762
|
"model-value": t.node.checked,
|
|
754
763
|
indeterminate: t.node.indeterminate,
|
|
@@ -757,9 +766,9 @@ function mt(t, e, o, s, n, d) {
|
|
|
757
766
|
}, ["stop"]),
|
|
758
767
|
onChange: t.handleCheckChange
|
|
759
768
|
}, null, 8, ["model-value", "indeterminate", "disabled", "onClick", "onChange"])) : ie("v-if", !0),
|
|
760
|
-
t.node.loading ? (
|
|
769
|
+
t.node.loading ? (D(), G(r, {
|
|
761
770
|
key: 2,
|
|
762
|
-
class:
|
|
771
|
+
class: H([t.ns.be("node", "loading-icon"), t.ns.is("loading")])
|
|
763
772
|
}, {
|
|
764
773
|
default: I(() => [
|
|
765
774
|
S(p)
|
|
@@ -773,13 +782,13 @@ function mt(t, e, o, s, n, d) {
|
|
|
773
782
|
], 6),
|
|
774
783
|
S(l, null, {
|
|
775
784
|
default: I(() => [
|
|
776
|
-
!t.renderAfterExpand || t.childNodeRendered ? W((
|
|
785
|
+
!t.renderAfterExpand || t.childNodeRendered ? W((D(), $("div", {
|
|
777
786
|
key: 0,
|
|
778
|
-
class:
|
|
787
|
+
class: H(t.ns.be("node", "children")),
|
|
779
788
|
role: "group",
|
|
780
789
|
"aria-expanded": t.expanded
|
|
781
790
|
}, [
|
|
782
|
-
(
|
|
791
|
+
(D(!0), $(ce, null, ue(t.node.childNodes, (u) => (D(), G(c, {
|
|
783
792
|
key: t.getNodeKey(u),
|
|
784
793
|
"render-content": t.renderContent,
|
|
785
794
|
"render-after-expand": t.renderAfterExpand,
|
|
@@ -799,18 +808,18 @@ function mt(t, e, o, s, n, d) {
|
|
|
799
808
|
[Y, t.node.visible]
|
|
800
809
|
]);
|
|
801
810
|
}
|
|
802
|
-
var
|
|
803
|
-
function
|
|
804
|
-
const o = de("tree"), s =
|
|
805
|
-
|
|
811
|
+
var wt = /* @__PURE__ */ ke(_t, [["render", Et], ["__file", "tree-node.vue"]]);
|
|
812
|
+
function Kt({ el$: t }, e) {
|
|
813
|
+
const o = de("tree"), s = Se([]), n = Se([]);
|
|
814
|
+
$e(() => {
|
|
806
815
|
r();
|
|
807
|
-
}),
|
|
816
|
+
}), lt(() => {
|
|
808
817
|
s.value = Array.from(t.value.querySelectorAll("[role=treeitem]")), n.value = Array.from(t.value.querySelectorAll("input[type=checkbox]"));
|
|
809
818
|
}), M(n, (i) => {
|
|
810
819
|
i.forEach((p) => {
|
|
811
820
|
p.setAttribute("tabindex", "-1");
|
|
812
821
|
});
|
|
813
|
-
}),
|
|
822
|
+
}), Ve(t, "keydown", (i) => {
|
|
814
823
|
const p = i.target;
|
|
815
824
|
if (!p.className.includes(o.b("node")))
|
|
816
825
|
return;
|
|
@@ -844,7 +853,7 @@ function _t({ el$: t }, e) {
|
|
|
844
853
|
}
|
|
845
854
|
[Q.left, Q.right].includes(h) && (i.preventDefault(), p.click());
|
|
846
855
|
const u = p.querySelector('[type="checkbox"]');
|
|
847
|
-
[Q.enter, Q.space].includes(h) && u && (i.preventDefault(), u.click());
|
|
856
|
+
[Q.enter, Q.numpadEnter, Q.space].includes(h) && u && (i.preventDefault(), u.click());
|
|
848
857
|
});
|
|
849
858
|
const r = () => {
|
|
850
859
|
var i;
|
|
@@ -857,9 +866,9 @@ function _t({ el$: t }, e) {
|
|
|
857
866
|
(i = s.value[0]) == null || i.setAttribute("tabindex", "0");
|
|
858
867
|
};
|
|
859
868
|
}
|
|
860
|
-
const
|
|
869
|
+
const xt = re({
|
|
861
870
|
name: "ElTree",
|
|
862
|
-
components: { ElTreeNode:
|
|
871
|
+
components: { ElTreeNode: wt },
|
|
863
872
|
props: {
|
|
864
873
|
data: {
|
|
865
874
|
type: Array,
|
|
@@ -923,7 +932,7 @@ const Et = re({
|
|
|
923
932
|
default: 18
|
|
924
933
|
},
|
|
925
934
|
icon: {
|
|
926
|
-
type:
|
|
935
|
+
type: Ue
|
|
927
936
|
}
|
|
928
937
|
},
|
|
929
938
|
emits: [
|
|
@@ -942,7 +951,7 @@ const Et = re({
|
|
|
942
951
|
"node-drag-over"
|
|
943
952
|
],
|
|
944
953
|
setup(t, e) {
|
|
945
|
-
const { t: o } =
|
|
954
|
+
const { t: o } = We(), s = de("tree"), n = se(Ye, null), d = x(new Nt({
|
|
946
955
|
key: t.nodeKey,
|
|
947
956
|
data: t.data,
|
|
948
957
|
lazy: t.lazy,
|
|
@@ -958,17 +967,17 @@ const Et = re({
|
|
|
958
967
|
filterNodeMethod: t.filterNodeMethod
|
|
959
968
|
}));
|
|
960
969
|
d.value.initialize();
|
|
961
|
-
const r = x(d.value.root), i = x(null), p = x(null), h = x(null), { broadcastExpanded: c } =
|
|
970
|
+
const r = x(d.value.root), i = x(null), p = x(null), h = x(null), { broadcastExpanded: c } = je(t), { dragState: l } = bt({
|
|
962
971
|
props: t,
|
|
963
972
|
ctx: e,
|
|
964
973
|
el$: p,
|
|
965
974
|
dropIndicator$: h,
|
|
966
975
|
store: d
|
|
967
976
|
});
|
|
968
|
-
|
|
969
|
-
const u =
|
|
977
|
+
Kt({ el$: p }, d);
|
|
978
|
+
const u = ct(() => {
|
|
970
979
|
const { childNodes: a } = r.value, m = n ? n.hasFilteredOptions !== 0 : !1;
|
|
971
|
-
return (!a || a.length === 0 || a.every(({ visible:
|
|
980
|
+
return (!a || a.length === 0 || a.every(({ visible: K }) => !K)) && !m;
|
|
972
981
|
});
|
|
973
982
|
M(() => t.currentNodeKey, (a) => {
|
|
974
983
|
d.value.setCurrentNodeKey(a);
|
|
@@ -985,24 +994,24 @@ const Et = re({
|
|
|
985
994
|
if (!t.filterNodeMethod)
|
|
986
995
|
throw new Error("[Tree] filterNodeMethod is required when filter");
|
|
987
996
|
d.value.filter(a);
|
|
988
|
-
}, N = (a) =>
|
|
997
|
+
}, N = (a) => xe(t.nodeKey, a.data), k = (a) => {
|
|
989
998
|
if (!t.nodeKey)
|
|
990
999
|
throw new Error("[Tree] nodeKey is required in getNodePath");
|
|
991
1000
|
const m = d.value.getNode(a);
|
|
992
1001
|
if (!m)
|
|
993
1002
|
return [];
|
|
994
|
-
const
|
|
995
|
-
let
|
|
996
|
-
for (;
|
|
997
|
-
|
|
998
|
-
return
|
|
999
|
-
}, E = (a, m) => d.value.getCheckedNodes(a, m), B = (a) => d.value.getCheckedKeys(a),
|
|
1003
|
+
const K = [m.data];
|
|
1004
|
+
let P = m.parent;
|
|
1005
|
+
for (; P && P !== r.value; )
|
|
1006
|
+
K.push(P.data), P = P.parent;
|
|
1007
|
+
return K.reverse();
|
|
1008
|
+
}, E = (a, m) => d.value.getCheckedNodes(a, m), B = (a) => d.value.getCheckedKeys(a), z = () => {
|
|
1000
1009
|
const a = d.value.getCurrentNode();
|
|
1001
1010
|
return a ? a.data : null;
|
|
1002
1011
|
}, L = () => {
|
|
1003
1012
|
if (!t.nodeKey)
|
|
1004
1013
|
throw new Error("[Tree] nodeKey is required in getCurrentKey");
|
|
1005
|
-
const a =
|
|
1014
|
+
const a = z();
|
|
1006
1015
|
return a ? a[t.nodeKey] : null;
|
|
1007
1016
|
}, j = (a, m) => {
|
|
1008
1017
|
if (!t.nodeKey)
|
|
@@ -1012,21 +1021,21 @@ const Et = re({
|
|
|
1012
1021
|
if (!t.nodeKey)
|
|
1013
1022
|
throw new Error("[Tree] nodeKey is required in setCheckedKeys");
|
|
1014
1023
|
d.value.setCheckedKeys(a, m);
|
|
1015
|
-
}, F = (a, m,
|
|
1016
|
-
d.value.setChecked(a, m,
|
|
1024
|
+
}, F = (a, m, K) => {
|
|
1025
|
+
d.value.setChecked(a, m, K);
|
|
1017
1026
|
}, ne = () => d.value.getHalfCheckedNodes(), R = () => d.value.getHalfCheckedKeys(), y = (a, m = !0) => {
|
|
1018
1027
|
if (!t.nodeKey)
|
|
1019
1028
|
throw new Error("[Tree] nodeKey is required in setCurrentNode");
|
|
1020
|
-
|
|
1029
|
+
Ee(d, e.emit, () => {
|
|
1021
1030
|
c(a), d.value.setUserCurrentNode(a, m);
|
|
1022
1031
|
});
|
|
1023
|
-
},
|
|
1032
|
+
}, w = (a, m = !0) => {
|
|
1024
1033
|
if (!t.nodeKey)
|
|
1025
1034
|
throw new Error("[Tree] nodeKey is required in setCurrentKey");
|
|
1026
|
-
|
|
1035
|
+
Ee(d, e.emit, () => {
|
|
1027
1036
|
c(), d.value.setCurrentNodeKey(a, m);
|
|
1028
1037
|
});
|
|
1029
|
-
}, T = (a) => d.value.getNode(a),
|
|
1038
|
+
}, T = (a) => d.value.getNode(a), O = (a) => {
|
|
1030
1039
|
d.value.remove(a);
|
|
1031
1040
|
}, V = (a, m) => {
|
|
1032
1041
|
d.value.append(a, m);
|
|
@@ -1034,8 +1043,8 @@ const Et = re({
|
|
|
1034
1043
|
d.value.insertBefore(a, m);
|
|
1035
1044
|
}, f = (a, m) => {
|
|
1036
1045
|
d.value.insertAfter(a, m);
|
|
1037
|
-
}, v = (a, m,
|
|
1038
|
-
c(m), e.emit("node-expand", a, m,
|
|
1046
|
+
}, v = (a, m, K) => {
|
|
1047
|
+
c(m), e.emit("node-expand", a, m, K);
|
|
1039
1048
|
}, b = (a, m) => {
|
|
1040
1049
|
if (!t.nodeKey)
|
|
1041
1050
|
throw new Error("[Tree] nodeKey is required in updateKeyChild");
|
|
@@ -1047,8 +1056,8 @@ const Et = re({
|
|
|
1047
1056
|
store: d,
|
|
1048
1057
|
root: r,
|
|
1049
1058
|
currentNode: i,
|
|
1050
|
-
instance:
|
|
1051
|
-
}), he(
|
|
1059
|
+
instance: Le()
|
|
1060
|
+
}), he(Ge, void 0), {
|
|
1052
1061
|
ns: s,
|
|
1053
1062
|
store: d,
|
|
1054
1063
|
root: r,
|
|
@@ -1062,7 +1071,7 @@ const Et = re({
|
|
|
1062
1071
|
getNodePath: k,
|
|
1063
1072
|
getCheckedNodes: E,
|
|
1064
1073
|
getCheckedKeys: B,
|
|
1065
|
-
getCurrentNode:
|
|
1074
|
+
getCurrentNode: z,
|
|
1066
1075
|
getCurrentKey: L,
|
|
1067
1076
|
setCheckedNodes: j,
|
|
1068
1077
|
setCheckedKeys: A,
|
|
@@ -1070,10 +1079,10 @@ const Et = re({
|
|
|
1070
1079
|
getHalfCheckedNodes: ne,
|
|
1071
1080
|
getHalfCheckedKeys: R,
|
|
1072
1081
|
setCurrentNode: y,
|
|
1073
|
-
setCurrentKey:
|
|
1082
|
+
setCurrentKey: w,
|
|
1074
1083
|
t: o,
|
|
1075
1084
|
getNode: T,
|
|
1076
|
-
remove:
|
|
1085
|
+
remove: O,
|
|
1077
1086
|
append: V,
|
|
1078
1087
|
insertBefore: ae,
|
|
1079
1088
|
insertAfter: f,
|
|
@@ -1082,11 +1091,11 @@ const Et = re({
|
|
|
1082
1091
|
};
|
|
1083
1092
|
}
|
|
1084
1093
|
});
|
|
1085
|
-
function
|
|
1094
|
+
function Dt(t, e, o, s, n, d) {
|
|
1086
1095
|
const r = ee("el-tree-node");
|
|
1087
|
-
return
|
|
1096
|
+
return D(), $("div", {
|
|
1088
1097
|
ref: "el$",
|
|
1089
|
-
class:
|
|
1098
|
+
class: H([
|
|
1090
1099
|
t.ns.b(),
|
|
1091
1100
|
t.ns.is("dragging", !!t.dragState.draggingNode),
|
|
1092
1101
|
t.ns.is("drop-not-allow", !t.dragState.allowDrop),
|
|
@@ -1095,7 +1104,7 @@ function wt(t, e, o, s, n, d) {
|
|
|
1095
1104
|
]),
|
|
1096
1105
|
role: "tree"
|
|
1097
1106
|
}, [
|
|
1098
|
-
(
|
|
1107
|
+
(D(!0), $(ce, null, ue(t.root.childNodes, (i) => (D(), G(r, {
|
|
1099
1108
|
key: t.getNodeKey(i),
|
|
1100
1109
|
node: i,
|
|
1101
1110
|
props: t.props,
|
|
@@ -1105,50 +1114,50 @@ function wt(t, e, o, s, n, d) {
|
|
|
1105
1114
|
"render-content": t.renderContent,
|
|
1106
1115
|
onNodeExpand: t.handleNodeExpand
|
|
1107
1116
|
}, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]))), 128)),
|
|
1108
|
-
t.isEmpty ? (
|
|
1117
|
+
t.isEmpty ? (D(), $("div", {
|
|
1109
1118
|
key: 0,
|
|
1110
|
-
class:
|
|
1119
|
+
class: H(t.ns.e("empty-block"))
|
|
1111
1120
|
}, [
|
|
1112
|
-
|
|
1121
|
+
Ke(t.$slots, "empty", {}, () => {
|
|
1113
1122
|
var i;
|
|
1114
1123
|
return [
|
|
1115
1124
|
_("span", {
|
|
1116
|
-
class:
|
|
1125
|
+
class: H(t.ns.e("empty-text"))
|
|
1117
1126
|
}, q((i = t.emptyText) != null ? i : t.t("el.tree.emptyText")), 3)
|
|
1118
1127
|
];
|
|
1119
1128
|
})
|
|
1120
1129
|
], 2)) : ie("v-if", !0),
|
|
1121
1130
|
W(_("div", {
|
|
1122
1131
|
ref: "dropIndicator$",
|
|
1123
|
-
class:
|
|
1132
|
+
class: H(t.ns.e("drop-indicator"))
|
|
1124
1133
|
}, null, 2), [
|
|
1125
1134
|
[Y, t.dragState.showDropIndicator]
|
|
1126
1135
|
])
|
|
1127
1136
|
], 2);
|
|
1128
1137
|
}
|
|
1129
|
-
var
|
|
1130
|
-
const
|
|
1138
|
+
var Tt = /* @__PURE__ */ ke(xt, [["render", Dt], ["__file", "tree.vue"]]);
|
|
1139
|
+
const St = Be(Tt), It = {
|
|
1131
1140
|
key: 0,
|
|
1132
1141
|
class: "panel_content"
|
|
1133
|
-
},
|
|
1142
|
+
}, Bt = { class: "types" }, At = ["onClick"], Lt = { class: "tree" }, $t = {
|
|
1134
1143
|
key: 1,
|
|
1135
1144
|
class: "panel_content_null"
|
|
1136
|
-
},
|
|
1145
|
+
}, jt = { class: "pc_tree_type_button" }, Ot = ["onClick"], Pt = { class: "pc_tree_content" }, Mt = { class: "tree-search-box" }, Ht = { class: "tree-wrapper" }, zt = ["id"], Ft = { class: "tree-wrapper" }, qt = ["id"], Rt = { class: "tree-wrapper" }, Vt = ["id"], Ut = {
|
|
1137
1146
|
key: 2,
|
|
1138
1147
|
class: "operate-tree-box"
|
|
1139
|
-
},
|
|
1148
|
+
}, Wt = { class: "operate-tree" }, Yt = { class: "tree-title-box" }, Gt = { class: "tree-title-icon" }, Jt = { class: "tree-category-box" }, Qt = { class: "tree-category-list" }, Xt = ["onClick"], Zt = { class: "tree-search-box" }, en = { class: "tree-content" }, tn = { class: "tree-wrapper" }, nn = ["id"], on = { class: "tree-wrapper" }, sn = ["id"], dn = { class: "tree-wrapper" }, rn = ["id"], an = /* @__PURE__ */ re({
|
|
1140
1149
|
__name: "StructureTree",
|
|
1141
1150
|
props: ["componentId"],
|
|
1142
1151
|
emits: ["closePanel", "emitHandler"],
|
|
1143
1152
|
setup(t, { emit: e }) {
|
|
1144
|
-
const o =
|
|
1153
|
+
const o = Je(), s = t, n = x(!1), d = x(), r = x(), i = x(), p = x(), h = x(0), c = x(), l = x(), u = x(), g = x(), N = x();
|
|
1145
1154
|
let k;
|
|
1146
|
-
const E = x(""), B = x(""),
|
|
1155
|
+
const E = x(""), B = x(""), z = x("");
|
|
1147
1156
|
M(
|
|
1148
1157
|
() => o.isToolActive(s.componentId),
|
|
1149
1158
|
(f) => {
|
|
1150
1159
|
if (f) {
|
|
1151
|
-
if (n.value ||
|
|
1160
|
+
if (n.value || w(pe[0]), B.value == z.value || B.value == "")
|
|
1152
1161
|
return;
|
|
1153
1162
|
y(B.value);
|
|
1154
1163
|
}
|
|
@@ -1164,7 +1173,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1164
1173
|
}, A = e, F = (f) => {
|
|
1165
1174
|
A("emitHandler", f);
|
|
1166
1175
|
}, ne = x(!1);
|
|
1167
|
-
|
|
1176
|
+
$e(() => {
|
|
1168
1177
|
X("userInfo").isInShare && X("userInfo").isShareClient && (ne.value = !0), o.setReadyById(s.componentId);
|
|
1169
1178
|
});
|
|
1170
1179
|
const R = () => {
|
|
@@ -1177,7 +1186,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1177
1186
|
}), X("isMobile") && (f.on("touchEntity", (v) => {
|
|
1178
1187
|
n.value !== !1 && (B.value = v.id, o.isToolActive(s.componentId) && y(v.id));
|
|
1179
1188
|
}), f.on("touchNothing", () => {
|
|
1180
|
-
|
|
1189
|
+
ge(() => {
|
|
1181
1190
|
N.value = "";
|
|
1182
1191
|
}), F({
|
|
1183
1192
|
isTool: !0,
|
|
@@ -1189,16 +1198,16 @@ const Dt = Te(xt), Kt = {
|
|
|
1189
1198
|
});
|
|
1190
1199
|
}));
|
|
1191
1200
|
};
|
|
1192
|
-
|
|
1193
|
-
|
|
1201
|
+
me.on("BimViewer", R), ut(() => {
|
|
1202
|
+
me.off("BimViewer", R);
|
|
1194
1203
|
});
|
|
1195
1204
|
const y = (f) => {
|
|
1196
1205
|
let v, b;
|
|
1197
1206
|
h.value === 0 ? v = k.objectsExplorer.objectList[f] ? k.objectsExplorer.objectList[f] : null : h.value === 1 ? v = k.classesExplorer.objectList[f] ? k.classesExplorer.objectList[f] : null : h.value === 2 && (v = k.storeysExplorer.objectList[f] ? k.storeysExplorer.objectList[f] : null), v && (N.value = v.nodeId, h.value === 0 ? (d.value.setCurrentKey(v.nodeId, !0), b = document.getElementById(v.nodeId + "0")) : h.value === 1 ? (r.value.setCurrentKey(v.nodeId, !0), b = document.getElementById(v.nodeId + "1")) : h.value === 2 && (i.value.setCurrentKey(v.nodeId, !0), b = document.getElementById(v.nodeId + "2")), setTimeout(() => {
|
|
1198
|
-
b &&
|
|
1207
|
+
b && ge(() => {
|
|
1199
1208
|
b.scrollIntoView({ block: "center" });
|
|
1200
1209
|
});
|
|
1201
|
-
}, 200),
|
|
1210
|
+
}, 200), z.value = f, F({
|
|
1202
1211
|
isTool: !0,
|
|
1203
1212
|
event_target: "StructureTree",
|
|
1204
1213
|
event_name: "pickedEntity",
|
|
@@ -1207,7 +1216,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1207
1216
|
viewer_nodeId: v.nodeId
|
|
1208
1217
|
}
|
|
1209
1218
|
}));
|
|
1210
|
-
},
|
|
1219
|
+
}, w = (f) => {
|
|
1211
1220
|
if (f.id == 0) {
|
|
1212
1221
|
if (!l.value) {
|
|
1213
1222
|
if (l.value = p.value.objectsData ? p.value.objectsData : [], l.value[0]) {
|
|
@@ -1238,7 +1247,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1238
1247
|
}), h.value !== f.id && (h.value = f.id);
|
|
1239
1248
|
};
|
|
1240
1249
|
let T = [];
|
|
1241
|
-
const
|
|
1250
|
+
const O = (f, v) => {
|
|
1242
1251
|
T.includes(f.nodeId) ? f.checked = !0 : f.checked = !f.checked;
|
|
1243
1252
|
const b = k.viewer.scene.objects[f.objectId];
|
|
1244
1253
|
b ? k.setEntityVisible(b, f.checked) : a(f, f.checked), m(f, f.checked), F({
|
|
@@ -1251,21 +1260,21 @@ const Dt = Te(xt), Kt = {
|
|
|
1251
1260
|
status: f.checked
|
|
1252
1261
|
}
|
|
1253
1262
|
});
|
|
1254
|
-
function a(
|
|
1255
|
-
if (
|
|
1256
|
-
const J = k.viewer.scene.objects[
|
|
1257
|
-
J && k.setEntityVisible(J,
|
|
1263
|
+
function a(K, P) {
|
|
1264
|
+
if (K.checked = P, K.children.length == 0) {
|
|
1265
|
+
const J = k.viewer.scene.objects[K.objectId];
|
|
1266
|
+
J && k.setEntityVisible(J, K.checked);
|
|
1258
1267
|
} else
|
|
1259
|
-
for (let J = 0; J <
|
|
1260
|
-
a(
|
|
1268
|
+
for (let J = 0; J < K.children.length; J++)
|
|
1269
|
+
a(K.children[J], P);
|
|
1261
1270
|
}
|
|
1262
|
-
function m(
|
|
1263
|
-
|
|
1271
|
+
function m(K, P) {
|
|
1272
|
+
K.checked = P, K.parent && m(K.parent, P);
|
|
1264
1273
|
}
|
|
1265
1274
|
T = v.halfCheckedKeys;
|
|
1266
1275
|
}, V = (f, v) => {
|
|
1267
1276
|
const b = k.viewer.scene.objects[f.objectId];
|
|
1268
|
-
b && (k.setAllObjectsSelected(!1), k.setEntitySelected(b), k.viewFitEntity(b)),
|
|
1277
|
+
b && (k.setAllObjectsSelected(!1), k.setEntitySelected(b), k.viewFitEntity(b)), me.emit("tree_clickNode", b), F({
|
|
1269
1278
|
isTool: !0,
|
|
1270
1279
|
event_target: "StructureTree",
|
|
1271
1280
|
event_name: "clickTreeNode",
|
|
@@ -1278,8 +1287,8 @@ const Dt = Te(xt), Kt = {
|
|
|
1278
1287
|
A("closePanel");
|
|
1279
1288
|
};
|
|
1280
1289
|
return (f, v) => {
|
|
1281
|
-
const b =
|
|
1282
|
-
return !U(X)("isMobile") && U(
|
|
1290
|
+
const b = St, a = nt, m = Qe, K = Xe, P = tt, J = Ze;
|
|
1291
|
+
return !U(X)("isMobile") && U(De).currentTheme == "blue" ? (D(), G(a, {
|
|
1283
1292
|
key: 0,
|
|
1284
1293
|
class: "web_tree_container",
|
|
1285
1294
|
width: 268,
|
|
@@ -1287,15 +1296,15 @@ const Dt = Te(xt), Kt = {
|
|
|
1287
1296
|
"click-handle": ae
|
|
1288
1297
|
}, {
|
|
1289
1298
|
default: I(() => [
|
|
1290
|
-
n.value ? (
|
|
1291
|
-
_("div",
|
|
1292
|
-
(
|
|
1299
|
+
n.value ? (D(), $("div", It, [
|
|
1300
|
+
_("div", Bt, [
|
|
1301
|
+
(D(!0), $(ce, null, ue(U(pe), (C) => (D(), $("div", {
|
|
1293
1302
|
key: C.id,
|
|
1294
|
-
class:
|
|
1295
|
-
onClick: (
|
|
1296
|
-
}, q(C.name), 11,
|
|
1303
|
+
class: H(["types-item", { "types-item-active": h.value === C.id }]),
|
|
1304
|
+
onClick: (Ne) => w(C)
|
|
1305
|
+
}, q(C.name), 11, At))), 128))
|
|
1297
1306
|
]),
|
|
1298
|
-
_("div",
|
|
1307
|
+
_("div", Lt, [
|
|
1299
1308
|
S(b, {
|
|
1300
1309
|
ref: "tree",
|
|
1301
1310
|
height: 700,
|
|
@@ -1305,17 +1314,17 @@ const Dt = Te(xt), Kt = {
|
|
|
1305
1314
|
"highlight-current": !0,
|
|
1306
1315
|
props: j,
|
|
1307
1316
|
"show-checkbox": "",
|
|
1308
|
-
onCheck:
|
|
1317
|
+
onCheck: O,
|
|
1309
1318
|
onNodeClick: V,
|
|
1310
1319
|
"empty-text": "暂无数据"
|
|
1311
1320
|
}, null, 8, ["data", "current-node-key"])
|
|
1312
1321
|
])
|
|
1313
|
-
])) : (
|
|
1322
|
+
])) : (D(), $("div", $t, v[2] || (v[2] = [
|
|
1314
1323
|
_("span", null, "加载中...", -1)
|
|
1315
1324
|
])))
|
|
1316
1325
|
]),
|
|
1317
1326
|
_: 1
|
|
1318
|
-
})) : !U(X)("isMobile") && U(
|
|
1327
|
+
})) : !U(X)("isMobile") && U(De).currentTheme == "light-gray" ? (D(), G(P, {
|
|
1319
1328
|
key: 1,
|
|
1320
1329
|
class: "pc_structure_container",
|
|
1321
1330
|
width: 286,
|
|
@@ -1325,15 +1334,15 @@ const Dt = Te(xt), Kt = {
|
|
|
1325
1334
|
setWidth: ""
|
|
1326
1335
|
}, {
|
|
1327
1336
|
default: I(() => [
|
|
1328
|
-
_("div",
|
|
1329
|
-
(
|
|
1337
|
+
_("div", jt, [
|
|
1338
|
+
(D(!0), $(ce, null, ue(U(pe), (C) => (D(), $("div", {
|
|
1330
1339
|
key: C.id,
|
|
1331
|
-
class:
|
|
1332
|
-
onClick: (
|
|
1333
|
-
}, q(C.name), 11,
|
|
1340
|
+
class: H(["type_button", { type_button_active: h.value === C.id }]),
|
|
1341
|
+
onClick: (Ne) => w(C)
|
|
1342
|
+
}, q(C.name), 11, Ot))), 128))
|
|
1334
1343
|
]),
|
|
1335
|
-
_("div",
|
|
1336
|
-
_("div",
|
|
1344
|
+
_("div", Pt, [
|
|
1345
|
+
_("div", Mt, [
|
|
1337
1346
|
S(m, {
|
|
1338
1347
|
modelValue: E.value,
|
|
1339
1348
|
"onUpdate:modelValue": v[0] || (v[0] = (C) => E.value = C),
|
|
@@ -1342,8 +1351,8 @@ const Dt = Te(xt), Kt = {
|
|
|
1342
1351
|
clearable: ""
|
|
1343
1352
|
}, null, 8, ["modelValue"])
|
|
1344
1353
|
]),
|
|
1345
|
-
W(_("div",
|
|
1346
|
-
S(
|
|
1354
|
+
W(_("div", Ht, [
|
|
1355
|
+
S(K, null, {
|
|
1347
1356
|
default: I(() => [
|
|
1348
1357
|
S(b, {
|
|
1349
1358
|
ref_key: "tree0",
|
|
@@ -1355,7 +1364,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1355
1364
|
props: j,
|
|
1356
1365
|
"filter-node-method": L,
|
|
1357
1366
|
"show-checkbox": "",
|
|
1358
|
-
onCheck:
|
|
1367
|
+
onCheck: O,
|
|
1359
1368
|
onNodeClick: V,
|
|
1360
1369
|
"empty-text": "暂无数据"
|
|
1361
1370
|
}, {
|
|
@@ -1363,7 +1372,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1363
1372
|
_("span", {
|
|
1364
1373
|
id: C.key + "0",
|
|
1365
1374
|
class: "tree_node_text"
|
|
1366
|
-
}, q(C.data.title), 9,
|
|
1375
|
+
}, q(C.data.title), 9, zt)
|
|
1367
1376
|
]),
|
|
1368
1377
|
_: 1
|
|
1369
1378
|
}, 8, ["data", "current-node-key"])
|
|
@@ -1373,8 +1382,8 @@ const Dt = Te(xt), Kt = {
|
|
|
1373
1382
|
], 512), [
|
|
1374
1383
|
[Y, h.value == 0]
|
|
1375
1384
|
]),
|
|
1376
|
-
W(_("div",
|
|
1377
|
-
S(
|
|
1385
|
+
W(_("div", Ft, [
|
|
1386
|
+
S(K, null, {
|
|
1378
1387
|
default: I(() => [
|
|
1379
1388
|
S(b, {
|
|
1380
1389
|
ref_key: "tree1",
|
|
@@ -1386,7 +1395,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1386
1395
|
props: j,
|
|
1387
1396
|
"filter-node-method": L,
|
|
1388
1397
|
"show-checkbox": "",
|
|
1389
|
-
onCheck:
|
|
1398
|
+
onCheck: O,
|
|
1390
1399
|
onNodeClick: V,
|
|
1391
1400
|
"empty-text": "暂无数据"
|
|
1392
1401
|
}, {
|
|
@@ -1394,7 +1403,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1394
1403
|
_("span", {
|
|
1395
1404
|
id: C.key + "1",
|
|
1396
1405
|
class: "tree_node_text"
|
|
1397
|
-
}, q(C.data.title), 9,
|
|
1406
|
+
}, q(C.data.title), 9, qt)
|
|
1398
1407
|
]),
|
|
1399
1408
|
_: 1
|
|
1400
1409
|
}, 8, ["data", "current-node-key"])
|
|
@@ -1404,8 +1413,8 @@ const Dt = Te(xt), Kt = {
|
|
|
1404
1413
|
], 512), [
|
|
1405
1414
|
[Y, h.value == 1]
|
|
1406
1415
|
]),
|
|
1407
|
-
W(_("div",
|
|
1408
|
-
S(
|
|
1416
|
+
W(_("div", Rt, [
|
|
1417
|
+
S(K, null, {
|
|
1409
1418
|
default: I(() => [
|
|
1410
1419
|
S(b, {
|
|
1411
1420
|
ref_key: "tree2",
|
|
@@ -1417,7 +1426,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1417
1426
|
props: j,
|
|
1418
1427
|
"filter-node-method": L,
|
|
1419
1428
|
"show-checkbox": "",
|
|
1420
|
-
onCheck:
|
|
1429
|
+
onCheck: O,
|
|
1421
1430
|
onNodeClick: V,
|
|
1422
1431
|
"empty-text": "暂无数据"
|
|
1423
1432
|
}, {
|
|
@@ -1425,7 +1434,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1425
1434
|
_("span", {
|
|
1426
1435
|
id: C.key + "2",
|
|
1427
1436
|
class: "tree_node_text"
|
|
1428
|
-
}, q(C.data.title), 9,
|
|
1437
|
+
}, q(C.data.title), 9, Vt)
|
|
1429
1438
|
]),
|
|
1430
1439
|
_: 1
|
|
1431
1440
|
}, 8, ["data", "current-node-key"])
|
|
@@ -1438,11 +1447,11 @@ const Dt = Te(xt), Kt = {
|
|
|
1438
1447
|
])
|
|
1439
1448
|
]),
|
|
1440
1449
|
_: 1
|
|
1441
|
-
}, 8, ["pos"])) : (
|
|
1442
|
-
_("div",
|
|
1443
|
-
_("div",
|
|
1450
|
+
}, 8, ["pos"])) : (D(), $("div", Ut, [
|
|
1451
|
+
_("div", Wt, [
|
|
1452
|
+
_("div", Yt, [
|
|
1444
1453
|
v[3] || (v[3] = _("div", { class: "tree-title" }, "结构树", -1)),
|
|
1445
|
-
_("div",
|
|
1454
|
+
_("div", Gt, [
|
|
1446
1455
|
S(J, {
|
|
1447
1456
|
class: "close",
|
|
1448
1457
|
width: 0.4,
|
|
@@ -1451,23 +1460,23 @@ const Dt = Te(xt), Kt = {
|
|
|
1451
1460
|
})
|
|
1452
1461
|
])
|
|
1453
1462
|
]),
|
|
1454
|
-
_("div",
|
|
1455
|
-
S(
|
|
1463
|
+
_("div", Jt, [
|
|
1464
|
+
S(K, null, {
|
|
1456
1465
|
default: I(() => [
|
|
1457
|
-
_("div",
|
|
1458
|
-
(
|
|
1459
|
-
key:
|
|
1460
|
-
class:
|
|
1466
|
+
_("div", Qt, [
|
|
1467
|
+
(D(!0), $(ce, null, ue(U(pe), (C, Ne) => (D(), $("div", {
|
|
1468
|
+
key: Ne,
|
|
1469
|
+
class: H(["tree-category-item", {
|
|
1461
1470
|
"tree-category-item-active": C.id === h.value
|
|
1462
1471
|
}]),
|
|
1463
|
-
onClick: (
|
|
1464
|
-
}, q(C.name), 11,
|
|
1472
|
+
onClick: (ln) => w(C)
|
|
1473
|
+
}, q(C.name), 11, Xt))), 128))
|
|
1465
1474
|
])
|
|
1466
1475
|
]),
|
|
1467
1476
|
_: 1
|
|
1468
1477
|
})
|
|
1469
1478
|
]),
|
|
1470
|
-
_("div",
|
|
1479
|
+
_("div", Zt, [
|
|
1471
1480
|
S(m, {
|
|
1472
1481
|
modelValue: E.value,
|
|
1473
1482
|
"onUpdate:modelValue": v[1] || (v[1] = (C) => E.value = C),
|
|
@@ -1476,9 +1485,9 @@ const Dt = Te(xt), Kt = {
|
|
|
1476
1485
|
clearable: ""
|
|
1477
1486
|
}, null, 8, ["modelValue"])
|
|
1478
1487
|
]),
|
|
1479
|
-
_("div",
|
|
1480
|
-
W(_("div",
|
|
1481
|
-
S(
|
|
1488
|
+
_("div", en, [
|
|
1489
|
+
W(_("div", tn, [
|
|
1490
|
+
S(K, null, {
|
|
1482
1491
|
default: I(() => [
|
|
1483
1492
|
S(b, {
|
|
1484
1493
|
ref_key: "tree0",
|
|
@@ -1490,7 +1499,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1490
1499
|
props: j,
|
|
1491
1500
|
"filter-node-method": L,
|
|
1492
1501
|
"show-checkbox": "",
|
|
1493
|
-
onCheck:
|
|
1502
|
+
onCheck: O,
|
|
1494
1503
|
onNodeClick: V,
|
|
1495
1504
|
"empty-text": "暂无数据"
|
|
1496
1505
|
}, {
|
|
@@ -1498,7 +1507,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1498
1507
|
_("span", {
|
|
1499
1508
|
id: C.key + "0",
|
|
1500
1509
|
class: "tree_node_text"
|
|
1501
|
-
}, q(C.data.title), 9,
|
|
1510
|
+
}, q(C.data.title), 9, nn)
|
|
1502
1511
|
]),
|
|
1503
1512
|
_: 1
|
|
1504
1513
|
}, 8, ["data", "current-node-key"])
|
|
@@ -1508,8 +1517,8 @@ const Dt = Te(xt), Kt = {
|
|
|
1508
1517
|
], 512), [
|
|
1509
1518
|
[Y, h.value == 0]
|
|
1510
1519
|
]),
|
|
1511
|
-
W(_("div",
|
|
1512
|
-
S(
|
|
1520
|
+
W(_("div", on, [
|
|
1521
|
+
S(K, null, {
|
|
1513
1522
|
default: I(() => [
|
|
1514
1523
|
S(b, {
|
|
1515
1524
|
ref_key: "tree1",
|
|
@@ -1521,7 +1530,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1521
1530
|
props: j,
|
|
1522
1531
|
"filter-node-method": L,
|
|
1523
1532
|
"show-checkbox": "",
|
|
1524
|
-
onCheck:
|
|
1533
|
+
onCheck: O,
|
|
1525
1534
|
onNodeClick: V,
|
|
1526
1535
|
"empty-text": "暂无数据"
|
|
1527
1536
|
}, {
|
|
@@ -1529,7 +1538,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1529
1538
|
_("span", {
|
|
1530
1539
|
id: C.key + "1",
|
|
1531
1540
|
class: "tree_node_text"
|
|
1532
|
-
}, q(C.data.title), 9,
|
|
1541
|
+
}, q(C.data.title), 9, sn)
|
|
1533
1542
|
]),
|
|
1534
1543
|
_: 1
|
|
1535
1544
|
}, 8, ["data", "current-node-key"])
|
|
@@ -1539,8 +1548,8 @@ const Dt = Te(xt), Kt = {
|
|
|
1539
1548
|
], 512), [
|
|
1540
1549
|
[Y, h.value == 1]
|
|
1541
1550
|
]),
|
|
1542
|
-
W(_("div",
|
|
1543
|
-
S(
|
|
1551
|
+
W(_("div", dn, [
|
|
1552
|
+
S(K, null, {
|
|
1544
1553
|
default: I(() => [
|
|
1545
1554
|
S(b, {
|
|
1546
1555
|
ref_key: "tree2",
|
|
@@ -1552,7 +1561,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1552
1561
|
props: j,
|
|
1553
1562
|
"filter-node-method": L,
|
|
1554
1563
|
"show-checkbox": "",
|
|
1555
|
-
onCheck:
|
|
1564
|
+
onCheck: O,
|
|
1556
1565
|
onNodeClick: V,
|
|
1557
1566
|
"empty-text": "暂无数据"
|
|
1558
1567
|
}, {
|
|
@@ -1560,7 +1569,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1560
1569
|
_("span", {
|
|
1561
1570
|
id: C.key + "2",
|
|
1562
1571
|
class: "tree_node_text"
|
|
1563
|
-
}, q(C.data.title), 9,
|
|
1572
|
+
}, q(C.data.title), 9, rn)
|
|
1564
1573
|
]),
|
|
1565
1574
|
_: 1
|
|
1566
1575
|
}, 8, ["data", "current-node-key"])
|
|
@@ -1575,7 +1584,7 @@ const Dt = Te(xt), Kt = {
|
|
|
1575
1584
|
]));
|
|
1576
1585
|
};
|
|
1577
1586
|
}
|
|
1578
|
-
}),
|
|
1587
|
+
}), vn = /* @__PURE__ */ et(an, [["__scopeId", "data-v-ee8ac873"]]);
|
|
1579
1588
|
export {
|
|
1580
|
-
|
|
1589
|
+
vn as default
|
|
1581
1590
|
};
|