更改级别显示颜色

This commit is contained in:
15683799673
2025-08-28 21:07:45 +08:00
parent 7fc74b88b8
commit 26d34774cc
3 changed files with 6 additions and 6 deletions

View File

@@ -58,9 +58,9 @@ export const columns: VxeGridProps['columns'] = [
slots: {
default: ({ row }: any) => {
const levelColors: Record<string, string> = {
1: 'red',
1: 'blue',
2: 'orange',
3: 'blue',
3: 'red',
};
return h(
'span',

View File

@@ -58,9 +58,9 @@ export const columns: VxeGridProps['columns'] = [
slots: {
default: ({ row }: any) => {
const levelColors: Record<string, string> = {
1: 'red',
1: 'blue',
2: 'orange',
3: 'blue',
3: 'red',
};
return h(
'span',

View File

@@ -59,9 +59,9 @@ export const columns: VxeGridProps['columns'] = [
slots: {
default: ({ row }: any) => {
const levelColors: Record<string, string> = {
1: 'red',
1: 'blue',
2: 'orange',
3: 'blue',
3: 'red',
};
return h(
'span',