[bugfix] Field: readonly not work (#679)

This commit is contained in:
neverland 2018-09-29 15:56:00 +08:00 committed by GitHub
parent ee2aacf173
commit b4499b9a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,7 @@
class="{{ inputClass }}" class="{{ inputClass }}"
focus="{{ focus }}" focus="{{ focus }}"
value="{{ value }}" value="{{ value }}"
disabled="{{ disabled }}" disabled="{{ disabled || readonly }}"
readonly="{{ readonly }}"
maxlength="{{ maxlength }}" maxlength="{{ maxlength }}"
auto-height="{{ autosize }}" auto-height="{{ autosize }}"
placeholder="{{ placeholder }}" placeholder="{{ placeholder }}"
@ -35,8 +34,7 @@
type="{{ type }}" type="{{ type }}"
focus="{{ focus }}" focus="{{ focus }}"
value="{{ value }}" value="{{ value }}"
disabled="{{ disabled }}" disabled="{{ disabled || readonly }}"
readonly="{{ readonly }}"
maxlength="{{ maxlength }}" maxlength="{{ maxlength }}"
placeholder="{{ placeholder }}" placeholder="{{ placeholder }}"
placeholder-style="{{ placeholderStyle }} " placeholder-style="{{ placeholderStyle }} "