wevu 6.17.1 → 6.17.3
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/dev/index.mjs +1 -1
- package/dist/dev/internal-runtime.mjs +1 -1
- package/dist/dev/{templateRef-i3T-mULF.mjs → templateRef-C7Lvegyw.mjs} +26 -45
- package/dist/dev/{templateRef-i3T-mULF.mjs.map → templateRef-C7Lvegyw.mjs.map} +1 -1
- package/dist/dev/vue-demi.mjs +1 -1
- package/dist/{index-DcoLBzsV.d.mts → index-HS9xxiUI.d.mts} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internal-runtime.d.mts +1 -1
- package/dist/internal-runtime.mjs +1 -1
- package/dist/templateRef-DOToQFfS.mjs +1 -0
- package/dist/vue-demi.d.mts +1 -1
- package/dist/vue-demi.mjs +1 -1
- package/package.json +5 -5
- package/dist/templateRef-D5DblGpS.mjs +0 -1
package/dist/dev/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { S as shallowReadonly, b as isReadonly, c as getCurrentSetupContext, d a
|
|
|
5
5
|
import { a as getDeepWatchStrategy, c as isShallowRef, i as watchSyncEffect, l as shallowRef, n as watchEffect, o as setDeepWatchStrategy, r as watchPostEffect, s as traverse, t as watch, u as triggerRef } from "./watch-B46crqgs.mjs";
|
|
6
6
|
import { n as toRefs, t as toRef } from "./toRefs-BVrN7XKZ.mjs";
|
|
7
7
|
import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, et as onUnload, g as injectGlobal, h as inject, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, q as onSaveExitState, t as useNativePageRouter, v as provideGlobal, z as onMoved } from "./router-D6H7HviN.mjs";
|
|
8
|
-
import { $ as version, A as registerPageLayoutBridge, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, F as unregisterRuntimeLayoutHosts, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, P as unregisterPageLayoutBridge, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, et as callUpdateHooks, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, j as registerRuntimeLayoutHosts, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-
|
|
8
|
+
import { $ as version, A as registerPageLayoutBridge, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, F as unregisterRuntimeLayoutHosts, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, P as unregisterPageLayoutBridge, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, et as callUpdateHooks, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, j as registerRuntimeLayoutHosts, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-C7Lvegyw.mjs";
|
|
9
9
|
import { n as normalizeStyle, r as resolvePropValue, t as normalizeClass } from "./template-DLHZbQ3E.mjs";
|
|
10
10
|
import { n as defineStore, r as createStore, t as storeToRefs } from "./store-7lzhCASj.mjs";
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as getCurrentSetupContext, d as setCurrentSetupContext, n as callHookList, r as callHookReturn, s as getCurrentInstance, u as setCurrentInstance } from "./base-ii6cqKIl.mjs";
|
|
2
2
|
import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, et as onUnload, g as injectGlobal, h as inject, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, q as onSaveExitState, t as useNativePageRouter, v as provideGlobal, z as onMoved } from "./router-D6H7HviN.mjs";
|
|
3
|
-
import { $ as version, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-
|
|
3
|
+
import { $ as version, B as mountRuntimeInstance, C as useElementIntersectionObserver, D as defineComponent, E as createWevuScopedSlotComponent, G as setPageLayout, H as teardownRuntimeInstance, I as useLayoutBridge, J as usePageLayout, K as syncRuntimePageLayoutState, L as useLayoutHosts, M as resolveLayoutBridge, N as resolveLayoutHost, O as createApp, Q as markNoSetData, R as waitForLayoutHost, S as useIntersectionObserver, T as createWevuComponent, U as runSetupFunction, V as setRuntimeSetDataVisibility, W as resolveRuntimePageLayoutName, X as setWevuDefaults, Y as resetWevuDefaults, Z as isNoSetData, _ as usePageScrollThrottle, a as useModel, at as onDeactivated, b as useNavigationBarMetrics, c as useSlots, ct as onServerPrefetch, d as useUpdatePerformanceListener, f as useBoundingClientRect, g as useAsyncPullDownRefresh, h as useSelectorQuery, i as useChangeModel, it as onBeforeUpdate, k as registerComponent, l as defineAppSetup, lt as onUnmounted, m as useSelectorFields, n as mergeModels, nt as onBeforeMount, o as useAttrs, ot as onErrorCaptured, p as useScrollOffset, q as syncRuntimePageLayoutStateFromRuntime, r as useBindModel, rt as onBeforeUnmount, s as useNativeInstance, st as onMounted, t as useTemplateRef, tt as onActivated, u as use, ut as onUpdated, v as getCurrentPageStackSnapshot, w as useDisposables, x as usePageStack, y as getNavigationBarMetrics, z as registerApp } from "./templateRef-C7Lvegyw.mjs";
|
|
4
4
|
|
|
5
5
|
export { callHookList, callHookReturn, createApp, createWevuComponent, createWevuScopedSlotComponent, defineAppSetup, defineComponent, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentSetupContext, getNavigationBarMetrics, hasInjectionContext, inject, injectGlobal, isNoSetData, markNoSetData, mergeModels, mountRuntimeInstance, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, registerApp, registerComponent, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost };
|
|
@@ -4,7 +4,7 @@ import { _ as getScopedSlotHostGlobalObject, c as getCurrentSetupContext, d as s
|
|
|
4
4
|
import { l as shallowRef, t as watch } from "./watch-B46crqgs.mjs";
|
|
5
5
|
import { C as releaseCurrentPageInstance, D as attachRuntimeProvideContext, E as attachRuntimeLayoutProvideContext, H as onPullDownRefresh, M as onAttached, N as onDetached, O as ensureRuntimeAppProvides, S as getCurrentPageInstance, T as runInPageScrollHook, V as onPageScroll, X as onShow, b as ensureMiniProgramGlobalPatched, et as onUnload, k as setRuntimeAppProvidedValue, w as resolvePageOptions, x as ensurePageShareMenus, y as bindCurrentPageInstance } from "./router-D6H7HviN.mjs";
|
|
6
6
|
import { WEVU_ATTRS_KEY, WEVU_EFFECT_SCOPE_KEY, WEVU_EXPOSED_KEY, WEVU_FUNCTION_PROP_PATHS_KEY, WEVU_HOOKS_KEY, WEVU_INLINE_HANDLER, WEVU_INLINE_MAP_KEY, WEVU_IS_APP_INSTANCE_KEY, WEVU_LAYOUT_BRIDGE_PAGE_KEYS, WEVU_LAYOUT_HOST_BRIDGE_KEY, WEVU_MODEL_HANDLER, WEVU_NATIVE_INSTANCE_KEY, WEVU_ON_BEFORE_UPDATE_HOOK, WEVU_ON_LOAD_CALLED_KEY, WEVU_ON_UPDATED_HOOK, WEVU_OWNER_HANDLER, WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_NONE, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY, WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY, WEVU_PARENT_INSTANCE_KEY, WEVU_PENDING_PROP_VALUES_KEY, WEVU_PROPS_ALIASES_KEY, WEVU_PROPS_DERIVED_KEYS_KEY, WEVU_PROPS_KEY, WEVU_PROP_KEYS_KEY, WEVU_PUBLIC_RUNTIME_KEY, WEVU_READY_CALLED_KEY, WEVU_RESERVED_METHOD_PREFIX, WEVU_ROUTE_DONE_CALLED_KEY, WEVU_ROUTE_DONE_IN_TICK_KEY, WEVU_RUNTIME_APP_KEY, WEVU_RUNTIME_KEY, WEVU_SCOPED_SLOT_CREATOR_KEY, WEVU_SCOPED_SLOT_OWNER_SEED_KEY, WEVU_SCOPED_SLOT_OWNER_STORE_KEY, WEVU_SETUP_CONTEXT_INSTANCE_KEY, WEVU_SETUP_STATE_KEY, WEVU_SLOT_NAMES_PROP, WEVU_SLOT_OWNER_ID_KEY, WEVU_SLOT_OWNER_ID_PROP, WEVU_SLOT_OWNER_KEY, WEVU_SLOT_OWNER_PROXY_KEY, WEVU_SLOT_PROPS_DATA_KEY, WEVU_SLOT_PROPS_KEY, WEVU_SLOT_SCOPE_KEY, WEVU_TEMPLATE_REFS_CALLBACKS_KEY, WEVU_TEMPLATE_REFS_KEY, WEVU_TEMPLATE_REFS_PENDING_KEY, WEVU_TEMPLATE_REF_MAP_KEY, WEVU_WATCH_STOPS_KEY } from "@weapp-core/constants";
|
|
7
|
-
import { resolveMiniProgramPageKeys } from "@weapp-core/shared";
|
|
7
|
+
import { createMiniProgramLayoutHostRegistry, normalizeMiniProgramLayoutHostKeys, resolveMiniProgramPageKeys } from "@weapp-core/shared";
|
|
8
8
|
import { wpi } from "@wevu/api";
|
|
9
9
|
|
|
10
10
|
//#region src/runtime/hooks/vue.ts
|
|
@@ -84,7 +84,7 @@ function callUpdateHooks(target, phase) {
|
|
|
84
84
|
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region package.json
|
|
87
|
-
var version$1 = "6.17.
|
|
87
|
+
var version$1 = "6.17.3";
|
|
88
88
|
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region src/version.ts
|
|
@@ -4331,14 +4331,11 @@ function createPropsSync(options) {
|
|
|
4331
4331
|
|
|
4332
4332
|
//#endregion
|
|
4333
4333
|
//#region src/runtime/layoutBridge.ts
|
|
4334
|
-
const
|
|
4334
|
+
const pageLayoutBridgeRegistry = createMiniProgramLayoutHostRegistry();
|
|
4335
4335
|
function resolveCurrentPageInstance() {
|
|
4336
4336
|
const pages = getCurrentMiniProgramPages();
|
|
4337
4337
|
return pages[pages.length - 1];
|
|
4338
4338
|
}
|
|
4339
|
-
function normalizeSelectors(selectors) {
|
|
4340
|
-
return Array.from(new Set(Array.isArray(selectors) ? selectors : [selectors])).filter((selector) => typeof selector === "string" && selector.length > 0);
|
|
4341
|
-
}
|
|
4342
4339
|
function resolvePageKeys(page) {
|
|
4343
4340
|
return resolveMiniProgramPageKeys(page);
|
|
4344
4341
|
}
|
|
@@ -4409,12 +4406,7 @@ function registerPageLayoutBridge(selectors, context) {
|
|
|
4409
4406
|
const page = resolvePageFromContext(bridgeContext);
|
|
4410
4407
|
const pageKeys = resolvePageKeys(page);
|
|
4411
4408
|
if (!bridgeContext || !page || pageKeys.length === 0) return false;
|
|
4412
|
-
|
|
4413
|
-
var _pageLayoutBridges$ge;
|
|
4414
|
-
const registry = (_pageLayoutBridges$ge = pageLayoutBridges.get(pageKey)) !== null && _pageLayoutBridges$ge !== void 0 ? _pageLayoutBridges$ge : /* @__PURE__ */ new Map();
|
|
4415
|
-
for (const selector of normalizeSelectors(selectors)) registry.set(selector, bridgeContext);
|
|
4416
|
-
pageLayoutBridges.set(pageKey, registry);
|
|
4417
|
-
}
|
|
4409
|
+
if (!pageLayoutBridgeRegistry.register(selectors, bridgeContext, pageKeys)) return false;
|
|
4418
4410
|
bridgeContext[WEVU_LAYOUT_BRIDGE_PAGE_KEYS] = pageKeys;
|
|
4419
4411
|
return true;
|
|
4420
4412
|
}
|
|
@@ -4427,16 +4419,7 @@ function unregisterPageLayoutBridge(selectors, context) {
|
|
|
4427
4419
|
const page = resolvePageFromContext(bridgeContext);
|
|
4428
4420
|
const pageKeys = (_bridgeContext$WEVU_L = bridgeContext === null || bridgeContext === void 0 ? void 0 : bridgeContext[WEVU_LAYOUT_BRIDGE_PAGE_KEYS]) !== null && _bridgeContext$WEVU_L !== void 0 ? _bridgeContext$WEVU_L : resolvePageKeys(page);
|
|
4429
4421
|
if (!bridgeContext || !Array.isArray(pageKeys) || pageKeys.length === 0) return false;
|
|
4430
|
-
|
|
4431
|
-
for (const pageKey of pageKeys) {
|
|
4432
|
-
const registry = pageLayoutBridges.get(pageKey);
|
|
4433
|
-
if (!registry) continue;
|
|
4434
|
-
for (const selector of normalizeSelectors(selectors)) if (registry.get(selector) === bridgeContext) {
|
|
4435
|
-
registry.delete(selector);
|
|
4436
|
-
removed = true;
|
|
4437
|
-
}
|
|
4438
|
-
if (registry.size === 0) pageLayoutBridges.delete(pageKey);
|
|
4439
|
-
}
|
|
4422
|
+
const removed = pageLayoutBridgeRegistry.unregister(selectors, bridgeContext, pageKeys);
|
|
4440
4423
|
delete bridgeContext[WEVU_LAYOUT_BRIDGE_PAGE_KEYS];
|
|
4441
4424
|
return removed;
|
|
4442
4425
|
}
|
|
@@ -4445,38 +4428,35 @@ function unregisterPageLayoutBridge(selectors, context) {
|
|
|
4445
4428
|
*/
|
|
4446
4429
|
function resolveLayoutBridge(selector, fallbackContext) {
|
|
4447
4430
|
var _resolveCurrentPageIn, _ref4;
|
|
4448
|
-
const
|
|
4449
|
-
|
|
4450
|
-
return (_pageLayoutBridges$ge2 = pageLayoutBridges.get(pageKey)) === null || _pageLayoutBridges$ge2 === void 0 ? void 0 : _pageLayoutBridges$ge2.get(selector);
|
|
4451
|
-
}).find(Boolean);
|
|
4431
|
+
const page = (_resolveCurrentPageIn = resolveCurrentPageInstance()) !== null && _resolveCurrentPageIn !== void 0 ? _resolveCurrentPageIn : resolvePageFromContext(fallbackContext);
|
|
4432
|
+
const bridgeContext = pageLayoutBridgeRegistry.resolveBridge(selector, resolvePageKeys(page));
|
|
4452
4433
|
return (_ref4 = bridgeContext !== null && bridgeContext !== void 0 ? bridgeContext : fallbackContext) !== null && _ref4 !== void 0 ? _ref4 : getCurrentInstance();
|
|
4453
4434
|
}
|
|
4454
4435
|
/**
|
|
4455
4436
|
* 解析当前页面 layout 内通过指定 key 暴露的宿主实例。
|
|
4456
4437
|
*/
|
|
4457
4438
|
function resolveLayoutHost(key, options = {}) {
|
|
4458
|
-
var _options$context,
|
|
4459
|
-
const
|
|
4460
|
-
const
|
|
4461
|
-
return
|
|
4439
|
+
var _options$context, _resolveCurrentPageIn2;
|
|
4440
|
+
const context = (_options$context = options.context) !== null && _options$context !== void 0 ? _options$context : options.fallbackContext;
|
|
4441
|
+
const page = (_resolveCurrentPageIn2 = resolveCurrentPageInstance()) !== null && _resolveCurrentPageIn2 !== void 0 ? _resolveCurrentPageIn2 : resolvePageFromContext(context);
|
|
4442
|
+
return pageLayoutBridgeRegistry.resolveHost(key, resolvePageKeys(page), (bridge, key) => {
|
|
4443
|
+
var _bridge$selectCompone;
|
|
4444
|
+
return (_bridge$selectCompone = bridge.selectComponent) === null || _bridge$selectCompone === void 0 ? void 0 : _bridge$selectCompone.call(bridge, key);
|
|
4445
|
+
});
|
|
4462
4446
|
}
|
|
4463
4447
|
/**
|
|
4464
4448
|
* 等待当前页面 layout 宿主实例可用,适合页面初次进入时的异步宿主解析。
|
|
4465
4449
|
*/
|
|
4466
4450
|
function waitForLayoutHost(key, options = {}) {
|
|
4467
|
-
var _options$
|
|
4468
|
-
const
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
retries: retries - 1
|
|
4477
|
-
}));
|
|
4478
|
-
}, interval);
|
|
4479
|
-
});
|
|
4451
|
+
var _options$context2;
|
|
4452
|
+
const context = (_options$context2 = options.context) !== null && _options$context2 !== void 0 ? _options$context2 : options.fallbackContext;
|
|
4453
|
+
return pageLayoutBridgeRegistry.waitForHost(key, () => {
|
|
4454
|
+
var _resolveCurrentPageIn3;
|
|
4455
|
+
return resolvePageKeys((_resolveCurrentPageIn3 = resolveCurrentPageInstance()) !== null && _resolveCurrentPageIn3 !== void 0 ? _resolveCurrentPageIn3 : resolvePageFromContext(context));
|
|
4456
|
+
}, (bridge, key) => {
|
|
4457
|
+
var _bridge$selectCompone2;
|
|
4458
|
+
return (_bridge$selectCompone2 = bridge.selectComponent) === null || _bridge$selectCompone2 === void 0 ? void 0 : _bridge$selectCompone2.call(bridge, key);
|
|
4459
|
+
}, options);
|
|
4480
4460
|
}
|
|
4481
4461
|
/**
|
|
4482
4462
|
* 在 layout 生命周期内暴露 bridge,使页面或子组件可访问 layout 内部实例。
|
|
@@ -4484,7 +4464,7 @@ function waitForLayoutHost(key, options = {}) {
|
|
|
4484
4464
|
function useLayoutBridge(selectors, options = {}) {
|
|
4485
4465
|
if (!getCurrentSetupContext()) throw new Error("useLayoutBridge() 必须在 setup() 的同步阶段调用");
|
|
4486
4466
|
const context = getCurrentInstance();
|
|
4487
|
-
const normalizedSelectors =
|
|
4467
|
+
const normalizedSelectors = normalizeMiniProgramLayoutHostKeys(selectors);
|
|
4488
4468
|
const resolveComponent = options.resolveComponent;
|
|
4489
4469
|
const nativeContext = resolveNativeLayoutContext(context);
|
|
4490
4470
|
const bridgeBase = nativeContext && typeof nativeContext === "object" ? Object.create(nativeContext) : {};
|
|
@@ -4560,6 +4540,7 @@ function registerComponentDefinition(options) {
|
|
|
4560
4540
|
};
|
|
4561
4541
|
};
|
|
4562
4542
|
if (isPage) for (const hookName of [
|
|
4543
|
+
"onPullDownRefresh",
|
|
4563
4544
|
"onReachBottom",
|
|
4564
4545
|
"onShareAppMessage",
|
|
4565
4546
|
"onShareTimeline",
|
|
@@ -6300,4 +6281,4 @@ function useTemplateRef(name) {
|
|
|
6300
6281
|
|
|
6301
6282
|
//#endregion
|
|
6302
6283
|
export { version as $, registerPageLayoutBridge as A, mountRuntimeInstance as B, useElementIntersectionObserver as C, defineComponent as D, createWevuScopedSlotComponent as E, unregisterRuntimeLayoutHosts as F, setPageLayout as G, teardownRuntimeInstance as H, useLayoutBridge as I, usePageLayout as J, syncRuntimePageLayoutState as K, useLayoutHosts as L, resolveLayoutBridge as M, resolveLayoutHost as N, createApp as O, unregisterPageLayoutBridge as P, markNoSetData as Q, waitForLayoutHost as R, useIntersectionObserver as S, createWevuComponent as T, runSetupFunction as U, setRuntimeSetDataVisibility as V, resolveRuntimePageLayoutName as W, setWevuDefaults as X, resetWevuDefaults as Y, isNoSetData as Z, usePageScrollThrottle as _, useModel as a, onDeactivated as at, useNavigationBarMetrics as b, useSlots as c, onServerPrefetch as ct, useUpdatePerformanceListener as d, callUpdateHooks as et, useBoundingClientRect as f, useAsyncPullDownRefresh as g, useSelectorQuery as h, useChangeModel as i, onBeforeUpdate as it, registerRuntimeLayoutHosts as j, registerComponent as k, defineAppSetup as l, onUnmounted as lt, useSelectorFields as m, mergeModels as n, onBeforeMount as nt, useAttrs as o, onErrorCaptured as ot, useScrollOffset as p, syncRuntimePageLayoutStateFromRuntime as q, useBindModel as r, onBeforeUnmount as rt, useNativeInstance as s, onMounted as st, useTemplateRef as t, onActivated as tt, use as u, onUpdated as ut, getCurrentPageStackSnapshot as v, useDisposables as w, usePageStack as x, getNavigationBarMetrics as y, registerApp as z };
|
|
6303
|
-
//# sourceMappingURL=templateRef-
|
|
6284
|
+
//# sourceMappingURL=templateRef-C7Lvegyw.mjs.map
|