chore: replace to ghost-button
This commit is contained in:
@@ -101,7 +101,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
fixed: 'right',
|
||||
slots: { default: 'action' },
|
||||
title: '操作',
|
||||
width: 120,
|
||||
width: 150,
|
||||
},
|
||||
];
|
||||
|
||||
|
@@ -4,6 +4,7 @@ import type { Recordable } from '@vben/types';
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
|
||||
import { getPopupContainer } from '@vben/utils';
|
||||
|
||||
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
||||
|
||||
@@ -169,24 +170,25 @@ async function handleUnlock() {
|
||||
</Space>
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<a-button size="small" type="link" @click.stop="handlePreview(row)">
|
||||
{{ $t('pages.common.info') }}
|
||||
</a-button>
|
||||
<Popconfirm
|
||||
placement="left"
|
||||
title="确认删除?"
|
||||
@confirm="() => handleDelete(row)"
|
||||
>
|
||||
<a-button
|
||||
danger
|
||||
size="small"
|
||||
type="link"
|
||||
v-access:code="['monitor:logininfor:remove']"
|
||||
@click.stop=""
|
||||
<Space>
|
||||
<ghost-button @click.stop="handlePreview(row)">
|
||||
{{ $t('pages.common.info') }}
|
||||
</ghost-button>
|
||||
<Popconfirm
|
||||
:get-popup-container="getPopupContainer"
|
||||
placement="left"
|
||||
title="确认删除?"
|
||||
@confirm="() => handleDelete(row)"
|
||||
>
|
||||
删除
|
||||
</a-button>
|
||||
</Popconfirm>
|
||||
<ghost-button
|
||||
danger
|
||||
v-access:code="['monitor:logininfor:remove']"
|
||||
@click.stop=""
|
||||
>
|
||||
删除
|
||||
</ghost-button>
|
||||
</Popconfirm>
|
||||
</Space>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<LoginInfoModal />
|
||||
|
@@ -2,6 +2,7 @@
|
||||
import type { Recordable } from '@vben/types';
|
||||
|
||||
import { Page, type VbenFormProps } from '@vben/common-ui';
|
||||
import { getPopupContainer } from '@vben/utils';
|
||||
|
||||
import { Popconfirm } from 'ant-design-vue';
|
||||
|
||||
@@ -59,11 +60,12 @@ async function handleForceOffline(row: Recordable<any>) {
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<Popconfirm
|
||||
:get-popup-container="getPopupContainer"
|
||||
:title="`确认强制下线[${row.userName}]?`"
|
||||
placement="left"
|
||||
@confirm="handleForceOffline(row)"
|
||||
>
|
||||
<a-button danger size="small" type="link">强制下线</a-button>
|
||||
<ghost-button danger>强制下线</ghost-button>
|
||||
</Popconfirm>
|
||||
</template>
|
||||
</BasicTable>
|
||||
|
@@ -167,14 +167,12 @@ async function handleDelete() {
|
||||
</Space>
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<a-button
|
||||
size="small"
|
||||
type="link"
|
||||
<ghost-button
|
||||
v-access:code="['monitor:operlog:list']"
|
||||
@click.stop="handlePreview(row)"
|
||||
>
|
||||
{{ $t('pages.common.preview') }}
|
||||
</a-button>
|
||||
</ghost-button>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<OperationPreviewDrawer />
|
||||
|
Reference in New Issue
Block a user