diff --git a/src/components/Page/index.ts b/src/components/Page/index.ts index 8ed45055..455c7021 100644 --- a/src/components/Page/index.ts +++ b/src/components/Page/index.ts @@ -5,5 +5,3 @@ import pageWrapper from './src/PageWrapper.vue' export const PageFooter = withInstall(pageFooter) export const PageWrapper = withInstall(pageWrapper) - -export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight' diff --git a/src/components/Page/src/PageWrapper.vue b/src/components/Page/src/PageWrapper.vue index 807d954f..996f3fb4 100644 --- a/src/components/Page/src/PageWrapper.vue +++ b/src/components/Page/src/PageWrapper.vue @@ -35,7 +35,7 @@ import { propTypes } from '@/utils/propTypes' import { omit } from 'lodash-es' import { PageHeader } from 'ant-design-vue' import { useContentHeight } from '@/hooks/web/useContentHeight' -import { PageWrapperFixedHeightKey } from '..' +import { PageWrapperFixedHeightKey } from '@/enums/pageEnum' defineOptions({ name: 'PageWrapper', inheritAttrs: false }) diff --git a/src/components/Table/src/BasicTable.vue b/src/components/Table/src/BasicTable.vue index ab2a8d52..3d2f1937 100644 --- a/src/components/Table/src/BasicTable.vue +++ b/src/components/Table/src/BasicTable.vue @@ -44,7 +44,7 @@ import type { BasicTableProps, TableActionType, SizeType, ColumnChangeParam } fr import { ref, computed, unref, toRaw, inject, watchEffect, useAttrs, useSlots } from 'vue' import { Table } from 'ant-design-vue' import { BasicForm, useForm } from '@/components/Form' -import { PageWrapperFixedHeightKey } from '@/components/Page' +import { PageWrapperFixedHeightKey } from '@/enums/pageEnum' import HeaderCell from './components/HeaderCell.vue' import { InnerHandlers } from './types/table' import { usePagination } from './hooks/usePagination' diff --git a/src/enums/pageEnum.ts b/src/enums/pageEnum.ts index e1da8e39..3b6a5ed9 100644 --- a/src/enums/pageEnum.ts +++ b/src/enums/pageEnum.ts @@ -9,3 +9,5 @@ export enum PageEnum { ERROR_LOG_PAGE = '/error-log/list', MESSAGE_PAGE = '/profile/notify-message' } + +export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight'