const data2 = pivotTableData({
dimensionsConfig: [
{
dataIndex: 'city',
title: '城市',
},
{
dataIndex: 'date',
title: '时间',
},
],
measuresConfig: [
{
dataIndex: 'index_0',
title: '销售额',
},
{
dataIndex: 'index_1',
title: '毛利',
},
],
dataSource: testData,
rows: [ 'date','city'],
cols: ['$measure']
})
const app2 = <Table
tableLayout="fixed"
scroll={{x: '100%'}}
columns={data2.columns}
dataSource={data2.dataSource}
/>-
Notifications
You must be signed in to change notification settings - Fork 1
Open-Federation/pivot-table
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
一个通用的交叉表数据表转换器
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published

