We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
目前ProFormList已经支持transform,希望可以支持convertValue,在回填之前转换数据。
transform
ProFormList的值默认是数组,如[ { key: 'text1', value: 'hello' }, { key: 'text2', value: 'hi' } ],如果后端需要对象类型,如{ text1: 'hello', text2: 'hi' },则需要先转换。目前已经可以在提交前使用transform转换数据,但回填数据还不支持转换。
[ { key: 'text1', value: 'hello' }, { key: 'text2', value: 'hi' } ]
{ text1: 'hello', text2: 'hi' }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
提问前先看看:
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
转换数据,但回填数据还不支持转换。🧐 解决方案
🚑 其他信息
The text was updated successfully, but these errors were encountered: