docs:optimization point notes (#2526)

This commit is contained in:
luocong2016 2023-02-10 07:42:04 +08:00 committed by GitHub
parent 8992ef472e
commit d25dfcc7c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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