no message

Former-commit-id: de8aba5aa8b239e2abba42684b43d3d93bc0f761
Former-commit-id: d2b379a92960a7a183040463a47e5fe551084f50
Former-commit-id: 0b6c1177a037a967d0619678d68620673787e770
This commit is contained in:
李杨
2018-02-19 12:15:42 +08:00
parent cac399ca34
commit cd2ba2e826
5 changed files with 67 additions and 1 deletions

14
src/mock/chart/G2Area.js Normal file
View File

@@ -0,0 +1,14 @@
import Mock from 'mockjs'
import * as fn from './_fn'
Mock.mock('/api/chart/G2Area', 'post', ({body, type, url}) => {
const _body = JSON.parse(body)
switch (_body.type) {
// 基础折线图
case 'base': {
return fn.returnMaker(['3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月'].map(x => ({x, y: fn.r()})))
}
default:
return {}
}
})

View File

@@ -1,3 +1,4 @@
import './G2Area'
import './G2Bar'
import './G2Column'
import './G2Line'