关于iview组件中 table的columns

iview实现table中的数据超出出现…然后鼠标上移内容展现

{
    
    
      title: '审核备注',
      key: 'auditRemark',
      minWidth: 200,
      render: (h, params) => {
    
    
        return h(
          'Tooltip',
          {
    
    
            props: {
    
    
              content: params.row.auditRemark,
              placement: 'top',
              popperClass: 'tooltip-text',
              maxWidth: 400,
              transfer: true
            },
            style: {
    
    }
          },
          [
            h(
              'div',
              {
    
    
                style: {
    
    
                  display: 'inline-block',
                  width: params.column._width * 0.8 + 'px',
                  overflow: 'hidden',
                  textOverflow: 'ellipsis',
                  whiteSpace: 'nowrap'
                }
              },
              params.row.auditRemark
            )
          ]
        );
      }
    }

猜你喜欢

转载自blog.csdn.net/weixin_43732777/article/details/141647401
今日推荐