0.1.9 • Published 3 years ago

vue-liu-ui v0.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
3 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

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago