0.1.6 • Published 8 years ago

vue-component-menu v0.1.6

Weekly downloads
26
License
-
Repository
github
Last release
8 years ago

Vue Component Menu

Simple, response and beautiful Vue menu component

DEMO

Install

npm install vue-component-menu --save-dev

Usage

Template tag

<template>
  <div id="app">

    <!-- You need create `el:wapper` to open and close menu -->
    <div class="wapper" v-el:wapper>

      <!-- Container of header and menu -->
      <div class="canvas">

        <!-- Component Menu -->
        <component-menu
            label="MENU"
            color-primary="tomato"
            color-secondary="#fff"
            color-shadow="#ff3c1a"
            :items="links"></component-menu>

        <!-- Your Header -->
        <header class="content">
          <h1>Vue menu component</h1>
          <p>This is a test!</p>
        </header>

      </div>
    </div>

  </div>
</template>

Script tag

import ComponentMenu from './component-menu.vue';

export default {
  data () {
    return {
      links: [
        { name: 'Home', link: '/home' },
        { name: 'Blog', link: '/blog' },
        { name: 'Github', link: '/github'},
        { name: 'Contact', link: '/contact'},
        { name: 'About', link: '/about'}]
    }
  },
  components: { ComponentMenu }
}

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago