remove deprecated api
This commit is contained in:
@@ -32,23 +32,23 @@ const isShortScreen = ref(false);
|
||||
const isMobileLayout = ref(false);
|
||||
|
||||
/** 断点配置,单位:px */
|
||||
enum Breakpoints {
|
||||
const Breakpoints = {
|
||||
|
||||
/** 超小设备 */
|
||||
XS = 480,
|
||||
XS: 480,
|
||||
|
||||
/** 手机 */
|
||||
SM = 650,
|
||||
SM: 650,
|
||||
|
||||
/** 平板 */
|
||||
MD = 768,
|
||||
MD: 768,
|
||||
|
||||
/** 笔记本 */
|
||||
LG = 1024,
|
||||
LG: 1024,
|
||||
|
||||
/** 大屏幕 */
|
||||
XL = 1440
|
||||
}
|
||||
XL: 1440
|
||||
} as const;
|
||||
|
||||
Resizer.addListener("DEVICE_SIZE", (width, height) => {
|
||||
screenWidth.value = width;
|
||||
|
||||
Reference in New Issue
Block a user