Blame view

pages/component/navigator/navigator.vue 937 Bytes
4b045f7c   刘淇   江阴初始化项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  <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>
  </template>
  <script>
  	import { mapState } from 'vuex'
  	export default {
  		data() {
  			return {
  				title: 'navigator'
  			}
  		},
  		computed: {
  			...mapState({
  				hasLeftWin: state => !state.noMatchLeftWindow
  			})
  		},
  	}
  </script>