[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 }}"
focus="{{ focus }}"
value="{{ value }}"
disabled="{{ disabled }}"
readonly="{{ readonly }}"
disabled="{{ disabled || readonly }}"
maxlength="{{ maxlength }}"
auto-height="{{ autosize }}"
placeholder="{{ placeholder }}"
@ -35,8 +34,7 @@
type="{{ type }}"
focus="{{ focus }}"
value="{{ value }}"
disabled="{{ disabled }}"
readonly="{{ readonly }}"
disabled="{{ disabled || readonly }}"
maxlength="{{ maxlength }}"
placeholder="{{ placeholder }}"
placeholder-style="{{ placeholderStyle }} "