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

🐛[BUG] ProDescriptions render 当valueType="date"时,实现了render后,无法显示时间格式 #8409

Open
wzbmail opened this issue May 14, 2024 · 0 comments

Comments

@wzbmail
Copy link

wzbmail commented May 14, 2024

🐛 bug 描述

ProDescriptions render 当valueType="date"时,实现了render后,无法显示时间格式

📷 复现步骤

{
      title: 'Notes',
      dataIndex: ['lastFollowupLog', 'created_at'],
      valueType: 'date',
      align: 'center',
      renderText: (text, record) => {
        return text && text * 1000 || text;
      },
      render: (dom, entity) => {
       //无法正确显示时间格式,显示出来的值为原始值,但是注释render后,显示又是正确的
        return [dom]
        return entity?.lastFollowupLog &&
          <Tooltip title={entity?.lastFollowupLog.content}>
            <Space>
              {dom}
              <FollowupLog user_id={entity.id} />
            </Space>
          </Tooltip> || '-';
      },
    },

🏞 期望结果

显示正确的时间格式

💻 复现代码

© 版本信息

  • ProComponents 版本: version: 2.7.0
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

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