Commit d25dfcc7c07b9ce0956b9fcb82d0b309fb14acff
Committed by
GitHub
1 parent
8992ef47
docs:optimization point notes (#2526)
Showing
1 changed file
with
4 additions
and
0 deletions
src/hooks/event/useBreakpoint.ts
... | ... | @@ -2,6 +2,10 @@ import { ref, computed, ComputedRef, unref } from 'vue'; |
2 | 2 | import { useEventListener } from '/@/hooks/event/useEventListener'; |
3 | 3 | import { screenMap, sizeEnum, screenEnum } from '/@/enums/breakpointEnum'; |
4 | 4 | |
5 | +// 可以用这个替换,优化项 | |
6 | +// import { Grid } from 'ant-design-vue'; | |
7 | +// const { useBreakpoint } = Grid; | |
8 | + | |
5 | 9 | let globalScreenRef: ComputedRef<sizeEnum | undefined>; |
6 | 10 | let globalWidthRef: ComputedRef<number>; |
7 | 11 | let globalRealWidthRef: ComputedRef<number>; | ... | ... |