閑話不說 直接上代碼
<a-table :columns="headerData" :dataSource="tableData" :pagination="pagination" :rowKey="res => res.order_num" :scroll="{ x: 1200,y:500 }" class="mb20">
<span slot="customTitle">
打款回單
<a-tooltip placement="top">
<template slot="title">
<span> tooltip顯示的文字 </span>
</template>
<a-icon type="question-circle" />
</a-tooltip>
</span>
</a-table>
{
id: "9",
slots: { title: 'customTitle' },
width: 100,
ataIndex: 'receipt_file',
}
最主要的一點(diǎn)是確保title的值和表頭里面 slot 所對應(yīng)的值是一致的 ,如本文提到的 customTitle
原文:https://blog.csdn.net/ks8380/article/details/119901043
本文鏈接:http://fangxuan.com.cn/article/173.html