mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-23 05:14:32 +08:00
refactor(components): 重命名 GhostButton 为 ActionButton 以更准确描述用途
This commit is contained in:
@@ -120,32 +120,32 @@ function collapseAll() {
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<Space>
|
||||
<ghost-button
|
||||
<action-button
|
||||
v-access:code="['workflow:category:edit']"
|
||||
@click.stop="handleEdit(row)"
|
||||
>
|
||||
{{ $t('pages.common.edit') }}
|
||||
</ghost-button>
|
||||
<ghost-button
|
||||
</action-button>
|
||||
<action-button
|
||||
variant="link"
|
||||
color="green"
|
||||
v-access:code="['workflow:category:edit']"
|
||||
@click.stop="handleAdd(row)"
|
||||
>
|
||||
{{ $t('pages.common.add') }}
|
||||
</ghost-button>
|
||||
</action-button>
|
||||
<Popconfirm
|
||||
placement="left"
|
||||
title="确认删除?"
|
||||
@confirm="handleDelete(row)"
|
||||
>
|
||||
<ghost-button
|
||||
<action-button
|
||||
danger
|
||||
v-access:code="['workflow:category:remove']"
|
||||
@click.stop=""
|
||||
>
|
||||
{{ $t('pages.common.delete') }}
|
||||
</ghost-button>
|
||||
</action-button>
|
||||
</Popconfirm>
|
||||
</Space>
|
||||
</template>
|
||||
|
||||
@@ -117,24 +117,24 @@ function handleMultiDelete() {
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<Space>
|
||||
<ghost-button
|
||||
<action-button
|
||||
v-access:code="['system:config:edit']"
|
||||
@click.stop="handleEdit(row)"
|
||||
>
|
||||
{{ $t('pages.common.edit') }}
|
||||
</ghost-button>
|
||||
</action-button>
|
||||
<Popconfirm
|
||||
placement="left"
|
||||
title="确认删除?"
|
||||
@confirm="handleDelete(row)"
|
||||
>
|
||||
<ghost-button
|
||||
<action-button
|
||||
danger
|
||||
v-access:code="['system:config:remove']"
|
||||
@click.stop=""
|
||||
>
|
||||
{{ $t('pages.common.delete') }}
|
||||
</ghost-button>
|
||||
</action-button>
|
||||
</Popconfirm>
|
||||
</Space>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user