VisActor / VisActor/VTable

[Bug] vue语法糖写法 copySelected 无效

Open
#4,219 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

Version

@visactor/vue-vtable": "^1.19.3"

Link to Minimal Reproduction

const tableOptions = ref

Steps to Reproduce

const tableOptions = ref({
header: [
{
field: "0",
caption: "名称"
},
{
field: "1",
caption: "年龄"
},
{
field: "2",
caption: "性别"
},
{
field: "3",
caption: "爱好"
}
],
records: new Array(1000).fill(["张三", 18, "男", "🏀"]),
widthMode: "standard",
frozenColCount: 1,
overscrollBehavior: "none",
keyboardOptions: {
moveEditCellOnArrowKeys: true,
copySelected: true,
pasteValueToCell: true
},
editor: "" // 配置一个空的编辑器,以遍能粘贴到单元格中
});

Current Behavior

当我使用vue3时 定义options后 keyboardOptions.copySelected 无效

Expected Behavior

希望给出正确的写法及原因

Environment
- OS:
- Browser:
- Framework:
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Vue 3 example using the provided tableOptions and keyboardOptions configuration. Trace how the Vue wrapper receives keyboardOptions and determine whether copySelected works; document the correct usage and its cause, then verify copying and pasting in the reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.