Skip to content

useWindowSize ​

响应式获取窗口尺寸。

示例 ​

ts
import { useWindowSize } from '@base-web-kits/base-tools-vue';

const { width, height } = useWindowSize();

返回值 ​

  • (Object): 包含 width, height 的对象。

来源 ​