Commit cc88e1a66c056eee363ccb4093e0b1f0dacbeadc

Authored by tawen
Committed by GitHub
1 parent 6aa3f934

fix: 修复 Cannot access 'pagewrapper' before initialization (#2835)

src/components/Page/index.ts
... ... @@ -5,5 +5,3 @@ import pageWrapper from './src/PageWrapper.vue';
5 5  
6 6 export const PageFooter = withInstall(pageFooter);
7 7 export const PageWrapper = withInstall(pageWrapper);
8   -
9   -export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight';
... ...
src/components/Page/src/PageWrapper.vue
... ... @@ -51,7 +51,7 @@
51 51 import { omit } from 'lodash-es';
52 52 import { PageHeader } from 'ant-design-vue';
53 53 import { useContentHeight } from '/@/hooks/web/useContentHeight';
54   - import { PageWrapperFixedHeightKey } from '..';
  54 + import { PageWrapperFixedHeightKey } from '/@/enums/pageEnum';
55 55  
56 56 export default defineComponent({
57 57 name: 'PageWrapper',
... ...
src/components/Table/src/BasicTable.vue
... ... @@ -49,7 +49,7 @@
49 49 import { defineComponent, ref, computed, unref, toRaw, inject, watchEffect } from 'vue';
50 50 import { Table } from 'ant-design-vue';
51 51 import { BasicForm, useForm } from '/@/components/Form/index';
52   - import { PageWrapperFixedHeightKey } from '/@/components/Page';
  52 + import { PageWrapperFixedHeightKey } from '/@/enums/pageEnum';
53 53 import HeaderCell from './components/HeaderCell.vue';
54 54 import { InnerHandlers } from './types/table';
55 55  
... ...
src/enums/pageEnum.ts
... ... @@ -8,3 +8,4 @@ export enum PageEnum {
8 8 // error log page path
9 9 ERROR_LOG_PAGE = '/error-log/list',
10 10 }
  11 +export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight';
... ...