border field

This commit is contained in:
cookfront
2017-03-14 15:24:09 +08:00
parent b02ebc90d9
commit 93b2267a50
5 changed files with 42 additions and 4 deletions

View File

@@ -6,7 +6,8 @@
'zan-field--hastextarea': type === 'textarea',
'zan-field--nolabel': !label,
'zan-field--disabled': disabled,
'zan-field--error': error
'zan-field--error': error,
'zan-field--border': border
}">
<textarea
v-if="type === 'textarea'"
@@ -51,7 +52,8 @@ export default {
disabled: Boolean,
error: Boolean,
readonly: Boolean,
maxlength: [String, Number]
maxlength: [String, Number],
border: Boolean
},
data() {