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