From 58f104799cc425f89c8dba394de717c825efdeb7 Mon Sep 17 00:00:00 2001 From: Shangbin Date: Sat, 17 Apr 2021 23:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=86=E5=BA=93=E6=89=80?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E7=9A=84=E5=9B=BE=E7=89=87=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 2 +- package.json | 2 +- src/components-v2/Main.vue | 4 ++-- src/components-v2/ToolsBar.vue | 2 +- src/components/Code.vue | 4 ++-- src/components/RawComponents.vue | 10 +++++----- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/main.js b/main.js index b026cf5..bb8e6d4 100644 --- a/main.js +++ b/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); diff --git a/package.json b/package.json index 6a261c5..cacd072 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components-v2/Main.vue b/src/components-v2/Main.vue index 8884a3c..0f78607 100644 --- a/src/components-v2/Main.vue +++ b/src/components-v2/Main.vue @@ -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 }; diff --git a/src/components-v2/ToolsBar.vue b/src/components-v2/ToolsBar.vue index 706ab4c..7e4f471 100644 --- a/src/components-v2/ToolsBar.vue +++ b/src/components-v2/ToolsBar.vue @@ -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: {}, diff --git a/src/components/Code.vue b/src/components/Code.vue index 8c8ac89..163c5b1 100644 --- a/src/components/Code.vue +++ b/src/components/Code.vue @@ -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() { }, diff --git a/src/components/RawComponents.vue b/src/components/RawComponents.vue index 29293dd..5fcbf57 100644 --- a/src/components/RawComponents.vue +++ b/src/components/RawComponents.vue @@ -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 },],