diff --git a/packages/uni-h5/dist/uni-h5.esm.js b/packages/uni-h5/dist/uni-h5.esm.js index 74b04392a57b8972a28271cda1582da0c1727360..26405f849b43196f50142339e69845e55aca7687 100644 --- a/packages/uni-h5/dist/uni-h5.esm.js +++ b/packages/uni-h5/dist/uni-h5.esm.js @@ -13712,7 +13712,9 @@ function useShowTabBar(emit2) { const route = useRoute(); const tabBar2 = useTabBar(); const showTabBar2 = computed(() => route.meta.isTabBar && tabBar2.shown); - updateCssVar("--tab-bar-height", tabBar2.height); + updateCssVar({ + "--tab-bar-height": tabBar2.height + }); return showTabBar2; } function createTabBarTsx(showTabBar2) { diff --git a/packages/uni-h5/src/framework/components/layout/index.tsx b/packages/uni-h5/src/framework/components/layout/index.tsx index aebfae8f1748049a10325edb5c6c97c7831cce13..5d50e0a07e1d4f5634f586fe52f0495c1d590c7f 100644 --- a/packages/uni-h5/src/framework/components/layout/index.tsx +++ b/packages/uni-h5/src/framework/components/layout/index.tsx @@ -106,7 +106,9 @@ function useShowTabBar(emit: SetupContext<['change']>['emit']) { const tabBar = useTabBar()! // TODO meida query const showTabBar = computed(() => route.meta.isTabBar && tabBar.shown) - updateCssVar('--tab-bar-height', tabBar.height!) + updateCssVar({ + '--tab-bar-height': tabBar.height!, + }) return showTabBar } diff --git a/packages/vite-plugin-uni/src/config/resolve.ts b/packages/vite-plugin-uni/src/config/resolve.ts index 22a0d749134e4c09b94735d04e00ddb0881687be..f45547dfc69deeb0a4d50a90bb8fe44799f9c22d 100644 --- a/packages/vite-plugin-uni/src/config/resolve.ts +++ b/packages/vite-plugin-uni/src/config/resolve.ts @@ -1,4 +1,5 @@ import { UserConfig } from 'vite' +import { EXTNAME_VUE } from '@dcloudio/uni-cli-shared' import { VitePluginUniResolvedOptions } from '..' export function createResolve( @@ -12,5 +13,8 @@ export function createResolve( paths: [process.env.UNI_CLI_CONTEXT || process.cwd()], }), }, + extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json'].concat( + EXTNAME_VUE + ), } }