feat: 添加@uni-ku/root依赖并配置vite插件
移除页面中的tabbar布局配置 在default.vue中暴露testUniLayoutExposedData 添加App.ku.vue作为根组件 更新pages.json移除tabbar布局配置
This commit is contained in:
24
src/App.ku.vue
Normal file
24
src/App.ku.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import FgTabbar from '@/tabbar/index.vue'
|
||||
import { isPageTabbar } from './tabbar/store'
|
||||
import { currRoute } from './utils'
|
||||
|
||||
const isCurrentPageTabbar = ref(true)
|
||||
onShow(() => {
|
||||
console.log('App.ku.vue onShow', currRoute())
|
||||
const { path } = currRoute()
|
||||
isCurrentPageTabbar.value = isPageTabbar(path)
|
||||
})
|
||||
|
||||
const helloKuRoot = ref('Hello AppKuVue')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="text-center">
|
||||
{{ helloKuRoot }},这里可以配置全局的东西
|
||||
</view>
|
||||
<!-- 顶级 KuRootView -->
|
||||
<KuRootView />
|
||||
<FgTabbar v-if="isCurrentPageTabbar" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user