1.0.4 • Published 3 years ago

uab-ui v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

npm.io npm.io npm.io npm.io npm.io

Installation

npm:

npm install uab-ui

yarn:

yarn add uab-ui

Use

1. 组件引入

<template>
  <div>
    <u-button icon="favorite-filling">默认按钮</u-button>
  </div>
</template>

<script>
import { Button } from 'uab-ui'
import 'uab-ui/dist/uab-ui.css'

export default {
  components: {
    'u-button': Button
  }
}
</script>

2. 全局全部引入

import Vue from "vue";
import app from "./app.vue";
import uab from "uab-ui";
import "uab-ui/dist/uab-ui.css"

Vue.use(uab)

new Vue({
  render: h => h(app)
}).$mount("#app");

3. 全局部分引入

import Vue from "vue";
import app from "./app.vue";
import { Button } from "uab-ui";
import "uab-ui/dist/uab-ui.css"

Vue.component(Button.name, Button)

new Vue({
  render: h => h(app)
}).$mount("#app");

Documentation

The uab-ui docs are located at 官方文档:

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago