From c264945d8f1cb17da14977acc75bb6953506ed80 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Sat, 21 Jun 2025 14:46:26 +0800 Subject: [PATCH] feat: dict css class --- apps/web-antd/src/views/system/dict/data.ts | 2 ++ apps/web-antd/src/views/system/dict/modules/data-grid.vue | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/views/system/dict/data.ts b/apps/web-antd/src/views/system/dict/data.ts index f1d46c2f8..36c6148ab 100644 --- a/apps/web-antd/src/views/system/dict/data.ts +++ b/apps/web-antd/src/views/system/dict/data.ts @@ -317,10 +317,12 @@ export function useDataGridColumns(): VxeTableGridOptions['columns'] { { field: 'colorType', title: '颜色类型', + slots: { default: 'colorType' }, }, { field: 'cssClass', title: 'CSS Class', + slots: { default: 'cssClass' }, }, { title: '创建时间', diff --git a/apps/web-antd/src/views/system/dict/modules/data-grid.vue b/apps/web-antd/src/views/system/dict/modules/data-grid.vue index 7079c8adb..58a6158fb 100644 --- a/apps/web-antd/src/views/system/dict/modules/data-grid.vue +++ b/apps/web-antd/src/views/system/dict/modules/data-grid.vue @@ -7,7 +7,7 @@ import { ref, watch } from 'vue'; import { useVbenModal } from '@vben/common-ui'; import { downloadFileFromBlobPart, isEmpty } from '@vben/utils'; -import { message } from 'ant-design-vue'; +import { message, Tag } from 'ant-design-vue'; import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; import { @@ -177,6 +177,12 @@ watch( ]" /> + +