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

是否给Data Table某个字段值为空时增加一个默认占位符? #3095

Closed
Adangs opened this issue Jun 13, 2022 · 1 comment · Fixed by #3109
Closed

是否给Data Table某个字段值为空时增加一个默认占位符? #3095

Adangs opened this issue Jun 13, 2022 · 1 comment · Fixed by #3109
Assignees
Labels
feature request New feature or request priority: high

Comments

@Adangs
Copy link
Contributor

Adangs commented Jun 13, 2022

This function solves the problem (这个功能解决的问题)

实际业务场景中每一行中经常会有空值数据。
这个时候
要么渲染之前格式化一下数据,
要么需要单独写个render去判断一下,返回一个具体值或者占位字符,

这个时候是否可以给个data table增加一个全局的 placeholder,并且支持columns中单独配置
{
title: 'Title',
key: 'title',
placeholder: '空'
}

Expected API (期望的 API)

@github-actions github-actions bot added the feature request New feature or request label Jun 13, 2022
@07akioni
Copy link
Collaborator

这个感觉是个有点意思的功能,可以加上,我们可以想办法让用户接管 cell 的渲染函数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants