fix: improve the display of modal and drawer on mobile (#4237)

This commit is contained in:
Vben
2024-08-26 20:54:20 +08:00
committed by GitHub
parent 577cc85851
commit fd7b3479b4
19 changed files with 99 additions and 34 deletions

View File

@@ -0,0 +1,7 @@
import { breakpointsTailwind, useBreakpoints } from '@vueuse/core';
export function useIsMobile() {
const breakpoints = useBreakpoints(breakpointsTailwind);
const isMobile = breakpoints.smaller('md');
return { isMobile };
}