mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
add support for ES6-like syntax for props
This commit is contained in:
@@ -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(",");
|
||||
|
||||
Reference in New Issue
Block a user