Skip to content

Commit

Permalink
Merge pull request #263 from VisActor/fix/axis-releate
Browse files Browse the repository at this point in the history
Fix/axis releate
  • Loading branch information
Rui-Sun committed Aug 31, 2023
2 parents 7688ba2 + e9f66e7 commit 6096938
Show file tree
Hide file tree
Showing 208 changed files with 13,503 additions and 2,877 deletions.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/others.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Others
about: Describe this issue's purpose here.
title: ''
labels: ''
assignees: ''
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "refactor: wrap text should suit English word #183\n\n",
"type": "patch",
"packageName": "@visactor/vtable"
}
],
"packageName": "@visactor/vtable",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "feat: add api for updateAutoWrapText widthMode heightMode #240\n\n",
"type": "patch",
"packageName": "@visactor/vtable"
}
],
"packageName": "@visactor/vtable",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "refactor: optimize performance when window resize Compute RowHeight ColWidth #249\n\n",
"type": "patch",
"packageName": "@visactor/vtable"
}
],
"packageName": "@visactor/vtable",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "feat: add analysis for pivot table\n\n",
"type": "patch",
"packageName": "@visactor/vtable"
}
],
"packageName": "@visactor/vtable",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: pivotTable horizontal scroll bar is abnormal when the display area is small #269\n\n",
"type": "patch",
"packageName": "@visactor/vtable"
}
],
"packageName": "@visactor/vtable",
"email": "[email protected]"
}
63 changes: 50 additions & 13 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions packages/vtable/__tests__/pivotChart.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const columnTree = [
const columns: (VTable.IDimension | string)[] = [
{
dimensionKey: '230417171050031',
dimensionTitle: '国家',
title: '国家',
headerStyle: {
color: 'red'
}
Expand All @@ -57,7 +57,7 @@ const columns: (VTable.IDimension | string)[] = [
const rows = [
{
dimensionKey: '230417170554012',
dimensionTitle: '邮寄方式',
title: '邮寄方式',
headerStyle: {
color: 'red'
}
Expand All @@ -66,7 +66,7 @@ const rows = [
const indicators: VTable.TYPES.IIndicator[] = [
{
indicatorKey: '230417171050011',
caption: '数量',
title: '数量',
width: 'auto',
columnType: 'chart',
chartModule: 'vchart',
Expand Down Expand Up @@ -112,7 +112,7 @@ const indicators: VTable.TYPES.IIndicator[] = [
},
{
indicatorKey: '230417171050025',
caption: '销售额 & 利润',
title: '销售额 & 利润',
columnType: 'chart',
chartModule: 'vchart',
chartSpec: {
Expand Down Expand Up @@ -179,7 +179,7 @@ const indicators: VTable.TYPES.IIndicator[] = [
},
{
indicatorKey: '230707112948009',
caption: '折扣',
title: '折扣',
width: 'auto',
columnType: 'chart',
chartModule: 'vchart',
Expand Down Expand Up @@ -9675,7 +9675,7 @@ describe('pivotTable init test', () => {
const indicators1: VTable.TYPES.IIndicator[] = [
{
indicatorKey: '230417171050011',
caption: '数量',
title: '数量',
width: 'auto',
columnType: 'chart',
chartModule: 'vchart',
Expand Down Expand Up @@ -9711,7 +9711,7 @@ describe('pivotTable init test', () => {
},
{
indicatorKey: '230417171050025',
caption: '销售额 & 利润',
title: '销售额 & 利润',
columnType: 'chart',
chartModule: 'vchart',
chartSpec: {
Expand Down Expand Up @@ -9778,7 +9778,7 @@ describe('pivotTable init test', () => {
},
{
indicatorKey: '230707112948009',
caption: '折扣',
title: '折扣',
width: 'auto',
columnType: 'chart',
chartModule: 'vchart',
Expand Down
10 changes: 5 additions & 5 deletions packages/vtable/__tests__/pivotTable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ describe('pivotTable init test', () => {
const rows = [
{
dimensionKey: '地区',
dimensionTitle: '地区',
title: '地区',
headerStyle: {
textStick: true,
color: 'red',
Expand All @@ -396,7 +396,7 @@ describe('pivotTable init test', () => {
},
{
dimensionKey: '省/自治区',
dimensionTitle: '省/自治区',
title: '省/自治区',
width: 'auto',
showSort: false,
headerStyle: {
Expand All @@ -416,7 +416,7 @@ describe('pivotTable init test', () => {
const columns = [
{
dimensionKey: '子类别',
dimensionTitle: '子类别',
title: '子类别',
headerStyle: {
textStick: true
},
Expand All @@ -426,7 +426,7 @@ describe('pivotTable init test', () => {
const indicators = [
{
indicatorKey: '利润',
caption: '利润',
title: '利润',
width: 'auto',
style: {
borderColor: 'red',
Expand All @@ -440,7 +440,7 @@ describe('pivotTable init test', () => {
},
{
indicatorKey: '销售额',
caption: '销售额',
title: '销售额',
width: 'auto'
}
];
Expand Down
4 changes: 1 addition & 3 deletions packages/vtable/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ npm i --global @microsoft/rush

3. 启动demo

在根目录下运行:
`rush run -p @visactor/VTable -s demo`
or 进入到项目中
进入到项目中
```shell
cd packages/vtable/
rushx demo
Expand Down
12 changes: 6 additions & 6 deletions packages/vtable/examples/auto-size/adaptive-width.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export function createTable() {
fontSize: 12,
fontFamily: 'sans-serif'
},
caption: 'progress',
title: 'progress',
description: '这是一个标题的详细描述',
width: 'calc(20% - 20px)'
// width: 'auto'
},
{
caption: 'Name',
title: 'Name',
headerStyle: {
textAlign: 'center',
fontWeight: 'bold',
Expand All @@ -35,7 +35,7 @@ export function createTable() {
columns: [
{
field: 'fname',
caption: 'First Name',
title: 'First Name',
width: '20%',
minWidth: 150,
headerStyle: {
Expand All @@ -44,15 +44,15 @@ export function createTable() {
},
{
field: 'lname',
caption: 'Last Name',
title: 'Last Name',
width: '20%',
minWidth: 150
}
]
},
{
field: 'email',
caption: 'email',
title: 'email',
width: 200,
headerStyle: {
autoWrapText: true,
Expand Down Expand Up @@ -108,7 +108,7 @@ export function createTable() {
rec.birthday = isNaN(parseInt(date.toString(), 10)) ? val : date;
}
},
caption: 'Birthday',
title: 'Birthday',
width: 150
}
],
Expand Down
Loading

0 comments on commit 6096938

Please sign in to comment.