refactor(components): 重命名 GhostButton 为 ActionButton 以更准确描述用途

This commit is contained in:
dap
2026-01-20 12:00:59 +08:00
parent c1b886e77f
commit f0253f6971
26 changed files with 100 additions and 100 deletions

View File

@@ -184,21 +184,21 @@ function handleDownloadExcel() {
</template>
<template #action="{ row }">
<Space>
<ghost-button @click.stop="handlePreview(row)">
<action-button @click.stop="handlePreview(row)">
{{ $t('pages.common.info') }}
</ghost-button>
</action-button>
<Popconfirm
placement="left"
title="确认删除?"
@confirm="() => handleDelete(row)"
>
<ghost-button
<action-button
danger
v-access:code="['monitor:logininfor:remove']"
@click.stop=""
>
{{ $t('pages.common.delete') }}
</ghost-button>
</action-button>
</Popconfirm>
</Space>
</template>

View File

@@ -92,7 +92,7 @@ async function handleForceOffline(row: OnlineUser) {
placement="left"
@confirm="handleForceOffline(row)"
>
<ghost-button danger>强制下线</ghost-button>
<action-button danger>强制下线</action-button>
</Popconfirm>
</template>
</BasicTable>

View File

@@ -171,12 +171,12 @@ function handleDownloadExcel() {
</Space>
</template>
<template #action="{ row }">
<ghost-button
<action-button
v-access:code="['monitor:operlog:list']"
@click.stop="handlePreview(row)"
>
{{ $t('pages.common.preview') }}
</ghost-button>
</action-button>
</template>
</BasicTable>
<OperationPreviewDrawer />