[bugfix] Field: input align not work (#789)

This commit is contained in:
neverland 2018-10-19 14:11:17 +08:00 committed by GitHub
parent 345edd9df7
commit a0a2c3120f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ VantComponent({
'van-field--error': data.error, 'van-field--error': data.error,
'van-field__textarea': data.type === 'textarea', 'van-field__textarea': data.type === 'textarea',
'van-field__input--disabled': data.disabled, 'van-field__input--disabled': data.disabled,
[`van-field--${data.inputAlign}`]: data.inputAlign [`van-field__input--${data.inputAlign}`]: data.inputAlign
}); });
} }
}, },

View File

@ -20,7 +20,7 @@
maxlength="{{ maxlength }}" maxlength="{{ maxlength }}"
auto-height="{{ autosize }}" auto-height="{{ autosize }}"
placeholder="{{ placeholder }}" placeholder="{{ placeholder }}"
placeholder-style="{{ placeholderStyle }} " placeholder-style="{{ placeholderStyle }}"
placeholder-class="{{ error ? 'van-field--error' : '' }}" placeholder-class="{{ error ? 'van-field--error' : '' }}"
cursor-spacing="{{ cursorSpacing }}" cursor-spacing="{{ cursorSpacing }}"
bindinput="onInput" bindinput="onInput"
@ -37,7 +37,7 @@
disabled="{{ disabled || readonly }}" disabled="{{ disabled || readonly }}"
maxlength="{{ maxlength }}" maxlength="{{ maxlength }}"
placeholder="{{ placeholder }}" placeholder="{{ placeholder }}"
placeholder-style="{{ placeholderStyle }} " placeholder-style="{{ placeholderStyle }}"
placeholder-class="{{ error ? 'van-field--error' : '' }}" placeholder-class="{{ error ? 'van-field--error' : '' }}"
confirm-type="{{ confirmType }}" confirm-type="{{ confirmType }}"
cursor-spacing="{{ cursorSpacing }}" cursor-spacing="{{ cursorSpacing }}"