<template #default="scope"
<el-popconfirm
:confirm-button-text="$t('popConfirm.confirm')"
:cancel-button-text="$t('popConfirm.cancel')"
@confirm="handleState(scope.row, scope.$index, Number(!scope.row.show_user))"
:title="$t('popConfirm.title')">
<template #reference>
<el-tag size="mini" :type="showUserMap[scope.row.show_user].type" >
{{ showUserMap[scope.row.show_user].text }}
</el-tag>
</template>
</el-popconfirm>
</template>
你要确定一下scope只是上一页的数据,还是反倒2,3页还是第一页的数据
<template #default="scope"
<el-popconfirm
:confirm-button-text="$t('popConfirm.confirm')"
:cancel-button-text="$t('popConfirm.cancel')"
@confirm="handleState(scope.row, scope.$index, Number(!scope.row.show_user))"
:title="$t('popConfirm.title')">
<template #reference>
<el-tag size="mini" :type="showUserMap[scope.row.show_user].type" >
{{ showUserMap[scope.row.show_user].text }}
</el-tag>
</template>
</el-popconfirm>
</template>