diff --git a/package.json b/package.json index 95f3f592..23cbf612 100644 --- a/package.json +++ b/package.json @@ -15,22 +15,21 @@ }, "dependencies": { "@d2-admin/filters-dayjs": "^1.0.3", - "@d2-projects/d2-crud": "^2.0.5", + "@d2-projects/d2-crud": "^2.1.1", "@d2-projects/vue-table-export": "^1.0.1", "@d2-projects/vue-table-import": "^1.0.0", - "axios": "^0.18.0", + "axios": "^0.19.0", "better-scroll": "^1.15.2", - "clipboard-polyfill": "^2.8.0", - "core-js": "^2.6.5", + "clipboard-polyfill": "^2.8.1", "countup.js": "^2.0.4", - "dayjs": "^1.8.12", + "dayjs": "^1.8.14", "echarts": "^4.2.1", "element-ui": "^2.9.1", "flex.css": "^1.1.7", - "fuse.js": "^3.4.4", + "fuse.js": "^3.4.5", "github-markdown-css": "^3.0.1", - "highlight.js": "^9.15.6", - "hotkeys-js": "^3.6.2", + "highlight.js": "^9.15.8", + "hotkeys-js": "^3.6.11", "js-cookie": "^2.2.0", "lodash": "^4.17.11", "lowdb": "^1.0.0", @@ -41,38 +40,37 @@ "quill": "^1.3.6", "screenfull": "^4.2.0", "simplemde": "^1.11.2", - "ua-parser-js": "^0.7.19", + "ua-parser-js": "^0.7.20", "v-charts": "^1.19.0", "v-contextmenu": "^2.8.0", "vue": "^2.6.10", "vue-grid-layout": "^2.3.4", - "vue-i18n": "^8.0.0", + "vue-i18n": "^8.11.2", "vue-json-tree-view": "^2.1.4", - "vue-router": "^3.0.3", + "vue-router": "^3.0.6", "vue-splitpane": "^1.0.4", "vue-ueditor-wrap": "^2.4.1", - "vuex": "^3.0.1" + "vuex": "^3.1.1" }, "devDependencies": { "@kazupon/vue-i18n-loader": "^0.3.0", - "@vue/cli-plugin-babel": "^3.6.0", - "@vue/cli-plugin-eslint": "^3.6.0", - "@vue/cli-plugin-unit-jest": "^3.6.0", - "@vue/cli-service": "^3.6.0", + "@vue/cli-plugin-babel": "^3.8.0", + "@vue/cli-plugin-eslint": "^3.8.0", + "@vue/cli-plugin-unit-jest": "^3.8.0", + "@vue/cli-service": "^3.8.0", "@vue/eslint-config-standard": "^4.0.0", "@vue/test-utils": "1.0.0-beta.29", - "babel-core": "7.0.0-bridge.0", "babel-eslint": "^10.0.1", - "babel-jest": "^23.6.0", + "babel-jest": "^24.8.0", "eslint": "^5.16.0", - "eslint-plugin-vue": "^5.0.0", - "sass": "^1.18.0", + "eslint-plugin-vue": "^5.2.2", + "sass": "^1.21.0", "sass-loader": "^7.1.0", - "svg-sprite-loader": "^4.1.3", + "svg-sprite-loader": "^4.1.6", "text-loader": "0.0.1", - "uglifyjs-webpack-plugin": "^2.1.2", + "uglifyjs-webpack-plugin": "^2.1.3", "vue-cli-plugin-i18n": "^0.6.0", - "vue-template-compiler": "^2.5.21", - "webpack-theme-color-replacer": "^1.2.1" + "vue-template-compiler": "^2.6.10", + "webpack-theme-color-replacer": "^1.2.5" } } diff --git a/src/layout/header-aside/components/header-color/index.vue b/src/layout/header-aside/components/header-color/index.vue index dfac4060..fc956dc2 100644 --- a/src/layout/header-aside/components/header-color/index.vue +++ b/src/layout/header-aside/components/header-color/index.vue @@ -34,7 +34,7 @@ export default { oldColors: [...forElementUI.getElementUISeries(curColor)], newColors: [...forElementUI.getElementUISeries(newColor)] } - client.changer.changeColor(options, Promise) + client.changer.changeColor(options) } } } diff --git a/vue.config.js b/vue.config.js index cf540f99..316e2d13 100644 --- a/vue.config.js +++ b/vue.config.js @@ -29,6 +29,10 @@ module.exports = { } } }, + // node_modules 需要babel成es5的包 + transpileDependencies: [ + 'webpack-theme-color-replacer' + ], configureWebpack: { plugins: [ new ThemeColorReplacer({ @@ -36,6 +40,7 @@ module.exports = { matchColors: [ ...forElementUI.getElementUISeries(process.env.VUE_APP_ELEMENT_COLOR) // Element-ui主色系列 ], + externalCssFiles: ['./node_modules/element-ui/lib/theme-chalk/index.css'], // optional, String or string array. Set external css files (such as cdn css) to extract colors. changeSelector: forElementUI.changeSelector }) ] diff --git a/yarn.lock.REMOVED.git-id b/yarn.lock.REMOVED.git-id index f7ddd3f3..048f4d17 100644 --- a/yarn.lock.REMOVED.git-id +++ b/yarn.lock.REMOVED.git-id @@ -1 +1 @@ -12deef00e0a1116ba0392a3851989164ee601528 \ No newline at end of file +b90ddad21ccad6e1a280693fba504af4a91c6fd3 \ No newline at end of file