Skip to content

Commit 201f8a9

Browse files
author
shangbin
committed
fix: 去除承接节点
1 parent 0363ba2 commit 201f8a9

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/libs/main-panel.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,7 @@ export class MainPanelProvider {
122122
*/
123123
createMountedElement() {
124124
const renderControlPanel = this.getControlPanelRoot();
125-
const child = document.createElement('div');
126-
child.style = "background-color: white;"
127-
128-
// 清空子节点
129-
while (renderControlPanel.firstChild) {
130-
renderControlPanel.removeChild(renderControlPanel.firstChild)
131-
}
132-
133-
renderControlPanel.appendChild(child);
134-
135-
return child;
125+
return renderControlPanel;
136126
}
137127

138128
/**
@@ -260,7 +250,6 @@ export class MainPanelProvider {
260250
* 开启编辑模式,并禁用默认的事件,添加编辑事件
261251
*/
262252
enableEditMode() {
263-
debugger
264253
const renderControlPanel = this.getControlPanelRoot();
265254
// 加一个延迟的作用是:给el-table这种绘制需要时间的组件留出充足的时间,否则会造成el-table渲染不到页面上
266255
setTimeout(() => {

0 commit comments

Comments
 (0)