Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

🐛[BUG] ProFormDateRangePicker 中的 placeholder 不生效,位置错乱 #741

Open
coloryjl opened this issue Apr 22, 2021 · 0 comments

Comments

@coloryjl
Copy link

🐛 bug 描述 [详细地描述 bug,让大家都能理解]

{ title: <FormattedMessage id="pages.createdAt" defaultMessage="创建时间" />, dataIndex: 'createdAt', renderFormItem: (_, { type}) => { if (type === 'form') { return null; } return <ProFormDateRangePicker transform={(values) => { return { timeStart: values ? values[0] : undefined, timeAtEnd: values ? values[1] : undefined, }; }} label={null} placeholder={intl.formatMessage({ id: 'pages.placeholder', defaultMessage: '请选择', })} /> } },

📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]

🏞 期望结果 [描述你原本期望看到的结果]

💻 复现代码 [提供可复现的代码,仓库,或线上示例]

© 版本信息

  • Ant Design Pro 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]
    image

🚑 其他信息 [如截图等其他信息可以贴在这里]

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

No branches or pull requests

1 participant