[修改]修改部分组件名称

This commit is contained in:
zer0Black
2021-03-11 10:14:37 +08:00
parent 35eb1449d4
commit 2abbbef916
63 changed files with 92 additions and 95 deletions
+2 -2
View File
@@ -25,8 +25,8 @@
dataSource: {
type: Array,
default: () => [
{ type: 'Jeecg', 'Jan.': 18.9, 'Feb.': 28.8, 'Mar.': 39.3, 'Apr.': 81.4, 'May': 47, 'Jun.': 20.3, 'Jul.': 24, 'Aug.': 35.6 },
{ type: 'Jeebt', 'Jan.': 12.4, 'Feb.': 23.2, 'Mar.': 34.5, 'Apr.': 99.7, 'May': 52.6, 'Jun.': 35.5, 'Jul.': 37.4, 'Aug.': 42.4 }
{ type: 'JeroOne', 'Jan.': 18.9, 'Feb.': 28.8, 'Mar.': 39.3, 'Apr.': 81.4, 'May': 47, 'Jun.': 20.3, 'Jul.': 24, 'Aug.': 35.6 },
{ type: 'JeroTwo', 'Jan.': 12.4, 'Feb.': 23.2, 'Mar.': 34.5, 'Apr.': 99.7, 'May': 52.6, 'Jun.': 35.5, 'Jul.': 37.4, 'Aug.': 42.4 }
]
},
fields: {
@@ -26,23 +26,23 @@
dataSource: {
type: Array,
default: () => [
{ type: 'Jan', jeecg: 7.0, jeebt: 3.9 },
{ type: 'Feb', jeecg: 6.9, jeebt: 4.2 },
{ type: 'Mar', jeecg: 9.5, jeebt: 5.7 },
{ type: 'Apr', jeecg: 14.5, jeebt: 8.5 },
{ type: 'May', jeecg: 18.4, jeebt: 11.9 },
{ type: 'Jun', jeecg: 21.5, jeebt: 15.2 },
{ type: 'Jul', jeecg: 25.2, jeebt: 17.0 },
{ type: 'Aug', jeecg: 26.5, jeebt: 16.6 },
{ type: 'Sep', jeecg: 23.3, jeebt: 14.2 },
{ type: 'Oct', jeecg: 18.3, jeebt: 10.3 },
{ type: 'Nov', jeecg: 13.9, jeebt: 6.6 },
{ type: 'Dec', jeecg: 9.6, jeebt: 4.8 }
{ type: 'Jan', jeroOne: 7.0, jeroTwo: 3.9 },
{ type: 'Feb', jeroOne: 6.9, jeroTwo: 4.2 },
{ type: 'Mar', jeroOne: 9.5, jeroTwo: 5.7 },
{ type: 'Apr', jeroOne: 14.5, jeroTwo: 8.5 },
{ type: 'May', jeroOne: 18.4, jeroTwo: 11.9 },
{ type: 'Jun', jeroOne: 21.5, jeroTwo: 15.2 },
{ type: 'Jul', jeroOne: 25.2, jeroTwo: 17.0 },
{ type: 'Aug', jeroOne: 26.5, jeroTwo: 16.6 },
{ type: 'Sep', jeroOne: 23.3, jeroTwo: 14.2 },
{ type: 'Oct', jeroOne: 18.3, jeroTwo: 10.3 },
{ type: 'Nov', jeroOne: 13.9, jeroTwo: 6.6 },
{ type: 'Dec', jeroOne: 9.6, jeroTwo: 4.8 }
]
},
fields: {
type: Array,
default: () => ['jeecg', 'jeebt']
default: () => ['jeroOne', 'jeroTwo']
},
// 别名,需要的格式:[{field:'name',alias:'姓名'}, {field:'sex',alias:'性别'}]
aliases:{
+16 -16
View File
@@ -102,7 +102,7 @@ import BarMultid from '@/components/chart/BarMultid'
```json
[
{
"type": "Jeecg", // 列名
"type": "jero", // 列名
"Jan.": 18.9,
"Feb.": 28.8,
"Mar.": 39.3,
@@ -113,7 +113,7 @@ import BarMultid from '@/components/chart/BarMultid'
"Aug.": 35.6
},
{
"type": "Jeebt",
"type": "jeroTwo",
"Jan.": 12.4,
"Feb.": 23.2,
"Mar.": 34.5,
@@ -219,7 +219,7 @@ import LineChartMultid from '@/components/chart/LineChartMultid'
##### fields 示例
```json
["jero", "jeebt"]
["jero", "jeroTwo"]
```
##### dataSource 示例
@@ -228,20 +228,20 @@ import LineChartMultid from '@/components/chart/LineChartMultid'
[
{
"type": "Jan", // 列名
"jeecg": 7,
"jeebt": 3.9
"jero": 7,
"jeroTwo": 3.9
},
{ "type": "Feb", "jeecg": 6.9, "jeebt": 4.2 },
{ "type": "Mar", "jeecg": 9.5, "jeebt": 5.7 },
{ "type": "Apr", "jeecg": 14.5, "jeebt": 8.5 },
{ "type": "May", "jeecg": 18.4, "jeebt": 11.9 },
{ "type": "Jun", "jeecg": 21.5, "jeebt": 15.2 },
{ "type": "Jul", "jeecg": 25.2, "jeebt": 17 },
{ "type": "Aug", "jeecg": 26.5, "jeebt": 16.6 },
{ "type": "Sep", "jeecg": 23.3, "jeebt": 14.2 },
{ "type": "Oct", "jeecg": 18.3, "jeebt": 10.3 },
{ "type": "Nov", "jeecg": 13.9, "jeebt": 6.6 },
{ "type": "Dec", "jeecg": 9.6, "jeebt": 4.8 }
{ "type": "Feb", "jero": 6.9, "jeroTwo": 4.2 },
{ "type": "Mar", "jero": 9.5, "jeroTwo": 5.7 },
{ "type": "Apr", "jero": 14.5, "jeroTwo": 8.5 },
{ "type": "May", "jero": 18.4, "jeroTwo": 11.9 },
{ "type": "Jun", "jero": 21.5, "jeroTwo": 15.2 },
{ "type": "Jul", "jero": 25.2, "jeroTwo": 17 },
{ "type": "Aug", "jero": 26.5, "jeroTwo": 16.6 },
{ "type": "Sep", "jero": 23.3, "jeroTwo": 14.2 },
{ "type": "Oct", "jero": 18.3, "jeroTwo": 10.3 },
{ "type": "Nov", "jero": 13.9, "jeroTwo": 6.6 },
{ "type": "Dec", "jero": 9.6, "jeroTwo": 4.8 }
]
```