@alexgyver/component 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component.js +1 -0
- package/package.json +1 -1
package/Component.js
CHANGED
|
@@ -96,6 +96,7 @@ export class Component {
|
|
|
96
96
|
case 'child': addChild(val); break;
|
|
97
97
|
case 'children_r': el.replaceChildren();
|
|
98
98
|
case 'children': for (const obj of val) addChild(obj); break;
|
|
99
|
+
case 'onrender': waitRender(el, val); break;
|
|
99
100
|
case 'style':
|
|
100
101
|
if (typeof val === 'string') el.style.cssText += (val + ';');
|
|
101
102
|
else for (let st in val) el.style[st] = val[st];
|