1.1.2 • Published 6 years ago

mobile-container v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

vue-mobile-container

npm

A Vue.js mobile container

Install

NPM

$ npm install vue-mobile-container

template

<template>
    <div>
        <vue-mobile-container 
            :link="link" 
            :content="html"/>
    </div>
</template>

javascript

<script>
    import vueMobileContainer from 'vue-mobile-container'
    export default {
    name: 'app',
    components: {
        vueMobileContainer
    },
    data () {
        return {
            link:'myPage.com',
            html:'<div><h1>my page</h1></div>'
        }
    }
    }
</script>

##props

nametypedefaultdescription
widthNubmer375The container width
heightNubmer640The container height
linkString''Title or link in container head
contentString''Any string or html
iframeBooleanfalseThe iframe in the container
urlString''The link when iframe is true
reflushBooleanfalseReflush the page

##Style

you can add any style like this

<vue-mobile-container class="container"/>
.container{
 border:2px solid #ddd;
 margin:0 auto;
 border-radius:4px;
}
1.1.2

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago