mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] update owl to v2.0.4
This commit is contained in:
@@ -4018,7 +4018,15 @@
|
|||||||
const fullExpression = `${bExprId}[${exprId}]`;
|
const fullExpression = `${bExprId}[${exprId}]`;
|
||||||
let idx;
|
let idx;
|
||||||
if (specialInitTargetAttr) {
|
if (specialInitTargetAttr) {
|
||||||
idx = block.insertData(`${fullExpression} === '${attrs[targetAttr]}'`, "attr");
|
let targetExpr = targetAttr in attrs && `'${attrs[targetAttr]}'`;
|
||||||
|
if (!targetExpr && ast.attrs) {
|
||||||
|
// look at the dynamic attribute counterpart
|
||||||
|
const dynamicTgExpr = ast.attrs[`t-att-${targetAttr}`];
|
||||||
|
if (dynamicTgExpr) {
|
||||||
|
targetExpr = compileExpr(dynamicTgExpr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
idx = block.insertData(`${fullExpression} === ${targetExpr}`, "attr");
|
||||||
attrs[`block-attribute-${idx}`] = specialInitTargetAttr;
|
attrs[`block-attribute-${idx}`] = specialInitTargetAttr;
|
||||||
}
|
}
|
||||||
else if (hasDynamicChildren) {
|
else if (hasDynamicChildren) {
|
||||||
@@ -5556,12 +5564,16 @@
|
|||||||
This is not suitable for production use.
|
This is not suitable for production use.
|
||||||
See https://github.com/odoo/owl/blob/${hash}/doc/reference/app.md#configuration for more information.`;
|
See https://github.com/odoo/owl/blob/${hash}/doc/reference/app.md#configuration for more information.`;
|
||||||
};
|
};
|
||||||
|
window.__OWL_DEVTOOLS__ || (window.__OWL_DEVTOOLS__ = {
|
||||||
|
apps: new Set(),
|
||||||
|
});
|
||||||
class App extends TemplateSet {
|
class App extends TemplateSet {
|
||||||
constructor(Root, config = {}) {
|
constructor(Root, config = {}) {
|
||||||
super(config);
|
super(config);
|
||||||
this.scheduler = new Scheduler();
|
this.scheduler = new Scheduler();
|
||||||
this.root = null;
|
this.root = null;
|
||||||
this.Root = Root;
|
this.Root = Root;
|
||||||
|
window.__OWL_DEVTOOLS__.apps.add(this);
|
||||||
if (config.test) {
|
if (config.test) {
|
||||||
this.dev = true;
|
this.dev = true;
|
||||||
}
|
}
|
||||||
@@ -5618,6 +5630,7 @@ See https://github.com/odoo/owl/blob/${hash}/doc/reference/app.md#configuration
|
|||||||
this.scheduler.flush();
|
this.scheduler.flush();
|
||||||
this.root.destroy();
|
this.root.destroy();
|
||||||
}
|
}
|
||||||
|
window.__OWL_DEVTOOLS__.apps.delete(this);
|
||||||
}
|
}
|
||||||
createComponent(name, isStatic, hasSlotsProp, hasDynamicPropList, hasNoProp) {
|
createComponent(name, isStatic, hasSlotsProp, hasDynamicPropList, hasNoProp) {
|
||||||
const isDynamic = !isStatic;
|
const isDynamic = !isStatic;
|
||||||
@@ -5858,9 +5871,9 @@ See https://github.com/odoo/owl/blob/${hash}/doc/reference/app.md#configuration
|
|||||||
Object.defineProperty(exports, '__esModule', { value: true });
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
|
||||||
|
|
||||||
__info__.version = '2.0.3';
|
__info__.version = '2.0.4';
|
||||||
__info__.date = '2023-01-12T15:29:35.113Z';
|
__info__.date = '2023-01-23T11:21:36.696Z';
|
||||||
__info__.hash = '316eb06';
|
__info__.hash = 'c30678f';
|
||||||
__info__.url = 'https://github.com/odoo/owl';
|
__info__.url = 'https://github.com/odoo/owl';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user