-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1866 from VisActor/release/1.2.0
[Auto release] release 1.2.0
- Loading branch information
Showing
72 changed files
with
2,389 additions
and
1,258 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.1.2","mainProject":"@visactor/vtable","nextBump":"patch"}] | ||
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"1.2.0","mainProject":"@visactor/vtable","nextBump":"minor"}] |
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,102 @@ | ||
--- | ||
category: examples | ||
group: Animation | ||
title: 入场动画 | ||
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/appear-animation.gif | ||
option: ListTable-columns-text#mergeCell | ||
--- | ||
|
||
# Entry animation | ||
|
||
Automatically merge cells with the same content through configuration | ||
|
||
## Key configuration | ||
|
||
- `animationAppear` Entry animation configuration | ||
- `type` Entry animation type, currently supports `all` and `one-by-one` | ||
- `direction` Entry animation direction, currently supports `row` and `column` | ||
- `duration` The duration of a single animation, in milliseconds, `one-by-one`, the duration of one animation | ||
- `delay` Animation delay, in milliseconds; `one-by-one` is the time difference between two animations, `all` is the delay of all animations | ||
|
||
## Code demonstration | ||
|
||
```javascript livedemo template=vtable | ||
|
||
let tableInstance; | ||
fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data100.json') | ||
.then((res) => res.json()) | ||
.then((data) => { | ||
|
||
const columns =[ | ||
{ | ||
"field": "Category", | ||
"title": "Category", | ||
"width": "auto", | ||
}, | ||
{ | ||
"field": "Sub-Category", | ||
"title": "Sub-Category", | ||
"width": "auto", | ||
}, | ||
{ | ||
"field": "Order ID", | ||
"title": "Order ID", | ||
"width": "auto" | ||
}, | ||
{ | ||
"field": "Customer ID", | ||
"title": "Customer ID", | ||
"width": "auto" | ||
}, | ||
{ | ||
"field": "Product Name", | ||
"title": "Product Name", | ||
"width": "auto", | ||
}, | ||
{ | ||
"field": "Region", | ||
"title": "Region", | ||
"width": "auto" | ||
}, | ||
{ | ||
"field": "City", | ||
"title": "City", | ||
"width": "auto" | ||
}, | ||
{ | ||
"field": "Order Date", | ||
"title": "Order Date", | ||
"width": "auto" | ||
}, | ||
{ | ||
"field": "Quantity", | ||
"title": "Quantity", | ||
"width": "auto" | ||
}, | ||
{ | ||
"field": "Sales", | ||
"title": "Sales", | ||
"width": "auto" | ||
}, | ||
{ | ||
"field": "Profit", | ||
"title": "Profit", | ||
"width": "auto" | ||
} | ||
]; | ||
|
||
const option = { | ||
records:data.slice(0,20), | ||
columns, | ||
widthMode:'standard', | ||
animationAppear: { | ||
duration: 300, | ||
delay: 100, | ||
type: 'one-by-one', // all | ||
direction: 'row' // colunm | ||
} | ||
}; | ||
tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID),option); | ||
window['tableInstance'] = tableInstance; | ||
}) | ||
``` |
Oops, something went wrong.