refactor: 将枚举和常量从utils移动到constants

This commit is contained in:
xingyu4j
2025-09-04 18:19:49 +08:00
parent d7d445617f
commit 37fba1474e
144 changed files with 255 additions and 245 deletions

View File

@@ -6,8 +6,8 @@ import type { IOParameter, SimpleFlowNode } from '../../consts';
import { computed, onMounted, reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import {
Button,

View File

@@ -9,8 +9,8 @@ import type { CopyTaskFormType } from '../../helpers';
import { computed, onMounted, reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui';
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/utils';
import {
Col,

View File

@@ -6,8 +6,8 @@ import type { SimpleFlowNode } from '../../consts';
import { reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import {
Col,

View File

@@ -5,8 +5,9 @@ import type { Ref } from 'vue';
import { computed, inject, reactive, ref } from 'vue';
import { BpmModelFormType } from '@vben/constants';
import { IconifyIcon, Plus, Trash2 } from '@vben/icons';
import { BpmModelFormType, cloneDeep } from '@vben/utils';
import { cloneDeep } from '@vben/utils';
import {
Card,

View File

@@ -6,8 +6,8 @@ import type { RouterSetting, SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import {
Button,

View File

@@ -9,8 +9,8 @@ import type { SystemUserApi } from '#/api/system/user';
import { inject, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui';
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/utils';
import {
Col,

View File

@@ -11,8 +11,9 @@ import type {
import { computed, getCurrentInstance, onMounted, reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum, cloneDeep } from '@vben/utils';
import { cloneDeep } from '@vben/utils';
import {
Button,

View File

@@ -9,13 +9,13 @@ import type { UserTaskFormType } from '../../helpers';
import { computed, nextTick, onMounted, reactive, ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui';
import { IconifyIcon } from '@vben/icons';
import {
BpmModelFormType,
BpmNodeTypeEnum,
cloneDeep,
ProcessVariableEnum,
} from '@vben/utils';
} from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { cloneDeep } from '@vben/utils';
import {
Button,

View File

@@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue';

View File

@@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue';

View File

@@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue';

View File

@@ -3,12 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
import { getCurrentInstance, inject, nextTick, ref, watch } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import {
BpmNodeTypeEnum,
cloneDeep,
buildShortUUID as generateUUID,
} from '@vben/utils';
import { cloneDeep, buildShortUUID as generateUUID } from '@vben/utils';
import { Button, Input } from 'ant-design-vue';

View File

@@ -3,12 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
import { getCurrentInstance, inject, nextTick, ref, watch } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import {
BpmNodeTypeEnum,
cloneDeep,
buildShortUUID as generateUUID,
} from '@vben/utils';
import { cloneDeep, buildShortUUID as generateUUID } from '@vben/utils';
import { Button, Input } from 'ant-design-vue';

View File

@@ -3,12 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import {
BpmNodeTypeEnum,
cloneDeep,
buildShortUUID as generateUUID,
} from '@vben/utils';
import { cloneDeep, buildShortUUID as generateUUID } from '@vben/utils';
import { message, Popover } from 'ant-design-vue';

View File

@@ -3,8 +3,9 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, nextTick, ref, watch } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum, buildShortUUID as generateUUID } from '@vben/utils';
import { buildShortUUID as generateUUID } from '@vben/utils';
import { Button, Input } from 'ant-design-vue';

View File

@@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue';

View File

@@ -7,8 +7,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue';

View File

@@ -3,8 +3,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue';

View File

@@ -6,8 +6,8 @@ import type { SimpleFlowNode } from '../../consts';
import { inject, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum } from '@vben/utils';
import { Input } from 'ant-design-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { SimpleFlowNode } from '../consts';
import { BpmNodeTypeEnum } from '@vben/utils';
import { BpmNodeTypeEnum } from '@vben/constants';
import { useWatchNode } from '../helpers';
import ChildProcessNode from './nodes/child-process-node.vue';

View File

@@ -12,7 +12,8 @@ import type { SystemUserApi } from '#/api/system/user';
import { inject, onMounted, provide, ref, watch } from 'vue';
import { useVbenModal } from '@vben/common-ui';
import { BpmModelFormType, BpmNodeTypeEnum, handleTree } from '@vben/utils';
import { BpmModelFormType, BpmNodeTypeEnum } from '@vben/constants';
import { handleTree } from '@vben/utils';
import { Button } from 'ant-design-vue';

View File

@@ -3,8 +3,9 @@ import type { SimpleFlowNode } from '../consts';
import { onMounted, provide, ref } from 'vue';
import { BpmNodeTypeEnum } from '@vben/constants';
import { IconifyIcon } from '@vben/icons';
import { BpmNodeTypeEnum, downloadFileFromBlob, isString } from '@vben/utils';
import { downloadFileFromBlob, isString } from '@vben/utils';
import { Button, ButtonGroup, Modal, Row } from 'ant-design-vue';

View File

@@ -1,4 +1,4 @@
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/utils';
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/constants';
interface DictDataType {
label: string;

View File

@@ -18,7 +18,7 @@ import {
BpmNodeTypeEnum,
BpmTaskStatusEnum,
ProcessVariableEnum,
} from '@vben/utils';
} from '@vben/constants';
import {
ApproveMethodType,