Skip to content

Commit

Permalink
fix: 🐛 修复 Transfer 组件 optionApi 不生效
Browse files Browse the repository at this point in the history
Transfer 组件绑定选项值也是 data, 但是Form 组件里只针对 TreeSelect 做了处理, 除了TreeSelect 都赋值给了options, 所以加上 Transfer 的判断
  • Loading branch information
ShanYi-Hui committed May 23, 2024
1 parent eadadd2 commit 36fcea0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Form/src/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ export default defineComponent({
{
field: item.field,
path:
item.component === ComponentNameEnum.TREE_SELECT
item.component === ComponentNameEnum.TREE_SELECT ||
item.component === ComponentNameEnum.TRANSFER
? 'componentProps.data'
: 'componentProps.options',
value: options
Expand Down

0 comments on commit 36fcea0

Please sign in to comment.