Skip to content

ArvinChen9539/vue3-one-size

Repository files navigation

vue3-one-size

NPM version NPM downloads

基于vue-one-size 做 vue3重构

Demo

Install

pnpm add vue3-one-size

Usage

use it locally:

<template>
  <OneSizeContainer>
    ...
  </OneSizeContainer>
</template>

<script>
import OneSizeContainer from 'vue-one-size'

export default {
  ...
  components: {
    OneSizeContainer
  }
}
</script>

Props

Name Default Description
width 375 Width of the page.
height 603 Height of the page.
maxRatio 1 The maximal ratio to scale up.
resize true Whether to resize when window resized.

About

基于vue-one-size 做 vue3重构

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published