no message
Former-commit-id: de8aba5aa8b239e2abba42684b43d3d93bc0f761 Former-commit-id: d2b379a92960a7a183040463a47e5fe551084f50 Former-commit-id: 0b6c1177a037a967d0619678d68620673787e770
This commit is contained in:
14
src/mock/chart/G2Area.js
Normal file
14
src/mock/chart/G2Area.js
Normal 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 {}
|
||||
}
|
||||
})
|
||||
@@ -1,3 +1,4 @@
|
||||
import './G2Area'
|
||||
import './G2Bar'
|
||||
import './G2Column'
|
||||
import './G2Line'
|
||||
|
||||
Reference in New Issue
Block a user