提交 e1fab42d 编写于 作者: D DCloud_LXH

fix(h5): darkmode tabBar list

上级 09d400f0
......@@ -444,6 +444,8 @@ function normalizeTabBar(
const SCHEME_RE = /^([a-z-]+:)?\/\//i
const DATA_RE = /^data:.*,.*/
function normalizeFilepath(filepath: string) {
const manifestJsonPlatform = getPlatformManifestJsonOnce()
if (manifestJsonPlatform.darkmode && filepath.startsWith('@')) return filepath
if (
!(SCHEME_RE.test(filepath) || DATA_RE.test(filepath)) &&
filepath.indexOf('/') !== 0
......
......@@ -49,6 +49,12 @@ export default /*#__PURE__*/ defineSystemComponent({
tabBar.color = tabBarStyle.color
tabBar.selectedColor = tabBarStyle.selectedColor
tabBar.blurEffect = tabBarStyle.blurEffect
if (tabBarStyle.list.length) {
tabBarStyle.list.forEach((item, index) => {
tabBar.list[index].iconPath = item.iconPath
tabBar.list[index].selectedIconPath = item.selectedIconPath
})
}
})
onMounted(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册