就是title可以用函数返回

···

    const obj = {
      key: key,
      dataIndex: key,
      // title: data,
      title: (val) => {
        const style = {
          maxWidth: '200px',
          overflow: 'hidden',
          whiteSpace: 'nowrap',
          textOverflow: 'ellipsis',
          cursor: 'pointer'
        }
        return (
          <div style={style} title={data}>{data}</div>
        )
      },
      align: 'center'
    }

···

antd-vue 表头,超出显示省略号...

相关文章:

  • 2022-12-23
  • 2022-02-17
  • 2021-12-15
  • 2021-11-07
  • 2022-01-05
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-06
  • 2021-08-27
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案