mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
support using object variables in t-esc
This commit is contained in:
@@ -99,6 +99,20 @@ exports[`attributes format value 1`] = `
|
||||
}"
|
||||
`;
|
||||
|
||||
exports[`attributes from object variables set previously 1`] = `
|
||||
"function anonymous(context,extra
|
||||
) {
|
||||
let h = this.utils.h;
|
||||
let c1 = [], p1 = {key:1};
|
||||
let vn1 = h('div', p1, c1);
|
||||
let _2 = {a:'b'}.a;
|
||||
let c3 = [], p3 = {key:3,attrs:{class: _2}};
|
||||
let vn3 = h('span', p3, c3);
|
||||
c1.push(vn3);
|
||||
return vn1;
|
||||
}"
|
||||
`;
|
||||
|
||||
exports[`attributes from variables set previously 1`] = `
|
||||
"function anonymous(context,extra
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user