1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| import { optionsToEnum } from '@vben/utils';
|
| export const activityStatusOptions = [
| {
| label: '激活',
| value: 1,
| color: 'success',
| enumName: 'Active',
| },
| {
| label: '挂起',
| value: 0,
| color: 'error',
| enumName: 'Suspended',
| },
| ] as const;
|
| export const ActivityStatusEnum = optionsToEnum(activityStatusOptions);
|
| export const publishStatusOptions = [
| {
| label: '已发布',
| value: 1,
| color: 'success',
| },
| {
| label: '未发布',
| value: 0,
| color: 'warning',
| },
| {
| label: '失效',
| value: 9,
| color: 'error',
| },
| ];
|
|