luocong2016
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
src/hooks/event/useBreakpoint.ts
|
|
|
@ -2,6 +2,10 @@ import { ref, computed, ComputedRef, unref } from 'vue'; |
|
|
|
import { useEventListener } from '/@/hooks/event/useEventListener'; |
|
|
|
import { screenMap, sizeEnum, screenEnum } from '/@/enums/breakpointEnum'; |
|
|
|
|
|
|
|
// 可以用这个替换,优化项
|
|
|
|
// import { Grid } from 'ant-design-vue';
|
|
|
|
// const { useBreakpoint } = Grid;
|
|
|
|
|
|
|
|
let globalScreenRef: ComputedRef<sizeEnum | undefined>; |
|
|
|
let globalWidthRef: ComputedRef<number>; |
|
|
|
let globalRealWidthRef: ComputedRef<number>; |
|
|
|
|