misc doc updates

This commit is contained in:
Leopoldthecoder
2016-09-12 13:53:45 +08:00
parent 001584e4ab
commit 0dba1da935
8 changed files with 30 additions and 52 deletions

View File

@@ -1,6 +1,6 @@
## 快速上手
element 是为饿了么定制的一套 Vue.js 后台组件库帮助你更轻松更快速开发后台项目。
element 是一套 Vue.js 后台组件库,它能够帮助你更轻松更快速开发后台项目。
### 安装
@@ -21,7 +21,7 @@ Vue.use(Element)
或者只引入你需要的组件
**use [babel-plugin-component](https://github.com/QingWei-Li/babel-plugin-component)**
**使用 [babel-plugin-component](https://github.com/QingWei-Li/babel-plugin-component)**
```javascript
import {
@@ -30,25 +30,25 @@ import {
// ...
} from 'element-ui'
Vue.component(Select.name, ElSelect)
Vue.component(Select.name, Select)
Vue.component(Button.name, Button)
```
(roughly) to
将会被翻译成
```javascript
import Select from 'element-ui/lib/select';
import Select from 'element-ui/lib/theme-default/select.css';
import 'element-ui/lib/theme-default/select.css';
import Button from 'element-ui/lib/button';
import Button from 'element-ui/lib/theme-default/button.css';
import 'element-ui/lib/theme-default/button.css';
Vue.component(Select.name, ElSelect)
Vue.component(Select.name, Select)
Vue.component(Button.name, Button)
```
### babel-plugin-component
.babelrc
配置 .babelrc
```json
{