mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-13 15:12:15 +08:00
fix(editor): 从组件树选中没有渲染的组件时,需要等待组件渲染完成再初始化选中框
This commit is contained in:
parent
39dcd89acf
commit
8390ba75be
@ -68,12 +68,12 @@ import LayerMenu from './LayerMenu.vue';
|
||||
|
||||
const throttleTime = 150;
|
||||
|
||||
const select = (data: MNode, editorService?: EditorService) => {
|
||||
const select = async (data: MNode, editorService?: EditorService) => {
|
||||
if (!data.id) {
|
||||
throw new Error('没有id');
|
||||
}
|
||||
|
||||
editorService?.select(data);
|
||||
await editorService?.select(data);
|
||||
editorService?.get<StageCore>('stage')?.select(data.id);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user