From d0b66dbee494a7af0ef9d7046c3e62eea37132f9 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Wed, 22 Oct 2025 16:35:01 +0800 Subject: [PATCH] fix: format --- apps/web-antd/src/views/mp/user/data.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/apps/web-antd/src/views/mp/user/data.ts b/apps/web-antd/src/views/mp/user/data.ts index 8aa87c491..469ecfc87 100644 --- a/apps/web-antd/src/views/mp/user/data.ts +++ b/apps/web-antd/src/views/mp/user/data.ts @@ -2,10 +2,6 @@ import type { VbenFormSchema } from '#/adapter/form'; import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import type { MpAccountApi } from '#/api/mp/account'; -import { h } from 'vue'; - -import { Tag } from 'ant-design-vue'; - import { getSimpleAccountList } from '#/api/mp/account'; let accountList: MpAccountApi.AccountSimple[] = []; @@ -123,15 +119,8 @@ export function useGridColumns(): VxeTableGridOptions['columns'] { title: '订阅状态', minWidth: 100, align: 'center', - cellRender: { - name: 'CellRender', - props: ({ row }: { row: any }) => ({ - children: h( - Tag, - { color: row.subscribeStatus === 0 ? 'success' : 'error' }, - () => (row.subscribeStatus === 0 ? '已订阅' : '未订阅'), - ), - }), + formatter: ({ cellValue }) => { + return cellValue === 0 ? '已订阅' : '未订阅'; }, }, {