|
@@ -35,6 +35,7 @@ export default defineComponent({
|
|
|
const router = useRouter();
|
|
|
|
|
|
const todoData = reactive({
|
|
|
+ barHeight: 0,
|
|
|
tabActive: toggleTabName('get') as 'todo' | 'complete',
|
|
|
examineLoading: true,
|
|
|
refreshLoading: false,
|
|
@@ -166,10 +167,19 @@ export default defineComponent({
|
|
|
|
|
|
return () => (
|
|
|
<div class={styles['schedule-manage']}>
|
|
|
- <MSticky position="top">
|
|
|
+ <MSticky
|
|
|
+ position="top"
|
|
|
+ onBarHeight={(height: number) => {
|
|
|
+ todoData.barHeight = height;
|
|
|
+ }}>
|
|
|
<MHeader></MHeader>
|
|
|
</MSticky>
|
|
|
- <Tabs swipeable animated v-model:active={todoData.tabActive}>
|
|
|
+ <Tabs
|
|
|
+ sticky
|
|
|
+ offsetTop={todoData.barHeight}
|
|
|
+ swipeable
|
|
|
+ animated
|
|
|
+ v-model:active={todoData.tabActive}>
|
|
|
<Tab name="todo" title="待审批">
|
|
|
<MFullRefresh
|
|
|
v-model:modelValue={todoData.refreshLoading}
|