@tarojs/runtime 4.0.8-alpha.1 → 4.0.8-alpha.2

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/index.d.ts CHANGED
@@ -29,6 +29,6 @@ export { nextTick } from "./next-tick.js";
29
29
  export { options } from "./options.js";
30
30
  export * from "./perf.js";
31
31
  export * from "./utils/index.js";
32
- export * from "./instance-4007cff2.js";
32
+ export * from "./instance-530729bd.js";
33
33
  export * from "./index-26658829.js";
34
34
  export * from "./polyfill/index.js";
@@ -1193,6 +1193,10 @@ let componentsAlias$1;
1193
1193
  function getComponentsAlias() {
1194
1194
  if (!componentsAlias$1) {
1195
1195
  componentsAlias$1 = getComponentsAlias$1(internalComponents);
1196
+ // 京东小程序transform模式, 把mapping传入基础库
1197
+ if (process.env.JD_RENDER_TYPE === 'transform') {
1198
+ jd && jd.setMapping && jd.setMapping(componentsAlias$1);
1199
+ }
1196
1200
  }
1197
1201
  return componentsAlias$1;
1198
1202
  }
@@ -1342,7 +1346,7 @@ function hydrate(node) {
1342
1346
  data["nn" /* Shortcuts.NodeName */] = PURE_VIEW;
1343
1347
  }
1344
1348
  }
1345
- if (nodeName === VIEW && node.isOnlyClickBinded()) {
1349
+ if (nodeName === VIEW && node.isOnlyClickBinded() && !isHasExtractProp(node)) {
1346
1350
  data["nn" /* Shortcuts.NodeName */] = CLICK_VIEW;
1347
1351
  }
1348
1352
  }
@@ -2280,7 +2284,7 @@ class TaroElement extends TaroNode {
2280
2284
  // catchMove = false: view or click-view or static-view
2281
2285
  this.enqueueUpdate({
2282
2286
  path: `${_path}.${"nn" /* Shortcuts.NodeName */}`,
2283
- value: value ? catchViewAlias : (this.isOnlyClickBinded() ? clickViewAlias : (this.isAnyEventBinded() ? viewAlias : staticViewAlias))
2287
+ value: value ? catchViewAlias : (this.isOnlyClickBinded() && !isHasExtractProp(this) ? clickViewAlias : (this.isAnyEventBinded() ? viewAlias : staticViewAlias))
2284
2288
  });
2285
2289
  }
2286
2290
  else if (isPureView && isHasExtractProp(this)) {
@@ -2340,7 +2344,7 @@ class TaroElement extends TaroNode {
2340
2344
  // catch-view => view or click-view or static-view or pure-view
2341
2345
  this.enqueueUpdate({
2342
2346
  path: `${_path}.${"nn" /* Shortcuts.NodeName */}`,
2343
- value: this.isOnlyClickBinded() ? clickViewAlias : (this.isAnyEventBinded() ? viewAlias : (isHasExtractProp(this) ? staticViewAlias : pureViewAlias))
2347
+ value: this.isOnlyClickBinded() && !isHasExtractProp(this) ? clickViewAlias : (this.isAnyEventBinded() ? viewAlias : (isHasExtractProp(this) ? staticViewAlias : pureViewAlias))
2344
2348
  });
2345
2349
  }
2346
2350
  else if (isStaticView && !isHasExtractProp(this)) {