no message
Former-commit-id: 1ec246744a653ec6359b0070410e2cadb34b1665 Former-commit-id: b32f6520504d85ab2188914922c07c1d0e3dec32 Former-commit-id: dfbc0be8d5128ef0cef1db9f32b4e56f59941c9d
This commit is contained in:
14
src/mock/chart/G2Pie.js
Normal file
14
src/mock/chart/G2Pie.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import Mock from 'mockjs'
|
||||
import * as fn from './_fn'
|
||||
|
||||
Mock.mock('/api/chart/G2Pie', 'post', ({body, type, url}) => {
|
||||
const _body = JSON.parse(body)
|
||||
switch (_body.type) {
|
||||
// 基础折线图
|
||||
case 'base': {
|
||||
return fn.returnMaker(['中国', '日本', '美国', '法国', '英国'].map(e => ({item: e, count: fn.r()})))
|
||||
}
|
||||
default:
|
||||
return {}
|
||||
}
|
||||
})
|
||||
@@ -1,3 +1,4 @@
|
||||
import './G2Bar'
|
||||
import './G2Column'
|
||||
import './G2Line'
|
||||
import './G2Pie'
|
||||
|
||||
Reference in New Issue
Block a user