实现效果:
1.template部分
<a-table
:getContainer="() => $refs.templateform"
:columns="templatecolumns"
:data-source="templatedata"
:rowKey="(record) => record.id"
:loading="templateloading"
:pagination="pagination"
:customRow="clickRow"
:row-selection="{ selectedRowKeys: templateSelectedRowKeys, onChange: onSelectChange }"
>
//使用#绑定名称,#后就是名称
//text表示当前行的值,record表示当前行的数据
<template #status="{ text }">
<span>
{
{ text === 1 ? '可见' : text === 2 ? '不可见' : text =