1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-06-06 13:04:05 +08:00

fix: 去除承接节点

This commit is contained in:
shangbin 2021-12-08 20:35:24 +08:00
parent 0363ba208a
commit 201f8a9abf

View File

@ -122,17 +122,7 @@ export class MainPanelProvider {
*/
createMountedElement() {
const renderControlPanel = this.getControlPanelRoot();
const child = document.createElement('div');
child.style = "background-color: white;"
// 清空子节点
while (renderControlPanel.firstChild) {
renderControlPanel.removeChild(renderControlPanel.firstChild)
}
renderControlPanel.appendChild(child);
return child;
return renderControlPanel;
}
/**
@ -260,7 +250,6 @@ export class MainPanelProvider {
* 开启编辑模式并禁用默认的事件添加编辑事件
*/
enableEditMode() {
debugger
const renderControlPanel = this.getControlPanelRoot();
// 加一个延迟的作用是给el-table这种绘制需要时间的组件留出充足的时间否则会造成el-table渲染不到页面上
setTimeout(() => {