Commit cc88e1a66c056eee363ccb4093e0b1f0dacbeadc
Committed by
GitHub
1 parent
6aa3f934
fix: 修复 Cannot access 'pagewrapper' before initialization (#2835)
Showing
4 changed files
with
3 additions
and
4 deletions
src/components/Page/index.ts
@@ -5,5 +5,3 @@ import pageWrapper from './src/PageWrapper.vue'; | @@ -5,5 +5,3 @@ import pageWrapper from './src/PageWrapper.vue'; | ||
5 | 5 | ||
6 | export const PageFooter = withInstall(pageFooter); | 6 | export const PageFooter = withInstall(pageFooter); |
7 | export const PageWrapper = withInstall(pageWrapper); | 7 | export const PageWrapper = withInstall(pageWrapper); |
8 | - | ||
9 | -export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight'; |
src/components/Page/src/PageWrapper.vue
@@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
51 | import { omit } from 'lodash-es'; | 51 | import { omit } from 'lodash-es'; |
52 | import { PageHeader } from 'ant-design-vue'; | 52 | import { PageHeader } from 'ant-design-vue'; |
53 | import { useContentHeight } from '/@/hooks/web/useContentHeight'; | 53 | import { useContentHeight } from '/@/hooks/web/useContentHeight'; |
54 | - import { PageWrapperFixedHeightKey } from '..'; | 54 | + import { PageWrapperFixedHeightKey } from '/@/enums/pageEnum'; |
55 | 55 | ||
56 | export default defineComponent({ | 56 | export default defineComponent({ |
57 | name: 'PageWrapper', | 57 | name: 'PageWrapper', |
src/components/Table/src/BasicTable.vue
@@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
49 | import { defineComponent, ref, computed, unref, toRaw, inject, watchEffect } from 'vue'; | 49 | import { defineComponent, ref, computed, unref, toRaw, inject, watchEffect } from 'vue'; |
50 | import { Table } from 'ant-design-vue'; | 50 | import { Table } from 'ant-design-vue'; |
51 | import { BasicForm, useForm } from '/@/components/Form/index'; | 51 | import { BasicForm, useForm } from '/@/components/Form/index'; |
52 | - import { PageWrapperFixedHeightKey } from '/@/components/Page'; | 52 | + import { PageWrapperFixedHeightKey } from '/@/enums/pageEnum'; |
53 | import HeaderCell from './components/HeaderCell.vue'; | 53 | import HeaderCell from './components/HeaderCell.vue'; |
54 | import { InnerHandlers } from './types/table'; | 54 | import { InnerHandlers } from './types/table'; |
55 | 55 |
src/enums/pageEnum.ts