0.0.2 • Published 12 months ago

fu-size v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

fu-size

自定义封装resize指令

Install 安装

npm install fu-size
// or
yarn add fu-size
// or
pnpm install fu-size

Use 使用

// main.ts
import FuSize from 'fu-size'
app.directive('fu-size', FuSize)

Example 示例

<template>
    <HelloWorld msg="You did it!" v-fu-size="changeSize" />
</template>

<script setup lang="ts">
const changeSize = (e) => {
  console.log(e)    // { width: 893, height: 97.1875 }
}
</script>
0.0.2

12 months ago

0.0.1

12 months ago