Skip to content

Commit

Permalink
fix(editor): 组件树切换选择组件可能触发多选
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Mar 2, 2023
1 parent dc96720 commit b8cda53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/editor/src/layouts/sidebar/LayerPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ const toggleClickFlag = () => {
// 选择节点多选框
const checkHandler = (data: MNode, { checkedNodes }: any): void => {
if (!isCtrlKeyDown.value && nodes.value.length < 2) {
return;
}
if (checkedNodes.length > 0) {
multiSelect(checkedNodes.map((node: MNode) => node.id));
} else {
Expand Down

0 comments on commit b8cda53

Please sign in to comment.