vue全屏组件
2022-10-25 本文已影响0人
codbking
一个用于将任意组件放大到铺满全屏,不受父控件样式约束的vue组件

Install
npm i view-full-screen
Quick Start
// main.js
import Vue from 'vue'
import viewFullScreen from "view-full-screen"
Vue.use(viewFullScreen)
<!-- your components-->
<view-full-screen :is-full-screen="isFullScreen" class="right">
<!--your code-->
</view-full-screen>
data() {
return {
isFullScreen: false
}
}
欢迎大家 start~