no message

Former-commit-id: 4bfe822510fad9d3caab87f4ff29ce200740555e
Former-commit-id: 0336d2c16b1a871375b0d94720c950640397e10d
Former-commit-id: d8acf08adce671df5fefe8eaf573defd2f6e424f
This commit is contained in:
李杨
2018-02-19 12:04:59 +08:00
parent 4042d5f46d
commit 0c95fc37dc
5 changed files with 117 additions and 1 deletions

18
src/mock/chart/G2Radar.js Normal file
View File

@@ -0,0 +1,18 @@
import Mock from 'mockjs'
import * as fn from './_fn'
Mock.mock('/api/chart/G2Radar', 'post', ({body, type, url}) => {
const _body = JSON.parse(body)
switch (_body.type) {
// 基础折线图
case 'base': {
return fn.returnMaker(['中国', '日本', '美国', '法国', '英国'].map(e => ({
item: e,
a: fn.r(),
b: fn.r()
})))
}
default:
return {}
}
})

View File

@@ -3,3 +3,4 @@ import './G2Column'
import './G2Line'
import './G2NightingaleRose'
import './G2Pie'
import './G2Radar'