Client
Less than 1 minute
Utils
Device Related
Features can be easily inferred by function names.
The ua parameter is navigator.userAgent, as it's not available in SSR, so you are expected to call these functions in onMounted lifecycle.
export const checkIsMobile: (ua: string) => boolean;
export const checkIsChromeWebView: (ua: string) => boolean;
export const checkIsSafariMobile: (ua: string) => boolean;
export const checkIsSafari: (ua: string) => boolean;
export const checkIsiPhone: (ua: string) => boolean;
export const checkIsiPad: (ua: string) => boolean;
export const checkIsWindows: (ua: string) => boolean;
export const checkIsIOS: (ua: string) => boolean;
export const checkIsMacOS: (ua: string) => boolean;Router Related
/**
* Whether the lick is active
*
* @param route Current route
* @param link link path
* @returns Whether the lick is active
*/
export const isActiveLink: (
route: RouteLocationNormalizedLoaded,
link?: string,
) => boolean;Changelog
1/14/25, 8:13 AM
View All Changelog
1b917-on9d398-on9458a-on32f93-on794f9-on86180-on71423-on4104e-onff55c-ondffd1-on