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
+4 -2
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() {
-1
View File
@@ -44,7 +44,6 @@ export default {
currentValue: {
get() {
console.log(this.value);
return this.isGroup && this.parentGroup ? this.parentGroup.value : this.value;
},
+14
View File
@@ -36,6 +36,20 @@
}
}
@m border {
.zan-field__control {
padding-left: 10px;
}
&::after {
@mixin border-retina (top, right, bottom, left);
}
&:last-child::after {
@mixin border-retina (bottom);
}
}
.zan-cell__title,
.zan-cell__value {
float: none;