chore: replace to ghost-button

This commit is contained in:
dap
2024-10-07 16:56:32 +08:00
parent 3edad0459d
commit 0f31c8df57
22 changed files with 326 additions and 323 deletions

View File

@@ -5,6 +5,7 @@ import { ref } from 'vue';
import { useRoute } from 'vue-router';
import { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui';
import { getPopupContainer } from '@vben/utils';
import { Modal, Popconfirm, Space } from 'ant-design-vue';
@@ -142,19 +143,18 @@ function handleMultipleAuthCancel() {
</template>
<template #action="{ row }">
<Popconfirm
:get-popup-container="getPopupContainer"
:title="`是否取消授权用户[${row.userName} - ${row.nickName}]?`"
placement="left"
@confirm="handleAuthCancel(row)"
>
<a-button
<ghost-button
danger
size="small"
type="link"
v-access:code="['system:role:remove']"
@click.stop=""
>
取消授权
</a-button>
</ghost-button>
</Popconfirm>
</template>
</BasicTable>