This commit is contained in:
2025-03-12 11:39:31 +08:00
parent b8a44a2716
commit 55954a4a9b
125 changed files with 30973 additions and 30045 deletions

View File

@@ -1,33 +1,45 @@
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v">
<navigator url="navigate/navigate?title=navigate" hover-class="navigator-hover">
<button type="default">跳转到新页面</button>
</navigator>
<navigator url="redirect/redirect?title=redirect" open-type="redirect" hover-class="other-navigator-hover">
<button type="default">在当前页打开</button>
</navigator>
<navigator v-if="!hasLeftWin" url="/pages/tabBar/extUI/extUI" open-type="switchTab" hover-class="other-navigator-hover">
<button type="default">跳转tab页面</button>
</navigator>
</view>
</view>
</view>
<view>
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v">
<navigator
url="navigate/navigate?title=navigate"
hover-class="navigator-hover"
>
<button type="default">跳转到新页面</button>
</navigator>
<navigator
url="redirect/redirect?title=redirect"
open-type="redirect"
hover-class="other-navigator-hover"
>
<button type="default">在当前页打开</button>
</navigator>
<navigator
v-if="!hasLeftWin"
url="/pages/tabBar/extUI/extUI"
open-type="switchTab"
hover-class="other-navigator-hover"
>
<button type="default">跳转tab页面</button>
</navigator>
</view>
</view>
</view>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
title: 'navigator'
}
},
computed: {
...mapState({
hasLeftWin: state => !state.noMatchLeftWindow
})
},
}
import { mapState } from "vuex";
export default {
data() {
return {
title: "navigator",
};
},
computed: {
...mapState({
hasLeftWin: (state) => !state.noMatchLeftWindow,
}),
},
};
</script>