mirror of
https://github.com/xiangshu233/vue3-vant4-mobile.git
synced 2025-04-06 03:57:47 +08:00
29 lines
532 B
TypeScript
29 lines
532 B
TypeScript
export enum sizeEnum {
|
|
XS = 'XS',
|
|
SM = 'SM',
|
|
MD = 'MD',
|
|
LG = 'LG',
|
|
XL = 'XL',
|
|
XXL = 'XXL',
|
|
}
|
|
|
|
export enum screenEnum {
|
|
XS = 480,
|
|
SM = 576,
|
|
MD = 768,
|
|
LG = 992,
|
|
XL = 1200,
|
|
XXL = 1600,
|
|
}
|
|
|
|
const screenMap = new Map<sizeEnum, number>()
|
|
|
|
screenMap.set(sizeEnum.XS, screenEnum.XS)
|
|
screenMap.set(sizeEnum.SM, screenEnum.SM)
|
|
screenMap.set(sizeEnum.MD, screenEnum.MD)
|
|
screenMap.set(sizeEnum.LG, screenEnum.LG)
|
|
screenMap.set(sizeEnum.XL, screenEnum.XL)
|
|
screenMap.set(sizeEnum.XXL, screenEnum.XXL)
|
|
|
|
export { screenMap }
|