An open API service indexing awesome lists of open source software.

https://github.com/vxhly/vtp-component

使用 Vue cli 3.0 构建自定义组件库(第二弹)
https://github.com/vxhly/vtp-component

Last synced: 3 months ago
JSON representation

使用 Vue cli 3.0 构建自定义组件库(第二弹)

Awesome Lists containing this project

README

        

# vtp-component

> 开箱即用的 Vue 组件库

## Install

```bash
npm install vtp
# or
yarn add vtp
```

## Used

### 一键全局引入

```javascript
import Vue from 'vue'
import Vtp from 'vtp'

Vue.use(Vtp)
```

### 按需引入

```javascript
import Vue from 'vue'
import { VtpButton } from 'vtp'

Vue.use(VtpButton)
```

## 运行文档说明

``` bash
npm i -g vuepress
npm run docs:dev
# 编译文档可使用 npm run docs:build
```