快速开始
===

!> 组件库尽量以 Vue 组件形式实现，部分组件因 mpvue 尚不支持的语法而无法实现，详细见[不支持列表](http://mpvue.com/mpvue/#_14 ':target=_blank')。

## 安装

```bash
$ yarn add weui-mpvue
```

## 预览

```bash
$ git clone https://github.com/kankungyip/weui-mpvue
$ cd weui-mpvue
$ yarn run example
```

用[微信web开发者工具](https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html ':target=_blank')打开`weui-mpvue`项目目录。

## 使用
### 引入全局样式

```vue
<style lang="less">
@import "<project_dir>/node_modules/weui-mpvue/theme/weui";
</style>
```
并非全部组件样式，仅全局（字体、颜色等）样式和未被 Vue 组件化的 WeUI 样式。

### 使用组件

```vue
<template>
  <ui-button text="按钮" />
</template>

<script>
import uiButton 'weui-mpvue/components/button'

export default {
  components: {
    uiBUtton
  }
}
</script>
```
需要 Slot 支持暂未实现的组件，请使用全局样式。
