Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feat/pivot-chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Sep 1, 2023
2 parents f758e40 + 15afbf6 commit 63026ea
Show file tree
Hide file tree
Showing 103 changed files with 304 additions and 297 deletions.
6 changes: 3 additions & 3 deletions packages/vtable/__tests__/listTable-autoRowHeight.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ describe('listTable init test', () => {
expect(listTable.getCellValue(3, 5)).toEqual('万兰');
});

test('listTable API getCellType', () => {
expect(listTable.getCellType(5, 3)).toEqual('body');
expect(listTable.getCellType(5, 0)).toEqual('columnHeader');
test('listTable API getCellLocation', () => {
expect(listTable.getCellLocation(5, 3)).toEqual('body');
expect(listTable.getCellLocation(5, 0)).toEqual('columnHeader');
});
});
2 changes: 1 addition & 1 deletion packages/vtable/__tests__/listTable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe('listTable init test', () => {
// rowHeaderPaths: []
// },
// caption: '省/自治区',
// columnType: 'text',
// cellType: 'text',
// originData: {
// '行 ID': '5',
// '订单 ID': 'CN-2018-2975416',
Expand Down
12 changes: 6 additions & 6 deletions packages/vtable/__tests__/pivotChart.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const indicators: VTable.TYPES.IIndicator[] = [
indicatorKey: '230417171050011',
title: '数量',
width: 'auto',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
// type: 'common',
Expand Down Expand Up @@ -113,7 +113,7 @@ const indicators: VTable.TYPES.IIndicator[] = [
{
indicatorKey: '230417171050025',
title: '销售额 & 利润',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -181,7 +181,7 @@ const indicators: VTable.TYPES.IIndicator[] = [
indicatorKey: '230707112948009',
title: '折扣',
width: 'auto',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
// type: 'common',
Expand Down Expand Up @@ -9677,7 +9677,7 @@ describe('pivotTable init test', () => {
indicatorKey: '230417171050011',
title: '数量',
width: 'auto',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
// type: 'common',
Expand Down Expand Up @@ -9712,7 +9712,7 @@ describe('pivotTable init test', () => {
{
indicatorKey: '230417171050025',
title: '销售额 & 利润',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -9780,7 +9780,7 @@ describe('pivotTable init test', () => {
indicatorKey: '230707112948009',
title: '折扣',
width: 'auto',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
// type: 'common',
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable/examples/business/one.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function createTable() {
menuKey: 'visual_style'
}
],
columnType: 'link',
cellType: 'link',
linkDetect: true,
linkJump: false
},
Expand Down
4 changes: 2 additions & 2 deletions packages/vtable/examples/business/two.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function createTable() {
menuKey: 'visual_style'
}
],
columnType: 'link',
cellType: 'link',
linkDetect: true,
linkJump: false
},
Expand Down Expand Up @@ -221,7 +221,7 @@ export function createTable() {
menuKey: 'visual_style'
}
],
columnType: 'link',
cellType: 'link',
linkDetect: true,
linkJump: false
},
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable/examples/cell-move/column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function createTable() {
{
field: 'p',
// fieldKey: 'progress',
columnType: 'text',
cellType: 'text',
fieldFormat(rec) {
return `i已完成${rec.progress}%`;
},
Expand Down
4 changes: 2 additions & 2 deletions packages/vtable/examples/cell-move/pivot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export function createTable() {
},
maxWidth: 200,
minWidth: 10,
columnType: 'progressbar'
cellType: 'progressbar'
},
{
showSort: false,
Expand All @@ -374,7 +374,7 @@ export function createTable() {
// if (rec.rowDimensions[0].value === '东北') return `${rec.dataValue}%`;
return rec.dataValue;
},
columnType: 'progressbar'
cellType: 'progressbar'
}
],
records: generatePivotDataSource(19, 18),
Expand Down
4 changes: 2 additions & 2 deletions packages/vtable/examples/frozen/pivot-table-both-frozen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export function createTable() {
},
barColor: 'transparent'
},
columnType: 'progressbar',
cellType: 'progressbar',
showSort: true
// headerType: 'MULTILINETEXT',
},
Expand All @@ -239,7 +239,7 @@ export function createTable() {
// if (rec.rowDimensions[0].value === '东北') return `${rec.dataValue}%`;
return rec.dataValue;
},
columnType: 'progressbar',
cellType: 'progressbar',
style: {
barHeight: '50%',
barBottom: 20,
Expand Down
4 changes: 2 additions & 2 deletions packages/vtable/examples/frozen/pivot-table-bottom-frozen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export function createTable() {
},
barColor: 'transparent'
},
columnType: 'progressbar',
cellType: 'progressbar',
showSort: true
// headerType: 'MULTILINETEXT',
},
Expand All @@ -239,7 +239,7 @@ export function createTable() {
// if (rec.rowDimensions[0].value === '东北') return `${rec.dataValue}%`;
return rec.dataValue;
},
columnType: 'progressbar',
cellType: 'progressbar',
style: {
barHeight: '50%',
barBottom: 20,
Expand Down
4 changes: 2 additions & 2 deletions packages/vtable/examples/frozen/pivot-table-right-frozen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export function createTable() {
},
barColor: 'transparent'
},
columnType: 'progressbar',
cellType: 'progressbar',
showSort: true
// headerType: 'MULTILINETEXT',
},
Expand All @@ -239,7 +239,7 @@ export function createTable() {
// if (rec.rowDimensions[0].value === '东北') return `${rec.dataValue}%`;
return rec.dataValue;
},
columnType: 'progressbar',
cellType: 'progressbar',
style: {
barHeight: '50%',
barBottom: 20,
Expand Down
18 changes: 9 additions & 9 deletions packages/vtable/examples/fs/update-option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function createTable() {
indicatorKey: '0',
width: 'auto',
title: 'title',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -487,7 +487,7 @@ export function createTable() {
indicatorKey: '1',
width: 'auto',
title: 'title',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'line',
Expand Down Expand Up @@ -1420,7 +1420,7 @@ export function createTable() {
indicatorKey: '0',
width: 'auto',
title: 'title',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -1855,7 +1855,7 @@ export function createTable() {
indicatorKey: '1',
width: 'auto',
title: 'title',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'line',
Expand Down Expand Up @@ -3487,7 +3487,7 @@ export function createTable() {
indicatorKey: '0',
width: 'auto',
title: 'title',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'bar',
Expand Down Expand Up @@ -3719,7 +3719,7 @@ export function createTable() {
indicatorKey: '1',
width: 'auto',
title: 'title',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'line',
Expand Down Expand Up @@ -3951,7 +3951,7 @@ export function createTable() {
indicatorKey: '2',
width: 'auto',
title: 'title',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'line',
Expand Down Expand Up @@ -4183,7 +4183,7 @@ export function createTable() {
indicatorKey: '3',
width: 'auto',
title: 'title',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'line',
Expand Down Expand Up @@ -4415,7 +4415,7 @@ export function createTable() {
indicatorKey: '4',
width: 'auto',
title: 'title',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'line',
Expand Down
16 changes: 8 additions & 8 deletions packages/vtable/examples/list/list-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function createTable() {
field: 'areaChart',
title: 'vchart area',
width: '320',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'area',
Expand Down Expand Up @@ -101,7 +101,7 @@ export function createTable() {
field: 'lineChart',
title: 'vchart line',
width: '320',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -175,7 +175,7 @@ export function createTable() {
field: 'barChart',
title: 'vchart line',
width: '320',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -224,7 +224,7 @@ export function createTable() {
field: 'scatterChart',
title: 'vchart line',
width: '320',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -260,7 +260,7 @@ export function createTable() {
field: 'areaChart',
title: 'vchart area',
width: '320',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -345,7 +345,7 @@ export function createTable() {
field: 'lineChart',
title: 'vchart line',
width: '320',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -419,7 +419,7 @@ export function createTable() {
field: 'barChart',
title: 'vchart line',
width: '320',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -468,7 +468,7 @@ export function createTable() {
field: 'scatterChart',
title: 'vchart line',
width: '320',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down
2 changes: 1 addition & 1 deletion packages/vtable/examples/pivot-chart/aeolus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function createTable() {
indicatorKey: '10002',
caption: '',
width: 'auto',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
style: {
padding: 1
Expand Down
6 changes: 3 additions & 3 deletions packages/vtable/examples/pivot-chart/horizontal-hideHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function createTable() {
indicatorKey: '230417171050011',
title: '数量',
width: 'auto',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
// type: 'common',
Expand Down Expand Up @@ -169,7 +169,7 @@ export function createTable() {
{
indicatorKey: '230417171050025',
title: '销售额 & 利润',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -242,7 +242,7 @@ export function createTable() {
indicatorKey: '230707112948009',
title: '折扣',
width: 'auto',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
// type: 'common',
Expand Down
6 changes: 3 additions & 3 deletions packages/vtable/examples/pivot-chart/horizontal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function createTable() {
indicatorKey: '230417171050011',
title: '数量',
width: 'auto',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
// type: 'common',
Expand Down Expand Up @@ -171,7 +171,7 @@ export function createTable() {
{
indicatorKey: '230417171050025',
title: '销售额 & 利润',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
type: 'common',
Expand Down Expand Up @@ -244,7 +244,7 @@ export function createTable() {
indicatorKey: '230707112948009',
title: '折扣',
width: 'auto',
columnType: 'chart',
cellType: 'chart',
chartModule: 'vchart',
chartSpec: {
// type: 'common',
Expand Down
Loading

0 comments on commit 63026ea

Please sign in to comment.