address multiline as option in householdrenderbox

This commit is contained in:
2021-08-31 11:06:44 +02:00
parent c0d2454473
commit 3fa4f1b28b
3 changed files with 31 additions and 19 deletions

View File

@@ -70,11 +70,12 @@ export default {
}
},
computed: {
component(){
return this.isMultiline == true ? "div" : "span";
component() {
return this.isMultiline === true ? "div" : "span";
},
multiline(){
return this.isMultiline == true ? "multiline" : "";
multiline() {
console.log(this.isMultiline, typeof this.isMultiline);
return this.isMultiline === true ? "multiline" : "";
}
}
};