<route lang="json5" type="page">
	{
	layout: 'default',
	style: {
	navigationStyle: 'custom',
	navigationBarTitleText: '流程审批导航',
	},
	}
</route>
<template>
	<view :class="{ 'gray': appStore.isGray == 1 }">
		<wd-navbar left-text="返回" left-arrow
			custom-style="padding-top: var(--status-bar-height, 0); background-image: linear-gradient(to right, #1890ff, #096dd9); color: #fff;"
			@click-left="handleClickLeft">
		</wd-navbar>
		<wd-tabs v-model="tab" swipeable color="#39b54a" autoLineWidth>
		    <wd-tab  title="我的任务">
		      <myTask></myTask>
		    </wd-tab>
			<wd-tab title="历史任务">
			  <view class="content">内容1</view>
			</wd-tab>
		</wd-tabs>

	</view>
</template>

<script setup lang="ts">
	import {
		useAppStore
	} from '@/store'
	import {
		ref
	} from 'vue'
	import {
		onLoad,
		onShow 
	} from '@dcloudio/uni-app';
	import myTask from './components/myTask.vue'
	const appStore = useAppStore();
	const tab = ref(0)
	
	const handleClickLeft = () => {
		uni.navigateBack()
	}
	
</script>

<style scoped lang="scss">
	::v-deep .wd-tabs__line{
		background: #39b54a;
	}
</style>