merge: master

This commit is contained in:
taiyong
2017-03-15 10:50:19 +08:00
43 changed files with 785 additions and 36 deletions
+22
View File
@@ -1,3 +1,13 @@
<style>
@component-namespace demo {
@b field {
.zan-field-wrapper {
padding: 0 10px;
}
}
}
</style>
<script>
export default {
data() {
@@ -38,6 +48,18 @@ export default {
```
:::
### 带border的输入框
传入一个`border`属性。
:::demo 带border的输入框
```html
<div class="zan-field-wrapper">
<zan-field type="text" placeholder="请输入用户名" border></zan-field>
</div>
```
:::
### 禁用的输入框
传入`disabled`属性即可。
+26
View File
@@ -0,0 +1,26 @@
<style>
@component-namespace demo {
@b swipe {
.zan-swipe {
height: 200px;
}
}
}
</style>
## Swipe
### 基础用法
:::demo 基础用法
```html
<zan-swipe>
<zan-swipe-item>
<img src="https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp" alt="">
</zan-swipe-item>
<zan-swipe-item>
<img src="https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp" alt="">
</zan-swipe-item>
</zan-swipe>
```
:::