Skip to content

Commit decdd88

Browse files
committed
chore: build
1 parent a7555df commit decdd88

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

packages/uni-app-plus/dist/uni.x.runtime.esm.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,7 @@ function getRealPath(path) {
13071307
}
13081308
return addLeadingSlash(currentPathArray.concat(resultArray).join("/"));
13091309
}
1310+
var onTabBarMidButtonTapCallback = [];
13101311
var tabBar0 = null;
13111312
var selected0 = -1;
13121313
var tabs = /* @__PURE__ */ new Map();
@@ -1362,6 +1363,13 @@ function init() {
13621363
}
13631364
}
13641365
});
1366+
tabBar0.addEventListener("tabBarMidButtonTap", function(event) {
1367+
onTabBarMidButtonTapCallback.forEach((callback) => {
1368+
if (typeof callback === "function") {
1369+
callback();
1370+
}
1371+
});
1372+
});
13651373
page.startRender();
13661374
page.show(null);
13671375
}
@@ -1838,6 +1846,9 @@ var hideTabBarRedDot = /* @__PURE__ */ defineAsyncApi(API_HIDE_TAB_BAR_RED_DOT,
18381846
tabBar.hideTabBarRedDot(/* @__PURE__ */ new Map([["index", index2]]));
18391847
resolve();
18401848
}, HideTabBarRedDotProtocol, HideTabBarRedDotOptions);
1849+
var onTabBarMidButtonTap = (cb) => {
1850+
onTabBarMidButtonTapCallback.push(cb);
1851+
};
18411852
var setNavigationBarColor = /* @__PURE__ */ defineAsyncApi(API_SET_NAVIGATION_BAR_COLOR, (_ref, _ref2) => {
18421853
var {
18431854
frontColor,
@@ -2637,6 +2648,7 @@ const uni$1 = /* @__PURE__ */ Object.defineProperty({
26372648
loadFontFace,
26382649
navigateBack,
26392650
navigateTo,
2651+
onTabBarMidButtonTap,
26402652
pageScrollTo,
26412653
reLaunch,
26422654
redirectTo,

packages/uni-mp-alipay/dist/uni.mp.esm.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,10 @@ function initCreateComponent() {
932932
triggerEvent,
933933
},
934934
};
935+
// vueOptions.options
936+
if (vueOptions.options) {
937+
mpComponentOptions.options = vueOptions.options;
938+
}
935939
if (__VUE_OPTIONS_API__) {
936940
mpComponentOptions.data = initData();
937941
mpComponentOptions.mixins = initBehaviors(vueOptions);

0 commit comments

Comments
 (0)