VisActor / VisActor/VTable

[Question] 在使用dynamic-render-editor的场景(使用datasource)下,changeCellValue不工作

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

Nobody has claimed this yet.

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

Description

如果当前单元格为dynamic-render-editor,内容为一个button,点击该button,会调用changeCellValue设置当前单元格内容,但是不工作,是啥原因?但是如果在按钮点击事件了对另外的单元格调用changeCellValue则生效。。(已经调用了completeEditCell来退出编辑模式)
结果实验,直接用records可以的,但是用datasource就不行。郁闷

debug看了一下,在datasource对象上的_recordCache在changeCellValue后会变化成最新值,但是马上会复原成原始的值,期间没有触发datasource的get方法调用,太奇怪了

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 dynamic-render-editor button scenario with a datasource, comparing it with records, and trace changeCellValue after completeEditCell. Inspect the datasource _recordCache before and after the update; done when the changed value remains applied for the current cell without reverting.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.