-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feat/package-size
- Loading branch information
Showing
33 changed files
with
665 additions
and
151 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
common/changes/@visactor/vtable/2009-feature-add-api-columnresize-line_2024-07-02-08-32.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "feat: add showMoverLine and hideMoverLine api #2009\n\n", | ||
"type": "none", | ||
"packageName": "@visactor/vtable" | ||
} | ||
], | ||
"packageName": "@visactor/vtable", | ||
"email": "892739385@qq.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/@visactor/vtable/2017-bug-pivot-chart-selectState_2024-07-02-03-12.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "fix: pivot chart select state #2017\n\n", | ||
"type": "none", | ||
"packageName": "@visactor/vtable" | ||
} | ||
], | ||
"packageName": "@visactor/vtable", | ||
"email": "892739385@qq.com" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@visactor/vtable/fix-customMergeCell-text_2024-07-03-08-15.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@visactor/vtable", | ||
"comment": "fix: fix test judgement in customMergeCell #2031", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@visactor/vtable" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@visactor/vtable/fix-highlight-update_2024-07-03-08-08.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@visactor/vtable", | ||
"comment": "fix: fix selected highlight update when scrolling #2028", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@visactor/vtable" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@visactor/vtable/fix-select-rect-update_2024-07-02-09-46.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@visactor/vtable", | ||
"comment": "fix: fix select-rect update when scroll #2015", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@visactor/vtable" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
--- | ||
category: examples | ||
group: Basic Features | ||
title: Freeze Row | ||
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/frozen-row.gif | ||
link: '../guide/basic_function/frozen_column_row' | ||
option: ListTable#frozenRowCount | ||
--- | ||
|
||
# Freeze Row | ||
|
||
In order to keep these key information rows visible throughout the horizontal scroll, we need to "freeze" these rows. | ||
|
||
## Key Configurations | ||
|
||
- `frozenRowCount` The number of frozen rows (including header), default is the number of header rows | ||
|
||
## Code demo | ||
|
||
```javascript livedemo template=vtable | ||
|
||
let tableInstance; | ||
fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_Pivot_data.json') | ||
.then(res => res.json()) | ||
.then(data => { | ||
const option = { | ||
records: data, | ||
rows: [ | ||
{ | ||
dimensionKey: 'City', | ||
title: 'City', | ||
headerStyle: { | ||
textStick: true, | ||
color: (args) => { | ||
if (args.row < 4) { | ||
return 'red'; | ||
} | ||
return '#000'; | ||
}, | ||
bgColor: (args) => { | ||
if (args.row < 4) { | ||
return 'rgba(255, 0, 0, 0.1)'; | ||
} | ||
return '#fff'; | ||
} | ||
}, | ||
width: 'auto' | ||
} | ||
], | ||
columns: [ | ||
{ | ||
dimensionKey: 'Category', | ||
title: 'Category', | ||
headerStyle: { | ||
textStick: true | ||
}, | ||
width: 'auto' | ||
} | ||
], | ||
indicators: [ | ||
{ | ||
indicatorKey: 'Quantity', | ||
title: 'Quantity', | ||
width: 'auto', | ||
showSort: false, | ||
headerStyle: { | ||
fontWeight: 'normal' | ||
}, | ||
style: { | ||
padding: [16, 28, 16, 28], | ||
color(args) { | ||
if (args.dataValue >= 0) return 'black'; | ||
return 'red'; | ||
}, | ||
bgColor: (args) => { | ||
if (args.row < 4) { | ||
return 'rgba(255, 0, 0, 0.1)'; | ||
} | ||
return '#fff'; | ||
} | ||
} | ||
}, | ||
{ | ||
indicatorKey: 'Sales', | ||
title: 'Sales', | ||
width: 'auto', | ||
showSort: false, | ||
headerStyle: { | ||
fontWeight: 'normal' | ||
}, | ||
format: rec => { | ||
return '$' + Number(rec).toFixed(2); | ||
}, | ||
style: { | ||
padding: [16, 28, 16, 28], | ||
color(args) { | ||
if (args.dataValue >= 0) return 'black'; | ||
return 'red'; | ||
}, | ||
bgColor: (args) => { | ||
if (args.row < 4) { | ||
return 'rgba(255, 0, 0, 0.1)'; | ||
} | ||
return '#fff'; | ||
} | ||
} | ||
}, | ||
{ | ||
indicatorKey: 'Profit', | ||
title: 'Profit', | ||
width: 'auto', | ||
showSort: false, | ||
headerStyle: { | ||
fontWeight: 'normal' | ||
}, | ||
format: rec => { | ||
return '$' + Number(rec).toFixed(2); | ||
}, | ||
style: { | ||
padding: [16, 28, 16, 28], | ||
color(args) { | ||
if (args.dataValue >= 0) return 'black'; | ||
return 'red'; | ||
}, | ||
bgColor: (args) => { | ||
if (args.row < 4) { | ||
return 'rgba(255, 0, 0, 0.1)'; | ||
} | ||
return '#fff'; | ||
} | ||
} | ||
} | ||
], | ||
corner: { | ||
titleOnDimension: 'row', | ||
headerStyle: { | ||
textStick: true | ||
} | ||
}, | ||
dataConfig: { | ||
sortRules: [ | ||
{ | ||
sortField: 'Category', | ||
sortBy: ['Office Supplies', 'Technology', 'Furniture'] | ||
} | ||
] | ||
}, | ||
widthMode: 'standard', | ||
frozenRowCount: 4, | ||
}; | ||
tableInstance = new VTable.PivotTable(document.getElementById(CONTAINER_ID), option); | ||
window['tableInstance'] = tableInstance; | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.