# useWindowSizeFn

监听窗口尺寸变化

## Usage

```vue
<script lang="ts" setup>
  import { useWindowSizeFn } from '@eciol/hooks';

  useWindowSizeFn(
    () => {
      console.log('窗口尺寸变化啦！！！');
    },
    { debounceTime: 150, immediate: true }
  );
</script>
```

## Type Declarations

```ts
interface UseWatermarkRes {
  /**
   * @description 设置水印文字
   */
  setWatermark: (str: string) => void;
  /**
   * @description 清除水印
   */
  clear: () => void;
  /**
   * @description 清除所有水印
   */
  clearAll: () => void;
}
declare function useWatermark(appendEl?: Ref<HTMLElement | null>): UseWatermarkRes;
```
