mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-25 08:44:32 +08:00
refactor(components): 重命名 GhostButton 为 ActionButton 以更准确描述用途
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user