1.0.2 • Published 2 years ago

vue-layout-page v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vue-layout-page

Three line layout for Vue page

Features

  • Support both Vue 2 & Vue 3
  • Support both PC & Mobile

Installation

Vue 3

npm install vue-layout-page
// import globally in main.js

import VueLayoutPage from 'vue-layout-page'
import 'vue-layout-page/dist/style.css'

app.use(VueLayoutPage)

// in SFC component
<template>
 <VueLayoutPage bodyBgColor="#f2f2f2" />
</template>
<!-- import locally -->

<template>
   <VueLayoutPage bodyBgColor="#f2f2f2" />
</template>

<script setup>
import VueLayoutPage from 'vue-layout-page'
import 'vue-layout-page/dist/style.css'
</script>

Vue 2

npm install  vue-layout-page
// import globally
import VueLayoutPage from 'vue-layout-page'
import 'vue-layout-page/dist/style.css'
app.use(VueLayoutPage)
<!-- import locally -->

<template>
  <VueLayoutPage bodyBgColor="#f2f2f2" />
</template>

<script>
import VueLayoutPage from 'vue-layout-page'
import 'vue-layout-page/dist/style.css'
export default {
  components: { VueLayoutPage },
}
</script>

Props

NameDescriptionType
bodyBgColorbody backgound colorstring
hideHeaderPlaceholderhide header placeholderboolean
hideFooterPlaceholderhide footer placeholderboolean

Preview