AntDesign Vue table设置最小宽度(单元格属性or头部)

  • Post author:
  • Post category:vue


{
      title: '任务名称',
      dataIndex: 'title',
      ellipsis: true,
      align: 'center'
    customCell: column => {
      return {
        style: {
          'min-width': "100px",
          "white-space": "nowrap",
          overflow: "hidden",
          display: "inline-block",
          "text-overflow": "ellipsis"
        }
      };
    }
    },

  {
    title: "考勤机名称",
    dataIndex: "modeName",
    align: "left",
    customHeaderCell: column => {
      return {
        style: {
           'min-width': "100px",
          "white-space": "nowrap",
          overflow: "hidden",
          display: "inline-block",
          "text-overflow": "ellipsis"
        }
      };
    }
  },



版权声明:本文为weixin_48280939原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。