@tarojs/plugin-platform-harmony-ets 4.0.0-beta.23 → 4.0.0-beta.24

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/dist/runtime.js CHANGED
@@ -4043,7 +4043,7 @@ class IntersectionObserver {
4043
4043
  // @ts-ignore
4044
4044
  (_a = n._nodeInfo) === null || _a === void 0 ? void 0 : _a.thresholds = thresholds;
4045
4045
  setNodeEventCallbackAndTriggerComponentUpdate(n, VISIBLE_CHANGE_EVENT_NAME, (isVisible, currentRatio) => {
4046
- callback(this.handleResult(isVisible, currentRatio));
4046
+ callback(this.handleResult(isVisible, currentRatio, n));
4047
4047
  });
4048
4048
  });
4049
4049
  }
@@ -4051,7 +4051,7 @@ class IntersectionObserver {
4051
4051
  // @ts-ignore
4052
4052
  (_a = node._nodeInfo) === null || _a === void 0 ? void 0 : _a.thresholds = thresholds;
4053
4053
  setNodeEventCallbackAndTriggerComponentUpdate(node, VISIBLE_CHANGE_EVENT_NAME, (isVisible, currentRatio) => {
4054
- callback(this.handleResult(isVisible, currentRatio));
4054
+ callback(this.handleResult(isVisible, currentRatio, node));
4055
4055
  });
4056
4056
  }
4057
4057
  }
@@ -4070,8 +4070,10 @@ class IntersectionObserver {
4070
4070
  return this;
4071
4071
  }
4072
4072
  // @ts-ignore
4073
- handleResult(isVisible, currentRatio) {
4073
+ handleResult(isVisible, currentRatio, node) {
4074
4074
  const result = {
4075
+ id: node.id,
4076
+ dataset: node.dataset,
4075
4077
  intersectionRatio: currentRatio,
4076
4078
  // TODO 未做,等待能拿到element的info信息
4077
4079
  boundingClientRect: {