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
29b1b5acb8
commit
58f104799c
2
main.js
2
main.js
@ -4,7 +4,7 @@ import "element-ui/lib/theme-chalk/index.css";
|
||||
|
||||
import AntdUI from "ant-design-vue";
|
||||
import "ant-design-vue/dist/antd.css";
|
||||
import Main from "./dist/vcc.common.js";
|
||||
import Main from "./dist/vcc.umd.min.js";
|
||||
|
||||
Vue.use(ElementUI);
|
||||
Vue.use(AntdUI);
|
||||
|
@ -5,7 +5,7 @@
|
||||
"main": "./src/main.js",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --open --port 8008",
|
||||
"build": "vue-cli-service build --target lib --name vcc ./src/components-v2/Main.jsvue",
|
||||
"build": "vue-cli-service build --target lib --name vcc ./src/components-v2/Main.vue",
|
||||
"compileAndbuild:dev": "npm run compileComponent && vue-cli-service build",
|
||||
"lint": "vue-cli-service lint",
|
||||
"build:prod": "vue-cli-service build --mode production",
|
||||
|
@ -87,8 +87,8 @@ export default {
|
||||
code: "",
|
||||
codeDialogVisible: false,
|
||||
structureVisible: false,
|
||||
iconCode: require("@/assets/icon/code-working-outline.svg"),
|
||||
iconClear: require("@/assets/icon/trash-outline.svg"),
|
||||
iconCode: ("https://static.imonkey.xueersi.com/download/vcc-resource/icon/code-working-outline.svg"),
|
||||
iconClear: ("https://static.imonkey.xueersi.com/download/vcc-resource/icon/trash-outline.svg"),
|
||||
|
||||
viewMode: false
|
||||
};
|
||||
|
@ -36,7 +36,7 @@ export default {
|
||||
return {
|
||||
previewMode: false,
|
||||
editMode: true,
|
||||
iconTreeStructure: require("@/assets/icon/tree-structure.png"),
|
||||
iconTreeStructure: ("https://static.imonkey.xueersi.com/download/vcc-resource/icon/tree-structure.png"),
|
||||
};
|
||||
},
|
||||
watch: {},
|
||||
|
@ -36,8 +36,8 @@ export default {
|
||||
return {
|
||||
// 在此自动生成
|
||||
|
||||
iconCopy: require("@/assets/icon/copy-outline.svg"),
|
||||
iconDownload: require("@/assets/icon/code-download-outline.svg"),
|
||||
iconCopy: ("https://static.imonkey.xueersi.com/download/vcc-resource/icon/copy-outline.svg"),
|
||||
iconDownload: ("https://static.imonkey.xueersi.com/download/vcc-resource/icon/code-download-outline.svg"),
|
||||
};
|
||||
},
|
||||
beforeCreate() { },
|
||||
|
@ -68,14 +68,14 @@ export default {
|
||||
activeName: "0",
|
||||
componentSearch: '',
|
||||
iconArray: [{
|
||||
icon: require('@/assets/logo/html-n.png'),
|
||||
icon: ('https://static.imonkey.xueersi.com/download/vcc-resource/logo/html-n.png'),
|
||||
clickCallback: this.onSelectElement,
|
||||
className: "demonstration-raw",
|
||||
enable: true,
|
||||
componentName: 'raw',
|
||||
titleArray: [],
|
||||
}, {
|
||||
icon: require('@/assets/logo/element-n.png'),
|
||||
icon: ('https://static.imonkey.xueersi.com/download/vcc-resource/logo/element-n.png'),
|
||||
clickCallback: this.onSelectElement,
|
||||
className: "demonstration-element",
|
||||
selectIndex: 0,
|
||||
@ -83,13 +83,13 @@ export default {
|
||||
enable: true,
|
||||
titleArray: [],
|
||||
}, {
|
||||
icon: require('@/assets/logo/vant-n.png'),
|
||||
icon: ('https://static.imonkey.xueersi.com/download/vcc-resource/logo/vant-n.png'),
|
||||
enable: false
|
||||
}, {
|
||||
icon: require('@/assets/logo/iview-n.png'),
|
||||
icon: ('https://static.imonkey.xueersi.com/download/vcc-resource/logo/iview-n.png'),
|
||||
enable: false
|
||||
}, {
|
||||
icon: require('@/assets/logo/quasar-n.png'),
|
||||
icon: ('https://static.imonkey.xueersi.com/download/vcc-resource/logo/quasar-n.png'),
|
||||
enable: false
|
||||
},],
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user