1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-09-28 07:13:21 +08:00

解决被其它项目引用不能正常解析组件的问题

This commit is contained in:
Shangbin
2021-10-23 20:58:40 +08:00
parent bc30b01c5e
commit 1464cbe4f9
4 changed files with 9 additions and 1 deletions

View File

@@ -96,6 +96,11 @@ export default {
this.$refs['attributeInput'].onHide();
}
},
initCodeEntity(newVal) {
if (newVal) {
this.mainPanelProvider.render(newVal);
}
}
},
computed: {
},

View File

@@ -6,7 +6,6 @@
*
*/
import { parseComponent } from 'vue-template-compiler/browser';
import Vue from 'vue';
import { merge, insertPresetAttribute, getSplitTag, replaceRowID, updateLinkTree, findCodeElemNode, findRawVueInfo, removeAllID } from "@/utils/forCode";
import { getRawComponentContent, getRawComponentKey, isObject } from '@/utils/common';
import { createNewCodeGenerator } from "@/libs/code-generator-factory";

View File

@@ -11,6 +11,9 @@ import "./assets/nestable.css"
Vue.use(ElementUI);
Vue.use(AntdUI);
// 内部需要同样配置的全局Vue
self.Vue = Vue;
new Vue({
el: "#app",
render: (h) => h(APP),