Browse Source

docs:optimization point notes (#2526)

pull/2542/head
luocong2016 4 years ago
committed by GitHub
parent
commit
d25dfcc7c0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/hooks/event/useBreakpoint.ts

4
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>;

Loading…
Cancel
Save