1.0.2 • Published 2 years ago

bobx-autofit v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

useAutoFit 三个参数分别是设计稿宽、高、缩放类型。缩放类型是否全屏展示,默认 true,页面会形变

APP.vue

<template>
  <div id="app" :style="appStyle">
    <router-view></router-view>
  </div>
</template>
<script setup lang="ts">
import { useAutoFit } from 'bobx-autofit'

const { appStyle } = useAutoFit(1920, 1080, true)
</script>
1.0.2

2 years ago

1.0.0

2 years ago