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