0.1.9 • Published 2 years ago

vue-liu-ui v0.1.9

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

Installation

# npm
$ npm install vue-liu-ui

Usage

main.js

import Vue from 'vue'
import App from './App.vue'

// 全部引入
import LiuUI from 'vue-liu-ui'
// 按需引入
// import { Button } from 'vue-liu-ui'
// 引入样式
import 'vue-liu-ui/lib/vue-liu-ui.css'

// 全部引入注册插件
Vue.use(LiuUI)

// 按需引入注册组件
// Vue.component(Button.name, Button)


new Vue({
  render: h => h(App),
}).$mount('#app')

Implementation

App.vue

<template>
  <div id="app">
    <liu-button @click="open" type="primary">open</liu-button>
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {},
  data() {
    return {

    }
  },
  methods: {
    open() {
      this.$toast('消息', 1000) // 默认2000
    }
  }
}
</script>
0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago