From dba21edfad1a6f85b7ff1f7958aa1608f1a6b450 Mon Sep 17 00:00:00 2001 From: kangwei Date: Mon, 16 Mar 2020 20:59:17 +0800 Subject: [PATCH] fix multi select --- packages/plugin-settings/src/index.tsx | 4 ++-- packages/plugin-settings/src/main.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/plugin-settings/src/index.tsx b/packages/plugin-settings/src/index.tsx index c7ebbf33a..d1edcc926 100644 --- a/packages/plugin-settings/src/index.tsx +++ b/packages/plugin-settings/src/index.tsx @@ -42,10 +42,10 @@ export default class SettingsMainView extends Component { let node: Node | null = this.main.nodes[0]!; const items = []; - let l = 4; + let l = 3; while (l-- > 0 && node) { const props = - l === 3 + l === 2 ? {} : { onMouseOver: hoverNode.bind(null, node, true), diff --git a/packages/plugin-settings/src/main.ts b/packages/plugin-settings/src/main.ts index 84a4d67b7..7c07e91f2 100644 --- a/packages/plugin-settings/src/main.ts +++ b/packages/plugin-settings/src/main.ts @@ -535,7 +535,7 @@ export class SettingsMain implements SettingTarget { let theSame = true; for (let i = 1; i < l; i++) { const other = this.nodes[i]; - if ((other as any).componentType !== meta) { + if (other.componentMeta !== meta) { theSame = false; break; }