perf: 优化

This commit is contained in:
ah--desktop
2025-12-07 23:36:38 +08:00
parent 407c650973
commit a3b8797955
42 changed files with 160 additions and 701 deletions
@@ -8,7 +8,7 @@ import { computed, ref } from 'vue';
import { Page } from '@vben/common-ui';
import { createIconifyIcon } from '@vben/icons';
import { Button, message, Space, Tag } from 'ant-design-vue';
import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -275,7 +275,12 @@ const [Grid, gridApi] = useVbenVxeGrid({
<template #action="{ row }: { row: any }">
<Space>
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
<Button size="small" danger @click="handleDelete(row)"> 删除 </Button>
<Popconfirm
title="确定要删除这个岗位吗?"
@confirm="handleDelete(row)"
>
<Button size="small" danger> 删除 </Button>
</Popconfirm>
</Space>
</template>
</Grid>