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

cellRenderer 函数返回jsx动态高度计算失效 #12153

Closed
a2239135244 opened this issue Mar 22, 2023 Discussed in #12152 · 2 comments
Closed

cellRenderer 函数返回jsx动态高度计算失效 #12153

a2239135244 opened this issue Mar 22, 2023 Discussed in #12152 · 2 comments
Labels

Comments

@a2239135244
Copy link

Discussed in #12152

Originally posted by a2239135244 March 22, 2023
cellRenderer 函数中进行循环返回多个jsx之后,官网提供的 estimated-row-height 配置项失效,动态高度计算失效导致内容挤压,无法全部展示渲染内容

`cellRenderer: (obj) => {
const { rowData, column, cellData, columnIndex } = obj

  const contentRender = (item, rowData, column) => {
      return (<span className="adopted_btn" > 这里是一些字符串 </span>)
  }

  return (
    <div class="table-v2-inline-editing-trigger">
      {cellArr.map(item => (
        <div  @className="content_item">
          <ElTooltip content={item}>
            {contentRender(item, rowData, column)}
          </ElTooltip>
        </div>
      ))}
    </div>
  )
},`
@github-actions
Copy link

Hello @a2239135244, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

你好 @a2239135244,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2023
@github-actions
Copy link

github-actions bot commented May 9, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant