fix: 修复多选组件时新增组件的体验问题
This commit is contained in:
@@ -186,6 +186,7 @@ export default class StageCore extends EventEmitter {
|
||||
* @param idOrEl 组件Dom节点的id属性,或者Dom节点
|
||||
*/
|
||||
public async select(idOrEl: Id | HTMLElement, event?: MouseEvent): Promise<void> {
|
||||
this.clearSelectStatus('multiSelect');
|
||||
const el = await this.getTargetElement(idOrEl);
|
||||
|
||||
if (el === this.selectedDom) return;
|
||||
@@ -199,7 +200,6 @@ export default class StageCore extends EventEmitter {
|
||||
}
|
||||
|
||||
this.mask.setLayout(el);
|
||||
this.multiDr.destroyDragElList();
|
||||
this.dr.select(el, event);
|
||||
|
||||
if (this.config.autoScrollIntoView || el.dataset.autoScrollIntoView) {
|
||||
|
||||
Reference in New Issue
Block a user