border field
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -44,7 +44,6 @@ export default {
|
||||
|
||||
currentValue: {
|
||||
get() {
|
||||
console.log(this.value);
|
||||
return this.isGroup && this.parentGroup ? this.parentGroup.value : this.value;
|
||||
},
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user