refactor(按钮样式): 替换btn-success类为variant和color属性

使用variant="link"和color="green"替代原有的btn-success类,统一按钮样式实现方式
This commit is contained in:
dap
2026-01-13 20:25:02 +08:00
parent ff39e65d81
commit 0ab5c46812
4 changed files with 11 additions and 29 deletions

View File

@@ -1,14 +1,17 @@
<script setup lang="ts">
import type { VbenFormProps } from '@vben/common-ui';
import type { Recordable } from '@vben/types';
import type { VxeGridProps } from '#/adapter/vxe-table';
import { nextTick } from 'vue';
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
import { Page, useVbenModal } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
import { Popconfirm, Space } from 'antdv-next';
import { useVbenVxeGrid, type VxeGridProps } from '#/adapter/vxe-table';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { categoryList, categoryRemove } from '#/api/workflow/category';
import categoryModal from './category-modal.vue';
@@ -125,7 +128,8 @@ function collapseAll() {
{{ $t('pages.common.edit') }}
</ghost-button>
<ghost-button
class="btn-success"
variant="link"
color="green"
v-access:code="['workflow:category:edit']"
@click.stop="handleAdd(row)"
>