Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

只读模式下可以粘贴 #1063

Closed
513655915 opened this issue Feb 3, 2024 · 3 comments · Fixed by #1217
Closed

只读模式下可以粘贴 #1063

513655915 opened this issue Feb 3, 2024 · 3 comments · Fixed by #1217
Assignees
Labels
bug Something isn't working

Comments

@513655915
Copy link

Version

19.0

Link to Minimal Reproduction

none

Steps to Reproduce

只读模式下可以粘贴

Current Behavior

只读模式下可以粘贴

Expected Behavior

只读模式下不能粘贴,否则就是可以编辑了

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

no

@513655915 513655915 added the bug Something isn't working label Feb 3, 2024
@fangsmile
Copy link
Contributor

具体场景是什么 可以描述清楚一些吧
pasteValueToCell 不能满足你的场景吗?

@fangsmile fangsmile self-assigned this Feb 4, 2024
@513655915
Copy link
Author

如:第N列为不可编辑列,在开启pasteValueToCell功能后,可以通过复制粘贴的方式修改第N列的值,由于第N列是不可编辑列,复制粘贴不应该可以修改第N列的值。

@fangsmile
Copy link
Contributor

pasteValueToCell如果可以被定义成自定义函数呢?
如:

pasteValueToCell: boolean | (col, row, tableInstance)=>boolean

另外粘贴内容和粘贴区域需要严格对应:
如粘贴从第一列到第五列 但是第四列pasteValueToCell函数返回的false,剪贴板的内容也必须是五列全的内容,也就是剪贴板第四列的内容是无效的
@513655915

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants