vue-ios-safe-area

1.0.3 • Public • Published

vue-ios-safe-area

Intro


This plugin sets the safe area at the bottom of the ios system.

Installation


npm install vue-ios-safe-area

Usage


<!-- add this code in html head -->
<meta name="viewport" content="width=device-width,initial-scale=1.0,viewport-fit=cover">
//  main.js    
import iosSafeArea from 'vue-ios-safe-area'
Vue.use(lazyimg, options)
<!-- simple -->
<div v-iosSafeArea>
  <!-- content ... -->
</div>

<!-- Set the padding (default) -->
<div v-iosSafeArea:padding>
  <!-- content ... -->
</div>

<!-- Set the margin  -->
<div v-iosSafeArea:margin>
  <!-- content ... -->
</div>

<!-- Set the height. The element must has height. -->
<div v-iosSafeArea:height>
  <!-- content ... -->
</div>

At last,If there is any problems in using, please send E-mail to 1428925451@qq.com, thank you so much!

Package Sidebar

Install

npm i vue-ios-safe-area

Weekly Downloads

8

Version

1.0.3

License

ISC

Unpacked Size

6.85 kB

Total Files

5

Last publish

Collaborators

  • iris_mei