fix multi select

This commit is contained in:
kangwei 2020-03-16 20:59:17 +08:00
parent 90657fb6d5
commit dba21edfad
2 changed files with 3 additions and 3 deletions

View File

@ -42,10 +42,10 @@ export default class SettingsMainView extends Component {
let node: Node | null = this.main.nodes[0]!; let node: Node | null = this.main.nodes[0]!;
const items = []; const items = [];
let l = 4; let l = 3;
while (l-- > 0 && node) { while (l-- > 0 && node) {
const props = const props =
l === 3 l === 2
? {} ? {}
: { : {
onMouseOver: hoverNode.bind(null, node, true), onMouseOver: hoverNode.bind(null, node, true),

View File

@ -535,7 +535,7 @@ export class SettingsMain implements SettingTarget {
let theSame = true; let theSame = true;
for (let i = 1; i < l; i++) { for (let i = 1; i < l; i++) {
const other = this.nodes[i]; const other = this.nodes[i];
if ((other as any).componentType !== meta) { if (other.componentMeta !== meta) {
theSame = false; theSame = false;
break; break;
} }