@axolo/leovue

0.5.0 • Public • Published

LeoVue

LeoVue is a Vue.js component library written by Leo.

Install

npm install @axolo/leovue --save

Import

<template>
  <div>
    <leo-dialog :visible="visible" :title="title" @close="close">
      <div class="main">{{content}}</div>
    </leo-dialog>
    <button @click="open">Dialog</button>
  </div>
</template>

<script>
import { LeoDialog } from '@axolo/leovue'
export default {
  components: { LeoDialog },
  data() { return {
    title: 'Hello',
    content: 'LeoVue',
    visible: false
  }},
  methods: {
    open()  { this.visible = true  },
    close() { this.visible = false }
  }
}
</script>

Package Sidebar

Install

npm i @axolo/leovue

Weekly Downloads

1

Version

0.5.0

License

MIT

Unpacked Size

8.41 MB

Total Files

12

Last publish

Collaborators

  • axolo