mirror of
https://github.com/sahadev/vue-component-creater-ui.git
synced 2025-06-07 21:54:05 +08:00
解决被其它项目引用不能正常解析组件的问题
This commit is contained in:
parent
bc30b01c5e
commit
1464cbe4f9
@ -12,6 +12,7 @@
|
||||
"serve": "vue-cli-service serve --open --port 8008",
|
||||
"build:release": "vue-cli-service build",
|
||||
"build": "vue-cli-service build --report --target lib --name vcc './src/components-v2/VCC.vue' && node ./src/script/distClear.js",
|
||||
"build:win": "vue-cli-service build --report --target lib --name vcc ./src/components-v2/VCC.vue && node ./src/script/distClear.js",
|
||||
"compileAndbuild:dev": "npm run compileComponent && vue-cli-service build",
|
||||
"lint": "vue-cli-service lint",
|
||||
"build:prod": "vue-cli-service build --mode production",
|
||||
|
@ -96,6 +96,11 @@ export default {
|
||||
this.$refs['attributeInput'].onHide();
|
||||
}
|
||||
},
|
||||
initCodeEntity(newVal) {
|
||||
if (newVal) {
|
||||
this.mainPanelProvider.render(newVal);
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
},
|
||||
|
@ -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";
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user