remove deprecated api

This commit is contained in:
Timi
2026-08-07 10:46:14 +08:00
parent efea624376
commit f0ba55fe25
18 changed files with 194 additions and 306 deletions
+7 -7
View File
@@ -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;