mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-12 15:53:14 +08:00
refactor(components): 重命名 GhostButton 为 ActionButton 以更准确描述用途
This commit is contained in:
@@ -217,37 +217,37 @@ async function handleChangeStatus(checked: boolean, row: Tenant) {
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<Space v-if="row.id !== 1">
|
||||
<ghost-button
|
||||
<action-button
|
||||
v-access:code="['system:tenant:edit']"
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
{{ $t('pages.common.edit') }}
|
||||
</ghost-button>
|
||||
</action-button>
|
||||
<Popconfirm
|
||||
:title="`确认同步[${row.companyName}]的套餐吗?`"
|
||||
placement="left"
|
||||
@confirm="handleSync(row)"
|
||||
>
|
||||
<ghost-button
|
||||
<action-button
|
||||
variant="link"
|
||||
color="green"
|
||||
v-access:code="['system:tenant:edit']"
|
||||
>
|
||||
{{ $t('pages.common.sync') }}
|
||||
</ghost-button>
|
||||
</action-button>
|
||||
</Popconfirm>
|
||||
<Popconfirm
|
||||
placement="left"
|
||||
title="确认删除?"
|
||||
@confirm="handleDelete(row)"
|
||||
>
|
||||
<ghost-button
|
||||
<action-button
|
||||
danger
|
||||
v-access:code="['system:tenant:remove']"
|
||||
@click.stop=""
|
||||
>
|
||||
{{ $t('pages.common.delete') }}
|
||||
</ghost-button>
|
||||
</action-button>
|
||||
</Popconfirm>
|
||||
</Space>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user