[Improvement] Field: support clearable (#1309)

This commit is contained in:
neverland
2018-06-20 20:09:04 +08:00
committed by GitHub
parent c368e36aea
commit 0a99da352e
19 changed files with 312 additions and 231 deletions

View File

@@ -53,9 +53,12 @@ exports[`renders demo correctly 1`] = `
<!---->
</div>
<div class="van-cell__value">
<input type="text" maxlength="30" placeholder="张三" class="van-field__control">
<!---->
<!---->
<div class="van-field__body">
<input type="text" maxlength="30" placeholder="张三" class="van-field__control">
<!---->
<!---->
<!---->
</div>
<!---->
</div>
<!---->
@@ -66,9 +69,12 @@ exports[`renders demo correctly 1`] = `
<!---->
</div>
<div class="van-cell__value">
<input type="tel" placeholder="手机或固定电话" class="van-field__control">
<!---->
<!---->
<div class="van-field__body">
<input type="tel" placeholder="手机或固定电话" class="van-field__control">
<!---->
<!---->
<!---->
</div>
<!---->
</div>
<!---->