提交 5935b0e7 编写于 作者: fxy060608's avatar fxy060608

chore: build

上级 d36939ed
......@@ -13315,17 +13315,23 @@ function useTabBarThemeChange(tabBar, options) {
function useWebviewThemeChange(webview, getWebviewStyle) {
if (__uniConfig.darkmode) {
const fn = () => {
const { animationAlphaBGColor, background, backgroundColorBottom, backgroundColorTop, titleNView: { backgroundColor, titleColor } = {}, } = getWebviewStyle();
webview === null || webview === void 0 ? void 0 : webview.setStyle({
animationAlphaBGColor,
background,
backgroundColorBottom,
backgroundColorTop,
titleNView: {
backgroundColor,
titleColor,
},
const webviewStyle = getWebviewStyle();
({
animationAlphaBGColor: webviewStyle.animationAlphaBGColor,
background: webviewStyle.background,
backgroundColorBottom: webviewStyle.backgroundColorBottom,
backgroundColorTop: webviewStyle.backgroundColorTop,
});
var titleNView = webviewStyle.titleNView;
if (typeof titleNView !== 'undefined') {
typeof titleNView === 'object'
? {
backgroundColor: titleNView.backgroundColor,
titleColor: titleNView.titleColor,
}
: titleNView;
}
webview && webview.setStyle(webviewStyle);
};
onThemeChange$1(fn);
webview.addEventListener('close', () => offThemeChange$1(fn));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册