Skip to content

Commit a5d2fd4

Browse files
authored
feat: clicking node in the outline tree is invalid when page unlocked (#1172)
允许页面未锁定时通过点击大纲树 hover 和 选中节点。
1 parent 855ccdf commit a5d2fd4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: packages/plugins/tree/src/Main.vue

-8
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ export default {
134134
}
135135
136136
const handleMouseEnterRow = (row) => {
137-
if (state.isLock) {
138-
return
139-
}
140-
141137
const { hoverNode } = useCanvas().canvasApi.value
142138
143139
hoverNode(row.id)
@@ -190,10 +186,6 @@ export default {
190186
}
191187
192188
const handleClickRow = (row) => {
193-
if (state.isLock) {
194-
return
195-
}
196-
197189
const { selectNode } = useCanvas().canvasApi.value
198190
selectNode(row.id, 'clickTree')
199191
}

0 commit comments

Comments
 (0)