[Doc] Field: add left-icon demo (#1177)

This commit is contained in:
neverland 2018-05-28 17:59:08 +08:00 committed by GitHub
parent 0a6afa2545
commit 155930192b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -29,7 +29,12 @@
<demo-block :title="$t('title3')">
<van-cell-group>
<van-field :value="$t('inputDisabled')" :label="$t('username')" disabled />
<van-field
:value="$t('inputDisabled')"
:label="$t('username')"
left-icon="contact"
disabled
/>
</van-cell-group>
</demo-block>

View File

@ -49,6 +49,7 @@ Use `type` prop to custom diffrent type fields.
<van-field
value="Disabled"
label="Username"
left-icon="contact"
disabled
/>
</van-cell-group>

View File

@ -54,7 +54,9 @@ exports[`renders demo correctly 1`] = `
<div>
<div class="van-cell-group van-hairline--top-bottom">
<div disabled="disabled" class="van-cell van-hairline van-field">
<!---->
<i class="van-icon van-icon-contact van-cell__left-icon" style="color:undefined;">
<!---->
</i>
<div class="van-cell__title"><span>用户名</span>
<!---->
</div>

View File

@ -51,6 +51,7 @@ Vue.use(Field);
<van-field
value="输入框已禁用"
label="用户名"
left-icon="contact"
disabled
/>
</van-cell-group>