文档优化

This commit is contained in:
cookfront
2017-03-06 15:16:02 +08:00
parent 76fa89a49c
commit 7093f1772f
26 changed files with 403 additions and 132 deletions
+20 -14
View File
@@ -1,17 +1,4 @@
## Search 组件
### 基础用法
```html
<zan-search
placeholder="商品名称"
@search="goSearch"
>
</zan-search>
```
```javascript
<script>
export default {
methods: {
goSearch(value) {
@@ -19,7 +6,26 @@ export default {
}
}
};
</script>
## Search 组件
### 基础用法
:::demo
```html
<zan-search placeholder="商品名称" @search="goSearch"></zan-search>
<script>
export default {
methods: {
goSearch(value) {
alert(value)
}
}
};
</script>
```
:::
### API