refactor: 将枚举和常量从utils移动到constants
This commit is contained in:
@@ -1,15 +1,10 @@
|
||||
import type { VbenFormSchema } from '#/adapter/form';
|
||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
|
||||
import { SystemDataScopeEnum } from '@vben/utils';
|
||||
import { CommonStatusEnum, SystemDataScopeEnum } from '@vben/constants';
|
||||
|
||||
import { z } from '#/adapter/form';
|
||||
import {
|
||||
CommonStatusEnum,
|
||||
DICT_TYPE,
|
||||
getDictOptions,
|
||||
getRangePickerDefaultProps,
|
||||
} from '#/utils';
|
||||
import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils';
|
||||
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
|
||||
@@ -5,7 +5,8 @@ import type { SystemRoleApi } from '#/api/system/role';
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { useVbenModal, VbenTree } from '@vben/common-ui';
|
||||
import { handleTree, SystemDataScopeEnum } from '@vben/utils';
|
||||
import { SystemDataScopeEnum } from '@vben/constants';
|
||||
import { handleTree } from '@vben/utils';
|
||||
|
||||
import { Checkbox, message } from 'ant-design-vue';
|
||||
|
||||
|
||||
@@ -7,7 +7,8 @@ import type { SystemRoleApi } from '#/api/system/role';
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { useVbenModal, VbenTree } from '@vben/common-ui';
|
||||
import { handleTree, SystemMenuTypeEnum } from '@vben/utils';
|
||||
import { SystemMenuTypeEnum } from '@vben/constants';
|
||||
import { handleTree } from '@vben/utils';
|
||||
|
||||
import { Checkbox, message } from 'ant-design-vue';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user