@lvce-editor/renderer-process 30.64.10 → 30.64.11

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.
@@ -3487,18 +3487,20 @@ const render$2 = (element, eventMap, newEventMap) => {
3487
3487
 
3488
3488
  const renderInternal = ($Parent, elements, eventMap, newEventMap, renderElement = render$2) => {
3489
3489
  const max = elements.length - 1;
3490
- let stack = [];
3490
+ const stack = [];
3491
3491
  for (let i = max; i >= 0; i--) {
3492
3492
  const element = elements[i];
3493
3493
  const $Element = renderElement(element, eventMap, newEventMap);
3494
3494
  if (element.childCount > 0) {
3495
- // @ts-expect-error
3496
- $Element.append(...stack.slice(0, element.childCount));
3497
- stack = stack.slice(element.childCount);
3495
+ for (let child = 0; child < element.childCount; child++) {
3496
+ $Element.append(stack.pop());
3497
+ }
3498
3498
  }
3499
- stack.unshift($Element);
3499
+ stack.push($Element);
3500
+ }
3501
+ while (stack.length > 0) {
3502
+ $Parent.append(stack.pop());
3500
3503
  }
3501
- $Parent.append(...stack);
3502
3504
  };
3503
3505
 
3504
3506
  const renderInto$1 = ($Parent, dom, eventMap = {}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.64.10",
3
+ "version": "30.64.11",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"