<template>
  <van-tabs v-model="active" @click-tab="onClickTab">
    <van-tab title="问题清单">
      <ListQuestions></ListQuestions>
    </van-tab>
    <van-tab title="问题统计">
      <!-- <questionstatistics-component></questionstatistics-component> -->
       <QuestionsTatistics></QuestionsTatistics>
    </van-tab>
  </van-tabs>
</template>

<script setup>

import { ref } from "vue";
import ListQuestions from "./listquestions.vue";
import QuestionsTatistics from "./questionstatistics.vue";
import { showToast } from 'vant';


const active = ref('问题清单');
const onClickTab = ({ title }) => showToast(title);

</script>
<style scoped>
.van-tabs {
  height: 100%;
}

.van-tabs__content {
  height: calc(100% - 44px);

  .van-tab__panel {
    height: 100% !important;
  }

}
</style>
