[new feature] Field: add click-left-icon event (#2605)

This commit is contained in:
neverland
2019-01-24 22:32:47 +08:00
committed by GitHub
parent 3e27b93351
commit 368cb51dba
8 changed files with 71 additions and 35 deletions

View File

@@ -16,9 +16,9 @@
:label="$t('username')"
:placeholder="$t('usernamePlaceholder')"
clearable
icon="question-o"
right-icon="question-o"
required
@click-icon="$toast('question')"
@click-right-icon="$toast('question')"
/>
<van-field
@@ -151,7 +151,7 @@ export default {
.demo-field {
padding-bottom: 30px;
.van-field__icon .van-icon {
.van-field__right-icon .van-icon {
color: @blue;
}
}