@bimdata/design-system 2.1.0-rc.22 → 2.1.0-rc.23
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/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="nodeRef"
|
|
4
|
+
v-show="visible"
|
|
4
5
|
class="bimdata-tree__node"
|
|
5
6
|
:class="{
|
|
6
7
|
'bimdata-tree__node--selected': node.id === state.selectedId,
|
|
@@ -113,12 +114,20 @@ Node = {
|
|
|
113
114
|
setup(props) {
|
|
114
115
|
const state = inject("state");
|
|
115
116
|
|
|
117
|
+
let visible = null;
|
|
118
|
+
if (isRef(props.node.visibleRef)) {
|
|
119
|
+
visible = props.node.visibleRef;
|
|
120
|
+
} else {
|
|
121
|
+
visible = ref(true);
|
|
122
|
+
}
|
|
123
|
+
|
|
116
124
|
let expanded = null;
|
|
117
125
|
if (isRef(props.node.expandedRef)) {
|
|
118
126
|
expanded = props.node.expandedRef;
|
|
119
127
|
} else {
|
|
120
128
|
expanded = ref(false);
|
|
121
129
|
}
|
|
130
|
+
|
|
122
131
|
const nodeRef = ref(null);
|
|
123
132
|
|
|
124
133
|
let expandTimer = null;
|
|
@@ -181,6 +190,7 @@ Node = {
|
|
|
181
190
|
state,
|
|
182
191
|
nodeRef,
|
|
183
192
|
expanded,
|
|
193
|
+
visible,
|
|
184
194
|
dropHelperPosition,
|
|
185
195
|
hasAncestorSelected: state.hasAncestorSelected,
|
|
186
196
|
onMouseEnter,
|