/vue3-one-size

基于vue-one-size 做 vue3重构

Primary LanguageVueMIT LicenseMIT

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.