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

👑 [需求]希望ProFormList支持convertValue #8702

Open
Clarkkkk opened this issue Sep 4, 2024 · 0 comments
Open

👑 [需求]希望ProFormList支持convertValue #8702

Clarkkkk opened this issue Sep 4, 2024 · 0 comments

Comments

@Clarkkkk
Copy link

Clarkkkk commented Sep 4, 2024

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🔩 所属模块或组件

ProFormList

🥰 需求描述

目前ProFormList已经支持transform,希望可以支持convertValue,在回填之前转换数据。

⛰ 功能需求适用场景

ProFormList的值默认是数组,如[ { key: 'text1', value: 'hello' }, { key: 'text2', value: 'hi' } ],如果后端需要对象类型,如{ text1: 'hello', text2: 'hi' },则需要先转换。目前已经可以在提交前使用transform转换数据,但回填数据还不支持转换。

🧐 解决方案

🚑 其他信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant