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组件上写了属性containerClassName="flex flex-col gap-y-4",用于将每个list项之间隔开4个单位的距离,在表单可编辑的模式下,是正常隔开的。在表单readonly模式下,项之间的距离丢失了,检查发现是containerClassName丢了。
containerClassName="flex flex-col gap-y-4"
提供readonly前后的两张结构截图:
看了下代码:https://github1s.com/ant-design/pro-components/blob/master/packages/form/src/components/List/ListContainer.tsx#L170
请问:
The text was updated successfully, but these errors were encountered:
丢弃containerClassName的设计目的是什么
估计纯粹是不想多套一个 div
我想在readonly模式下,也将项目之间隔开4个距离,有什么其他办法吗?
可以提一个 PR 改一下试试,等蚂蚁的人给你 review
Sorry, something went wrong.
No branches or pull requests
🧐 在readonly模式下,ProFormList的containerClassName丢失了
我在ProFormList组件上写了属性
containerClassName="flex flex-col gap-y-4"
,用于将每个list项之间隔开4个单位的距离,在表单可编辑的模式下,是正常隔开的。在表单readonly模式下,项之间的距离丢失了,检查发现是containerClassName丢了。提供readonly前后的两张结构截图:
看了下代码:https://github1s.com/ant-design/pro-components/blob/master/packages/form/src/components/List/ListContainer.tsx#L170
请问:
The text was updated successfully, but these errors were encountered: