useBase
用於獲得使用者裝置資訊
ww x wh (window size) | 1920 x 1080 |
---|---|
isMobile | false |
deviceInfo | { "isSmartTV": false, "isConsole": false, "isWearable": false, "isMobileSafari": false, "isChromium": false, "isMobile": false, "isMobileOnly": false, "isTablet": false, "isBrowser": true, "isAndroid": false, "isWinPhone": false, "isIOS": false, "isChrome": false, "isFirefox": false, "isSafari": false, "isOpera": false, "isIE": false, "osVersion": "none", "osName": "none", "mobileVendor": "none", "mobileModel": "none", "getUA": "", "isEdge": false, "isYandex": false, "isIOS13": false, "isIPad13": false, "isIPhone13": false, "isIPod13": false, "isElectron": false, "isEdgeChromium": false, "isLegacyEdge": false, "isWindows": false, "isMacOs": false } |
md
<script setup>
import { useBase } from '@pieda/core';
const { ww, wh, isMobile, deviceInfo } = useBase();
</script>