@tarojs/runtime 3.7.0-beta.3 → 3.7.0-beta.4
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.cjs.d.ts +3 -2
- package/dist/runtime.cjs.js +41 -12
- package/dist/runtime.esm.d.ts +3 -2
- package/dist/runtime.esm.js +31 -13
- package/dist/runtime.esm.js.map +1 -1
- package/dist/runtime.h5.d.ts +3 -2
- package/dist/runtime.h5.js +31 -12
- package/package.json +4 -4
package/dist/runtime.cjs.d.ts
CHANGED
|
@@ -431,7 +431,7 @@ declare const nav: any;
|
|
|
431
431
|
declare let now: () => number;
|
|
432
432
|
// https://gist.github.com/paulirish/1579671
|
|
433
433
|
// https://gist.github.com/jalbam/5fe05443270fa6d8136238ec72accbc0
|
|
434
|
-
declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.
|
|
434
|
+
declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timer);
|
|
435
435
|
declare const _caf: typeof cancelAnimationFrame;
|
|
436
436
|
declare class URLSearchParams {
|
|
437
437
|
#private;
|
|
@@ -776,5 +776,6 @@ declare function hydrate(node: TaroElement | TaroText): MiniData;
|
|
|
776
776
|
declare const nextTick: (cb: Func, ctx?: Record<string, any>) => void;
|
|
777
777
|
declare const options: Options;
|
|
778
778
|
declare const incrementId: () => () => string;
|
|
779
|
+
declare function isHasExtractProp(el: TaroElement): boolean;
|
|
779
780
|
export { hooks } from '@tarojs/shared';
|
|
780
|
-
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, env, PROPERTY_THRESHOLD, TARO_RUNTIME, HOOKS_APP_ID, SET_DATA, PAGE_INIT, ROOT_STR, HTML, HEAD, BODY, APP, CONTAINER, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, ID, UID, CLASS, STYLE, FOCUS, VIEW, STATIC_VIEW, PURE_VIEW, PROPS, DATASET, OBJECT, VALUE, INPUT, CHANGE, CUSTOM_WRAPPER, TARGET, CURRENT_TARGET, TYPE, CONFIRM, TIME_STAMP, KEY_CODE, TOUCHMOVE, DATE, SET_TIMEOUT, CATCHMOVE, CATCH_VIEW, COMMENT, ON_LOAD, ON_READY, ON_SHOW, ON_HIDE, OPTIONS, EXTERNAL_CLASSES, EVENT_CALLBACK_RESULT, BEHAVIORS, A, CONTEXT_ACTIONS, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options$0 as Options, Func, Ctx };
|
|
781
|
+
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, env, PROPERTY_THRESHOLD, TARO_RUNTIME, HOOKS_APP_ID, SET_DATA, PAGE_INIT, ROOT_STR, HTML, HEAD, BODY, APP, CONTAINER, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, ID, UID, CLASS, STYLE, FOCUS, VIEW, STATIC_VIEW, PURE_VIEW, PROPS, DATASET, OBJECT, VALUE, INPUT, CHANGE, CUSTOM_WRAPPER, TARGET, CURRENT_TARGET, TYPE, CONFIRM, TIME_STAMP, KEY_CODE, TOUCHMOVE, DATE, SET_TIMEOUT, CATCHMOVE, CATCH_VIEW, COMMENT, ON_LOAD, ON_READY, ON_SHOW, ON_HIDE, OPTIONS, EXTERNAL_CLASSES, EVENT_CALLBACK_RESULT, BEHAVIORS, A, CONTEXT_ACTIONS, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, isHasExtractProp, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options$0 as Options, Func, Ctx };
|
package/dist/runtime.cjs.js
CHANGED
|
@@ -176,7 +176,7 @@ var MutationObserver = function MutationObserver(callback) {
|
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
178
178
|
if (process.env.NODE_ENV !== 'production') {
|
|
179
|
-
console.warn('[Taro Warning] 若要使用 MutationObserver,请在 Taro 编译配置中设置 \'mini.enableMutationObserver: true\'');
|
|
179
|
+
console.warn('[Taro Warning] 若要使用 MutationObserver,请在 Taro 编译配置中设置 \'mini.runtime.enableMutationObserver: true\'');
|
|
180
180
|
}
|
|
181
181
|
this.core = {
|
|
182
182
|
observe: shared.noop,
|
|
@@ -253,15 +253,15 @@ function isHasExtractProp(el) {
|
|
|
253
253
|
*/
|
|
254
254
|
function isParentBinded(node, type) {
|
|
255
255
|
var _a;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
while ((node = (node === null || node === void 0 ? void 0 : node.parentElement) || null)) {
|
|
257
|
+
if (!node || node.nodeName === ROOT_STR || node.nodeName === 'root-portal') {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
else if ((_a = node.__handlers[type]) === null || _a === void 0 ? void 0 : _a.length) {
|
|
261
|
+
return true;
|
|
261
262
|
}
|
|
262
|
-
node = node.parentElement;
|
|
263
263
|
}
|
|
264
|
-
return
|
|
264
|
+
return false;
|
|
265
265
|
}
|
|
266
266
|
function shortcutAttr(key) {
|
|
267
267
|
switch (key) {
|
|
@@ -488,7 +488,7 @@ function hydrate(node) {
|
|
|
488
488
|
if (cssText !== '' && nodeName !== 'swiper-item') {
|
|
489
489
|
data["st" /* Shortcuts.Style */] = cssText;
|
|
490
490
|
}
|
|
491
|
-
shared.hooks.call('modifyHydrateData', data);
|
|
491
|
+
shared.hooks.call('modifyHydrateData', data, node);
|
|
492
492
|
var nn = data["nn" /* Shortcuts.NodeName */];
|
|
493
493
|
var componentAlias = componentsAlias[nn];
|
|
494
494
|
if (componentAlias) {
|
|
@@ -500,7 +500,8 @@ function hydrate(node) {
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
|
|
503
|
+
var resData = shared.hooks.call('transferHydrateData', data, node, componentAlias);
|
|
504
|
+
return resData || data;
|
|
504
505
|
}
|
|
505
506
|
|
|
506
507
|
var TaroEventTarget = function TaroEventTarget() {
|
|
@@ -1522,6 +1523,7 @@ var TaroElement = /*@__PURE__*/(function (TaroNode) {
|
|
|
1522
1523
|
sideEffect = false;
|
|
1523
1524
|
delete options.sideEffect;
|
|
1524
1525
|
}
|
|
1526
|
+
shared.hooks.call('modifyAddEventListener', this, sideEffect, getComponentsAlias);
|
|
1525
1527
|
if (sideEffect !== false && !this.isAnyEventBinded() && SPECIAL_NODES.indexOf(name) > -1) {
|
|
1526
1528
|
var componentsAlias = getComponentsAlias();
|
|
1527
1529
|
var alias = componentsAlias[name]._num;
|
|
@@ -1538,6 +1540,7 @@ var TaroElement = /*@__PURE__*/(function (TaroNode) {
|
|
|
1538
1540
|
TaroNode.prototype.removeEventListener.call(this, type, handler);
|
|
1539
1541
|
var name = this.nodeName;
|
|
1540
1542
|
var SPECIAL_NODES = shared.hooks.call('getSpecialNodes');
|
|
1543
|
+
shared.hooks.call('modifyRemoveEventListener', this, sideEffect, getComponentsAlias);
|
|
1541
1544
|
if (sideEffect !== false && !this.isAnyEventBinded() && SPECIAL_NODES.indexOf(name) > -1) {
|
|
1542
1545
|
var componentsAlias = getComponentsAlias();
|
|
1543
1546
|
var value = isHasExtractProp(this) ? ("static-" + name) : ("pure-" + name);
|
|
@@ -3401,6 +3404,27 @@ var AnchorElement = /*@__PURE__*/(function (TaroElement) {
|
|
|
3401
3404
|
return AnchorElement;
|
|
3402
3405
|
}(TaroElement));
|
|
3403
3406
|
|
|
3407
|
+
var TransferElement = /*@__PURE__*/(function (TaroElement) {
|
|
3408
|
+
function TransferElement(dataName) {
|
|
3409
|
+
TaroElement.call(this);
|
|
3410
|
+
this.dataName = dataName;
|
|
3411
|
+
this.isTransferElement = true;
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
if ( TaroElement ) TransferElement.__proto__ = TaroElement;
|
|
3415
|
+
TransferElement.prototype = Object.create( TaroElement && TaroElement.prototype );
|
|
3416
|
+
TransferElement.prototype.constructor = TransferElement;
|
|
3417
|
+
|
|
3418
|
+
var prototypeAccessors = { _path: { configurable: true } };
|
|
3419
|
+
prototypeAccessors._path.get = function () {
|
|
3420
|
+
return this.dataName;
|
|
3421
|
+
};
|
|
3422
|
+
|
|
3423
|
+
Object.defineProperties( TransferElement.prototype, prototypeAccessors );
|
|
3424
|
+
|
|
3425
|
+
return TransferElement;
|
|
3426
|
+
}(TaroElement));
|
|
3427
|
+
|
|
3404
3428
|
var TaroDocument = /*@__PURE__*/(function (TaroElement) {
|
|
3405
3429
|
function TaroDocument() {
|
|
3406
3430
|
TaroElement.call(this);
|
|
@@ -3427,6 +3451,10 @@ var TaroDocument = /*@__PURE__*/(function (TaroElement) {
|
|
|
3427
3451
|
case nodeName === A:
|
|
3428
3452
|
element = new AnchorElement();
|
|
3429
3453
|
break;
|
|
3454
|
+
case nodeName === 'page-meta':
|
|
3455
|
+
case nodeName === 'navigation-bar':
|
|
3456
|
+
element = new TransferElement(shared.toCamelCase(nodeName));
|
|
3457
|
+
break;
|
|
3430
3458
|
default:
|
|
3431
3459
|
element = new TaroElement();
|
|
3432
3460
|
break;
|
|
@@ -4423,7 +4451,7 @@ function createRecursiveComponentConfig(componentName) {
|
|
|
4423
4451
|
}
|
|
4424
4452
|
}, obj )
|
|
4425
4453
|
: shared.EMPTY_OBJ;
|
|
4426
|
-
return Object.assign({ properties: {
|
|
4454
|
+
return shared.hooks.call('modifyRecursiveComponentConfig', Object.assign({ properties: {
|
|
4427
4455
|
i: {
|
|
4428
4456
|
type: Object,
|
|
4429
4457
|
value: ( obj$1 = {}, obj$1["nn" /* Shortcuts.NodeName */] = shared.getComponentsAlias(shared.internalComponents)[VIEW]._num, obj$1 )
|
|
@@ -4437,7 +4465,7 @@ function createRecursiveComponentConfig(componentName) {
|
|
|
4437
4465
|
virtualHost: !isCustomWrapper
|
|
4438
4466
|
}, methods: {
|
|
4439
4467
|
eh: eventHandler
|
|
4440
|
-
} }, lifeCycles);
|
|
4468
|
+
} }, lifeCycles), { isCustomWrapper: isCustomWrapper });
|
|
4441
4469
|
}
|
|
4442
4470
|
|
|
4443
4471
|
var TIMEOUT = 100;
|
|
@@ -4574,6 +4602,7 @@ exports.history = history;
|
|
|
4574
4602
|
exports.hydrate = hydrate;
|
|
4575
4603
|
exports.incrementId = incrementId;
|
|
4576
4604
|
exports.injectPageInstance = injectPageInstance;
|
|
4605
|
+
exports.isHasExtractProp = isHasExtractProp;
|
|
4577
4606
|
exports.location = location;
|
|
4578
4607
|
exports.navigator = nav;
|
|
4579
4608
|
exports.nextTick = nextTick;
|
package/dist/runtime.esm.d.ts
CHANGED
|
@@ -431,7 +431,7 @@ declare const nav: any;
|
|
|
431
431
|
declare let now: () => number;
|
|
432
432
|
// https://gist.github.com/paulirish/1579671
|
|
433
433
|
// https://gist.github.com/jalbam/5fe05443270fa6d8136238ec72accbc0
|
|
434
|
-
declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.
|
|
434
|
+
declare const _raf: typeof requestAnimationFrame | ((callback: any) => NodeJS.Timer);
|
|
435
435
|
declare const _caf: typeof cancelAnimationFrame;
|
|
436
436
|
declare class URLSearchParams {
|
|
437
437
|
#private;
|
|
@@ -776,5 +776,6 @@ declare function hydrate(node: TaroElement | TaroText): MiniData;
|
|
|
776
776
|
declare const nextTick: (cb: Func, ctx?: Record<string, any>) => void;
|
|
777
777
|
declare const options: Options;
|
|
778
778
|
declare const incrementId: () => () => string;
|
|
779
|
+
declare function isHasExtractProp(el: TaroElement): boolean;
|
|
779
780
|
export { hooks } from '@tarojs/shared';
|
|
780
|
-
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, env, PROPERTY_THRESHOLD, TARO_RUNTIME, HOOKS_APP_ID, SET_DATA, PAGE_INIT, ROOT_STR, HTML, HEAD, BODY, APP, CONTAINER, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, ID, UID, CLASS, STYLE, FOCUS, VIEW, STATIC_VIEW, PURE_VIEW, PROPS, DATASET, OBJECT, VALUE, INPUT, CHANGE, CUSTOM_WRAPPER, TARGET, CURRENT_TARGET, TYPE, CONFIRM, TIME_STAMP, KEY_CODE, TOUCHMOVE, DATE, SET_TIMEOUT, CATCHMOVE, CATCH_VIEW, COMMENT, ON_LOAD, ON_READY, ON_SHOW, ON_HIDE, OPTIONS, EXTERNAL_CLASSES, EVENT_CALLBACK_RESULT, BEHAVIORS, A, CONTEXT_ACTIONS, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options$0 as Options, Func, Ctx };
|
|
781
|
+
export { document, getComputedStyle, History, Location, nav as navigator, _caf as cancelAnimationFrame, now, _raf as requestAnimationFrame, parseUrl, URL, URLSearchParams, history, location, window, TaroElement, createEvent, eventHandler, TaroEvent, FormElement, TaroNode, TaroRootElement, Style, SVGElement, TaroText, MutationObserver, env, PROPERTY_THRESHOLD, TARO_RUNTIME, HOOKS_APP_ID, SET_DATA, PAGE_INIT, ROOT_STR, HTML, HEAD, BODY, APP, CONTAINER, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, ID, UID, CLASS, STYLE, FOCUS, VIEW, STATIC_VIEW, PURE_VIEW, PROPS, DATASET, OBJECT, VALUE, INPUT, CHANGE, CUSTOM_WRAPPER, TARGET, CURRENT_TARGET, TYPE, CONFIRM, TIME_STAMP, KEY_CODE, TOUCHMOVE, DATE, SET_TIMEOUT, CATCHMOVE, CATCH_VIEW, COMMENT, ON_LOAD, ON_READY, ON_SHOW, ON_HIDE, OPTIONS, EXTERNAL_CLASSES, EVENT_CALLBACK_RESULT, BEHAVIORS, A, CONTEXT_ACTIONS, Current, getCurrentInstance, eventSource, addLeadingSlash, createComponentConfig, createPageConfig, createRecursiveComponentConfig, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, injectPageInstance, removePageInstance, safeExecute, stringify, EventsType, eventCenter, Events, hydrate, nextTick, options, incrementId, isHasExtractProp, Instance, VueAppInstance, VueInstance, PageProps, ReactPageComponent, ReactPageInstance, ReactAppInstance, PageLifeCycle, PageInstance, AppInstance, Attributes, EventOptions, MpEvent, EventListenerOptions, AddEventListenerOptions, EventHandler, MpInstance, MiniElementData, MiniData, HydratedData, UpdatePayloadValue, DataTree, UpdatePayload, Options$0 as Options, Func, Ctx };
|
package/dist/runtime.esm.js
CHANGED
|
@@ -174,7 +174,7 @@ class MutationObserver {
|
|
|
174
174
|
}
|
|
175
175
|
else {
|
|
176
176
|
if (process.env.NODE_ENV !== 'production') {
|
|
177
|
-
console.warn('[Taro Warning] 若要使用 MutationObserver,请在 Taro 编译配置中设置 \'mini.enableMutationObserver: true\'');
|
|
177
|
+
console.warn('[Taro Warning] 若要使用 MutationObserver,请在 Taro 编译配置中设置 \'mini.runtime.enableMutationObserver: true\'');
|
|
178
178
|
}
|
|
179
179
|
this.core = {
|
|
180
180
|
observe: noop,
|
|
@@ -248,15 +248,15 @@ function isHasExtractProp(el) {
|
|
|
248
248
|
*/
|
|
249
249
|
function isParentBinded(node, type) {
|
|
250
250
|
var _a;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
251
|
+
while ((node = (node === null || node === void 0 ? void 0 : node.parentElement) || null)) {
|
|
252
|
+
if (!node || node.nodeName === ROOT_STR || node.nodeName === 'root-portal') {
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
else if ((_a = node.__handlers[type]) === null || _a === void 0 ? void 0 : _a.length) {
|
|
256
|
+
return true;
|
|
256
257
|
}
|
|
257
|
-
node = node.parentElement;
|
|
258
258
|
}
|
|
259
|
-
return
|
|
259
|
+
return false;
|
|
260
260
|
}
|
|
261
261
|
function shortcutAttr(key) {
|
|
262
262
|
switch (key) {
|
|
@@ -467,7 +467,7 @@ function hydrate(node) {
|
|
|
467
467
|
if (cssText !== '' && nodeName !== 'swiper-item') {
|
|
468
468
|
data["st" /* Shortcuts.Style */] = cssText;
|
|
469
469
|
}
|
|
470
|
-
hooks.call('modifyHydrateData', data);
|
|
470
|
+
hooks.call('modifyHydrateData', data, node);
|
|
471
471
|
const nn = data["nn" /* Shortcuts.NodeName */];
|
|
472
472
|
const componentAlias = componentsAlias[nn];
|
|
473
473
|
if (componentAlias) {
|
|
@@ -479,7 +479,8 @@ function hydrate(node) {
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
|
|
482
|
+
const resData = hooks.call('transferHydrateData', data, node, componentAlias);
|
|
483
|
+
return resData || data;
|
|
483
484
|
}
|
|
484
485
|
|
|
485
486
|
class TaroEventTarget {
|
|
@@ -1490,6 +1491,7 @@ class TaroElement extends TaroNode {
|
|
|
1490
1491
|
sideEffect = false;
|
|
1491
1492
|
delete options.sideEffect;
|
|
1492
1493
|
}
|
|
1494
|
+
hooks.call('modifyAddEventListener', this, sideEffect, getComponentsAlias);
|
|
1493
1495
|
if (sideEffect !== false && !this.isAnyEventBinded() && SPECIAL_NODES.indexOf(name) > -1) {
|
|
1494
1496
|
const componentsAlias = getComponentsAlias();
|
|
1495
1497
|
const alias = componentsAlias[name]._num;
|
|
@@ -1504,6 +1506,7 @@ class TaroElement extends TaroNode {
|
|
|
1504
1506
|
super.removeEventListener(type, handler);
|
|
1505
1507
|
const name = this.nodeName;
|
|
1506
1508
|
const SPECIAL_NODES = hooks.call('getSpecialNodes');
|
|
1509
|
+
hooks.call('modifyRemoveEventListener', this, sideEffect, getComponentsAlias);
|
|
1507
1510
|
if (sideEffect !== false && !this.isAnyEventBinded() && SPECIAL_NODES.indexOf(name) > -1) {
|
|
1508
1511
|
const componentsAlias = getComponentsAlias();
|
|
1509
1512
|
const value = isHasExtractProp(this) ? `static-${name}` : `pure-${name}`;
|
|
@@ -3247,6 +3250,17 @@ class AnchorElement extends TaroElement {
|
|
|
3247
3250
|
}
|
|
3248
3251
|
}
|
|
3249
3252
|
|
|
3253
|
+
class TransferElement extends TaroElement {
|
|
3254
|
+
constructor(dataName) {
|
|
3255
|
+
super();
|
|
3256
|
+
this.dataName = dataName;
|
|
3257
|
+
this.isTransferElement = true;
|
|
3258
|
+
}
|
|
3259
|
+
get _path() {
|
|
3260
|
+
return this.dataName;
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3250
3264
|
class TaroDocument extends TaroElement {
|
|
3251
3265
|
constructor() {
|
|
3252
3266
|
super();
|
|
@@ -3267,6 +3281,10 @@ class TaroDocument extends TaroElement {
|
|
|
3267
3281
|
case nodeName === A:
|
|
3268
3282
|
element = new AnchorElement();
|
|
3269
3283
|
break;
|
|
3284
|
+
case nodeName === 'page-meta':
|
|
3285
|
+
case nodeName === 'navigation-bar':
|
|
3286
|
+
element = new TransferElement(toCamelCase(nodeName));
|
|
3287
|
+
break;
|
|
3270
3288
|
default:
|
|
3271
3289
|
element = new TaroElement();
|
|
3272
3290
|
break;
|
|
@@ -4172,7 +4190,7 @@ function createRecursiveComponentConfig(componentName) {
|
|
|
4172
4190
|
}
|
|
4173
4191
|
}
|
|
4174
4192
|
: EMPTY_OBJ;
|
|
4175
|
-
return Object.assign({ properties: {
|
|
4193
|
+
return hooks.call('modifyRecursiveComponentConfig', Object.assign({ properties: {
|
|
4176
4194
|
i: {
|
|
4177
4195
|
type: Object,
|
|
4178
4196
|
value: {
|
|
@@ -4188,7 +4206,7 @@ function createRecursiveComponentConfig(componentName) {
|
|
|
4188
4206
|
virtualHost: !isCustomWrapper
|
|
4189
4207
|
}, methods: {
|
|
4190
4208
|
eh: eventHandler
|
|
4191
|
-
} }, lifeCycles);
|
|
4209
|
+
} }, lifeCycles), { isCustomWrapper });
|
|
4192
4210
|
}
|
|
4193
4211
|
|
|
4194
4212
|
const TIMEOUT = 100;
|
|
@@ -4233,5 +4251,5 @@ const nextTick = (cb, ctx) => {
|
|
|
4233
4251
|
next();
|
|
4234
4252
|
};
|
|
4235
4253
|
|
|
4236
|
-
export { A, APP, BEHAVIORS, BODY, CATCHMOVE, CATCH_VIEW, CHANGE, CLASS, COMMENT, CONFIRM, CONTAINER, CONTEXT_ACTIONS, CURRENT_TARGET, CUSTOM_WRAPPER, Current, DATASET, DATE, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, EVENT_CALLBACK_RESULT, EXTERNAL_CLASSES, FOCUS, FormElement, HEAD, HOOKS_APP_ID, HTML, History, ID, INPUT, KEY_CODE, Location, MutationObserver, OBJECT, ON_HIDE, ON_LOAD, ON_READY, ON_SHOW, OPTIONS, PAGE_INIT, PROPERTY_THRESHOLD, PROPS, PURE_VIEW, ROOT_STR, SET_DATA, SET_TIMEOUT, STATIC_VIEW, STYLE, SVGElement, Style, TARGET, TARO_RUNTIME, TIME_STAMP, TOUCHMOVE, TYPE, TaroElement, TaroEvent, TaroNode, TaroRootElement, TaroText, UID, URL, URLSearchParams, VALUE, VIEW, addLeadingSlash, _caf as cancelAnimationFrame, createComponentConfig, createEvent, createPageConfig, createRecursiveComponentConfig, document$1 as document, env, eventCenter, eventHandler, eventSource, getComputedStyle, getCurrentInstance, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, history, hydrate, incrementId, injectPageInstance, location, nav as navigator, nextTick, now, options, parseUrl, removePageInstance, _raf as requestAnimationFrame, safeExecute, stringify, window$1 as window };
|
|
4254
|
+
export { A, APP, BEHAVIORS, BODY, CATCHMOVE, CATCH_VIEW, CHANGE, CLASS, COMMENT, CONFIRM, CONTAINER, CONTEXT_ACTIONS, CURRENT_TARGET, CUSTOM_WRAPPER, Current, DATASET, DATE, DOCUMENT_ELEMENT_NAME, DOCUMENT_FRAGMENT, EVENT_CALLBACK_RESULT, EXTERNAL_CLASSES, FOCUS, FormElement, HEAD, HOOKS_APP_ID, HTML, History, ID, INPUT, KEY_CODE, Location, MutationObserver, OBJECT, ON_HIDE, ON_LOAD, ON_READY, ON_SHOW, OPTIONS, PAGE_INIT, PROPERTY_THRESHOLD, PROPS, PURE_VIEW, ROOT_STR, SET_DATA, SET_TIMEOUT, STATIC_VIEW, STYLE, SVGElement, Style, TARGET, TARO_RUNTIME, TIME_STAMP, TOUCHMOVE, TYPE, TaroElement, TaroEvent, TaroNode, TaroRootElement, TaroText, UID, URL, URLSearchParams, VALUE, VIEW, addLeadingSlash, _caf as cancelAnimationFrame, createComponentConfig, createEvent, createPageConfig, createRecursiveComponentConfig, document$1 as document, env, eventCenter, eventHandler, eventSource, getComputedStyle, getCurrentInstance, getOnHideEventKey, getOnReadyEventKey, getOnShowEventKey, getPageInstance, getPath, history, hydrate, incrementId, injectPageInstance, isHasExtractProp, location, nav as navigator, nextTick, now, options, parseUrl, removePageInstance, _raf as requestAnimationFrame, safeExecute, stringify, window$1 as window };
|
|
4237
4255
|
//# sourceMappingURL=runtime.esm.js.map
|