-
Notifications
You must be signed in to change notification settings - Fork 160
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 #899 from VisActor/release/0.17.9
[Auto release] release 0.17.9
- Loading branch information
Showing
59 changed files
with
3,363 additions
and
2,654 deletions.
There are no files selected for viewing
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":"0.17.8","mainProject":"@visactor/vtable","nextBump":"patch"}] | ||
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"0.17.9","mainProject":"@visactor/vtable","nextBump":"patch"}] |
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
103 changes: 103 additions & 0 deletions
103
docs/assets/demo/en/interaction/copy-paste-cell-value.md
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,103 @@ | ||
--- | ||
category: examples | ||
group: Interaction | ||
title: Copy and paste cell value | ||
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/copy-paste-cell-value.gif | ||
link: '../guide/interaction/keyboard' | ||
option: ListTable#keyboardOptions.pasteValueToCell | ||
--- | ||
|
||
# Copy and paste cell value | ||
|
||
Use shortcut keys to copy the contents of the selected cell and paste the contents of the clipboard into the cell. | ||
|
||
Of course, in addition to the arrow keys, there are other shortcut keys, please refer to [Tutorial](../../guide/interaction/keyboard). | ||
|
||
## Key Configurations | ||
|
||
- keyboardOptions.pasteValueToCell | ||
- keyboardOptions.copySelected | ||
|
||
## Code demo | ||
|
||
```javascript livedemo template=vtable | ||
|
||
let tableInstance; | ||
fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data.json') | ||
.then((res) => res.json()) | ||
.then((data) => { | ||
|
||
const columns =[ | ||
{ | ||
"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": "Category", | ||
"title": "Category", | ||
"width": "auto" | ||
}, | ||
{ | ||
"field": "Sub-Category", | ||
"title": "Sub-Category", | ||
"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, | ||
columns, | ||
widthMode:'standard', | ||
frozenColCount:1, | ||
overscrollBehavior:'none', | ||
keyboardOptions:{ | ||
moveEditCellOnArrowKeys:true, | ||
copySelected: true, | ||
pasteValueToCell: true | ||
} | ||
}; | ||
tableInstance = new VTable.ListTable(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
103 changes: 103 additions & 0 deletions
103
docs/assets/demo/zh/interaction/copy-paste-cell-value.md
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,103 @@ | ||
--- | ||
category: examples | ||
group: Interaction | ||
title: 复制粘贴 | ||
cover: https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/preview/copy-paste-cell-value.gif | ||
link: '../guide/interaction/keyboard' | ||
option: ListTable#keyboardOptions.pasteValueToCell | ||
--- | ||
|
||
# 复制粘贴单元格内容 | ||
|
||
使用快捷键复制选中单元格内容,粘贴剪切板中内容到单元格。 | ||
|
||
当然,除了方向键还有其他快捷键可以参考[教程](../../guide/interaction/keyboard)。 | ||
|
||
## 关键配置 | ||
|
||
- keyboardOptions.pasteValueToCell | ||
- keyboardOptions.copySelected | ||
|
||
## 代码演示 | ||
|
||
```javascript livedemo template=vtable | ||
|
||
let tableInstance; | ||
fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/North_American_Superstore_data.json') | ||
.then((res) => res.json()) | ||
.then((data) => { | ||
|
||
const columns =[ | ||
{ | ||
"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": "Category", | ||
"title": "Category", | ||
"width": "auto" | ||
}, | ||
{ | ||
"field": "Sub-Category", | ||
"title": "Sub-Category", | ||
"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, | ||
columns, | ||
widthMode:'standard', | ||
frozenColCount:1, | ||
overscrollBehavior:'none', | ||
keyboardOptions:{ | ||
moveEditCellOnArrowKeys:true, | ||
copySelected: true, | ||
pasteValueToCell: true | ||
} | ||
}; | ||
tableInstance = new VTable.ListTable(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
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.