Function: useDevice()
useDevice():
object
Returns
device
device:
ComputedRef<"mobile"|"tablet"|"desktop">
当前设备类型
isDesktop
isDesktop:
ComputedRef<boolean>
是否为桌面端(≥ 992px)
isMobile
isMobile:
ComputedRef<boolean>
是否为移动端(< 768px)
isTablet
>**isTablet**:ComputedRef\<boolean`>
是否为平板端(< 992px)
width
>**width**:Ref\<number, number\> = currentWidth`
当前窗口宽度(只读)