fix: naive code

This commit is contained in:
xingyu4j
2025-10-17 11:24:07 +08:00
parent 9499a80e8a
commit a5e3406849
39 changed files with 112 additions and 175 deletions

View File

@@ -7,6 +7,8 @@ import { ref, watch } from 'vue';
import { confirm, useVbenModal } from '@vben/common-ui';
import { downloadFileFromBlobPart, isEmpty } from '@vben/utils';
import { NTag } from 'naive-ui';
import { message } from '#/adapter/naive';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -173,10 +175,14 @@ watch(
/>
</template>
<template #colorType="{ row }">
<Tag :color="row.colorType">{{ row.colorType }}</Tag>
<NTag v-if="row.colorType" :type="row.colorType as any">
{{ row.colorType }}
</NTag>
</template>
<template #cssClass="{ row }">
<Tag :color="row.cssClass">{{ row.cssClass }}</Tag>
<NTag v-if="row.cssClass" :color="{ color: row.cssClass }">
{{ row.cssClass }}
</NTag>
</template>
<template #actions="{ row }">
<TableAction