1.0.3 • Published 6 years ago

vue-mobile-viewer v1.0.3

Weekly downloads
17
License
-
Repository
-
Last release
6 years ago

vue-mobile-viewer

Iframe with mobile viewer for vue applications or external web sites

npm version

Image of mobile

Install

Vue project

npm install --save vue-mobile-viewer

Usage

<template>
  <viewer :device="picked" :url="url"/>
</template>
import Viewer from 'vue-mobile-viewer'
export default {
  components: {
    Viewer
  },
  data: {
    return {
      url: 'https://union.co/',
      picked: 'android' //android or apple
    }
  }
}

External page

Android

<iframe src="https://brunofmeurer.github.io/vue-mobile-viewer/#/device?type=android&url=https%3A%2F%2Funion.co%2F"
    frameborder="0"
    scrolling="no"
    width="450px"
    height="850px"
    allowtransparency="yes"
/>

IOS

<iframe src="https://brunofmeurer.github.io/vue-mobile-viewer/#/device?type=apple&url=https%3A%2F%2Funion.co%2F"
    frameborder="0"
    scrolling="no"
    width="450px"
    height="850px"
    allowtransparency="yes"
/>

Credits

I totally relied on a docs quasar api QUASAR DOC

License

Copyright (c) 2018-present Bruno Meurer

MIT License

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago