Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

axolo/leovue

Repository files navigation

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>