feat: monaco

This commit is contained in:
刘宗洋
2022-11-01 22:18:54 +08:00
parent 9870582779
commit 072028699a
4 changed files with 364 additions and 244 deletions

View File

@@ -34,11 +34,11 @@ const SqlExecBox = (props: SqlExecProps): void => {
if (boxInstance) {
const boxVue = boxInstance.component
// 调用open方法显示弹框注意不能使用boxVue.ctx来调用组件函数build打包后ctx会获取不到
boxVue.proxy.open(props);
boxVue.exposed.open(props);
} else {
boxInstance = renderBox()
SqlExecBox(props)
}
}
export default SqlExecBox;
export default SqlExecBox;