@tarojs/runtime 3.4.4 → 3.4.7

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.
@@ -1723,6 +1723,7 @@ let TaroNode = class TaroNode extends TaroEventTarget {
1723
1723
  * @textContent 目前只能置空子元素
1724
1724
  * @TODO 等待完整 innerHTML 实现
1725
1725
  */
1726
+ // eslint-disable-next-line accessor-pairs
1726
1727
  set textContent(text) {
1727
1728
  const document = this._getElement(ElementNames.Document)();
1728
1729
  const newText = document.createTextNode(text);
@@ -4534,6 +4535,8 @@ function createPageConfig(component, pageName, data, pageConfig) {
4534
4535
  },
4535
4536
  [ONUNLOAD]() {
4536
4537
  const $taroPath = this.$taroPath;
4538
+ // 触发onUnload生命周期
4539
+ safeExecute($taroPath, ONUNLOAD);
4537
4540
  unmounting = true;
4538
4541
  Current.app.unmount($taroPath, () => {
4539
4542
  unmounting = false;