<template>
  <CusDialog
      title="基础样式"
      :show="show"
      @close="$emit('update:show', false)"
      @submit="$emit('update:show', false)"
  >
    <div style="padding: 20px;">
      <CusTab :tabs="[
          {name: '一', value: '1'},
          {name: '一二', value: '2'},
          {name: '一二三', value: '3'},
          {name: '一二三四五六七八', value: '4'},
      ]" v-model:param="tab2"/>
      <CusTab :tabs="[
          {name: '一', value: '1'},
          {name: '一二', value: '2'},
          {name: '一二三', value: '3'},
          {name: '一二三四五六七八', value: '4'},
      ]" type="type2" v-model:param="tab1"/>
      <div class="__cus-title_1">标题类型1</div>
      <div class="__cus-title_2">标题类型2</div>
    </div>
  </CusDialog>
</template>

<script lang="ts">
import {
  defineComponent,
  computed,
  onMounted,
  ref,
  reactive,
  watch,
  getCurrentInstance,
  ComponentInternalInstance,
  toRefs,
  nextTick
} from 'vue'
import {useStore} from 'vuex'
import {useRouter, useRoute} from 'vue-router'

export default defineComponent({
  name: '',
  components: {},
  props: {
    show: {}
  },
  setup(props, {emit}) {
    const store = useStore();
    const router = useRouter();
    const route = useRoute();
    const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
    const state = reactive({
      tab1: '1',
      tab2: '1',
    })
    return {
      ...toRefs(state)
    }
  },
})
</script>

<style scoped lang="scss">
</style>
