Appearance
大屏自适应
安装一个插件:npm install autofit.js
引入
import autofit from 'autofit.js'
import autofit from 'autofit.js'
使用
export default {
mounted() {
autofit.init({
designHeight: 1080,
designWidth: 1920,
renderDom:"#app",
resize: true
})
},
export default {
mounted() {
autofit.init({
designHeight: 1080,
designWidth: 1920,
renderDom:"#app",
resize: true
})
},