vue-adaption
v1.0.9
Published
一款自适应屏幕工具,自动缩放且铺满整屏,适用范围3840-768
Downloads
9
Readme
vue-adaption
这是一款可以使你的项目一键自适应的工具
引入
import adaption from 'vue-adaption'
快速开始
adaption.init()
默认参数为1920*929(满屏), 直接调用即可
使用
export default {
mounted() {
adaption.init({
screenHeight: 1080,
screenWidth: 1920,
bindingNode:"#app",
resize: true
})
},
}