fix: Cannot access 'pagewrapper' before init

pull/21/MERGE
xingyu 2023-06-08 11:07:33 +08:00
parent c455a843e1
commit 7464ac03d7
4 changed files with 4 additions and 4 deletions

View File

@ -5,5 +5,3 @@ import pageWrapper from './src/PageWrapper.vue'
export const PageFooter = withInstall(pageFooter)
export const PageWrapper = withInstall(pageWrapper)
export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight'

View File

@ -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 })

View File

@ -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'

View File

@ -9,3 +9,5 @@ export enum PageEnum {
ERROR_LOG_PAGE = '/error-log/list',
MESSAGE_PAGE = '/profile/notify-message'
}
export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight'