From 05178b25be5eb4b463446d4f222d557b3a2ff9ad Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 20 Jul 2021 18:58:55 +0800 Subject: [PATCH] =?UTF-8?q?CN-65=20feat:=20=E6=B5=81=E9=87=8F=E6=9B=B2?= =?UTF-8?q?=E7=BA=BF=E5=9B=BE=E3=80=81=E9=A5=BC=E5=9B=BE=E3=80=81=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.config.js | 23 ++++---- src/assets/css/common.scss | 4 ++ src/components/charts/ChartTable.vue | 2 +- src/components/charts/PieTable.vue | 5 +- src/components/charts/StatisticsLegend.vue | 2 +- src/components/charts/chart-formatter.js | 55 +++++++++++++++++++ src/components/charts/chart-options.js | 15 +++-- ...hartTableTitle.js => chart-table-title.js} | 11 ++-- src/components/charts/chartFormatter.js | 24 -------- src/components/entities/LeftFilter.vue | 1 - src/views/charts/Chart.vue | 21 ++++--- 11 files changed, 105 insertions(+), 58 deletions(-) create mode 100644 src/components/charts/chart-formatter.js rename src/components/charts/{chartTableTitle.js => chart-table-title.js} (74%) delete mode 100644 src/components/charts/chartFormatter.js diff --git a/build/webpack.config.js b/build/webpack.config.js index f448544d..451c22a4 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -6,17 +6,17 @@ const { VueLoaderPlugin } = require('vue-loader') const libMode = process.env.LIBMODE const isFullMode = libMode === 'full' -let externals = [ +const externals = [ { vue: { root: 'Vue', commonjs: 'vue', - commonjs2: 'vue', - }, - }, + commonjs2: 'vue' + } + } ] const plugins = [ - new VueLoaderPlugin(), + new VueLoaderPlugin() // new BundleAnalyzerPlugin(), ] @@ -50,20 +50,21 @@ const config = { rules: [ { test: /\.vue$/, - use: 'vue-loader', + use: 'vue-loader' }, { test: /\.(ts|js)x?$/, exclude: /node_modules/, - loader: 'babel-loader', - }, - ], + loader: 'babel-loader' + } + ] }, resolve: { - extensions: ['.ts', '.tsx', '.js', '.json'], + extensions: ['.ts', '.tsx', '.js', '.json'] }, + cache: true, externals, - plugins, + plugins } module.exports = config diff --git a/src/assets/css/common.scss b/src/assets/css/common.scss index dc43eb28..716866eb 100644 --- a/src/assets/css/common.scss +++ b/src/assets/css/common.scss @@ -60,3 +60,7 @@ th *:first-letter, height: 100%; width: 100%; } + +.el-table__empty-block { + width: 100% !important; +} diff --git a/src/components/charts/ChartTable.vue b/src/components/charts/ChartTable.vue index 87551a5f..70fe5a0a 100644 --- a/src/components/charts/ChartTable.vue +++ b/src/components/charts/ChartTable.vue @@ -45,7 +45,7 @@