fix: inputTable组件中嵌套picker时数据域更新问题 #9094
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
描述问题:
inputTable组件中嵌套picker,picker 组件设置 "joinValues": false 时,用户选择picker组件内容后删除,然后选择新加行,原来删除的内容会重新回显
如何复现(请务必完整填写下面内容):
{ "type": "page", "body": { "type": "form", "debug": "true", "data": { "table": [ { "a": "a1", "b": "b1", } ] }, "api": "/api/mock2/form/saveForm", "body": [ { "type": "input-table", "name": "table", "addable": true, "columns": [ { "name": "a", "label": "A" }, { "name": "b", "label": "B" }, { "type": "picker", "name": "picker", "needConfirm": false, "joinValues": false, "options": [ { "label": "A", "value": "a" }, { "label": "B", "value": "b" }, { "label": "C", "value": "c" } ], }, ] } ] } }