This commit is contained in:
zhuxiang
2017-03-01 15:40:08 +08:00
parent 7a3785c31b
commit dc2d685a34
7 changed files with 62 additions and 27 deletions

View File

@@ -2,7 +2,6 @@
### 基础用法
:::demo 样例代码
```html
<zan-badge-group active-key="2">
<zan-badge mark="0" title="热销榜" info="8" url="http://baidu.com"></zan-badge>
@@ -11,7 +10,6 @@
<zan-badge mark="3" title="手握寿司" info="199"></zan-badge>
</zan-badge-group>
```
:::
### z-badge-group API

View File

@@ -1,21 +1,12 @@
<script>
export default {
methods: {
goSearch(value) {
alert(value)
}
}
};
</script>
## Search 组件
### 基础用法
:::demo 样例代码
```html
<zan-search
placeholder="商品名称"
:on-search="goSearch"
@search="goSearch"
>
</zan-search>
```
@@ -29,11 +20,9 @@ export default {
}
};
```
:::
### API
| 参数 | 说明 | 类型 | 默认值 | 必须 |
|-----------|-----------|-----------|-------------|-------------|
| placeholder | input的placeholder文案 | string | | required |
| on-search | 点击回车后出发搜索回调 | function | function() {} | |
| placeholder | input的placeholder文案 | string | | |