add support for ES6-like syntax for props

This commit is contained in:
Géry Debongnie
2019-03-14 15:53:31 +01:00
parent d4928858de
commit 46c8d5a4ee
3 changed files with 23 additions and 3 deletions
+3
View File
@@ -844,6 +844,9 @@ const widgetDirective: Directive = {
.split(",")
.map(p => {
let [key, val] = p.split(":");
if (!val) {
val = key;
}
return `${key}: ${qweb._formatExpression(val)}`;
})
.join(",");