2025-10-29 09:05:59 +08:00
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
import Tabbar from '@/tabbar/index.vue'
|
|
|
|
|
|
import { isPageTabbar } from './tabbar/store'
|
|
|
|
|
|
import { currRoute } from './utils'
|
2025-10-31 15:36:35 +08:00
|
|
|
|
|
2025-10-29 09:05:59 +08:00
|
|
|
|
const isCurrentPageTabbar = ref(true)
|
|
|
|
|
|
onShow(() => {
|
|
|
|
|
|
const { path } = currRoute()
|
|
|
|
|
|
isCurrentPageTabbar.value = isPageTabbar(path)
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const helloKuRoot = ref('Hello AppKuVue')
|
|
|
|
|
|
|
|
|
|
|
|
const exposeRef = ref('this is form app.Ku.vue')
|
|
|
|
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
|
|
exposeRef,
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2025-10-31 15:36:35 +08:00
|
|
|
|
const showPosition = false;
|
|
|
|
|
|
const themeVars = {};
|
|
|
|
|
|
const theme = 'light';
|
|
|
|
|
|
|
2025-10-29 09:05:59 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
2025-10-31 15:36:35 +08:00
|
|
|
|
<wd-config-provider :theme-vars="themeVars" :theme="theme">
|
2025-10-29 09:05:59 +08:00
|
|
|
|
<!-- 这个先隐藏了,知道这样用就行 -->
|
|
|
|
|
|
<view class="hidden text-center">
|
|
|
|
|
|
{{ helloKuRoot }},这里可以配置全局的东西
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<KuRootView />
|
|
|
|
|
|
<Tabbar v-if="isCurrentPageTabbar" />
|
|
|
|
|
|
<wd-toast />
|
|
|
|
|
|
<wd-message-box />
|
|
|
|
|
|
</wd-config-provider>
|
|
|
|
|
|
</template>
|