refactor: 将枚举和常量从utils移动到constants
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/utils';
|
||||
import { BpmNodeTypeEnum, BpmTaskStatusEnum } from '@vben/constants';
|
||||
|
||||
interface DictDataType {
|
||||
label: string;
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
BpmNodeTypeEnum,
|
||||
BpmTaskStatusEnum,
|
||||
ProcessVariableEnum,
|
||||
} from '@vben/utils';
|
||||
} from '@vben/constants';
|
||||
|
||||
import {
|
||||
ApproveMethodType,
|
||||
|
||||
Reference in New Issue
Block a user