haoxuan
2023-10-28 ba8a936772e4e2c58dd515d64d7cb7d7817bbe88
src/views/dashboard/components/TaskTabs.vue
@@ -15,10 +15,14 @@
import { useVModel } from '@vueuse/core'
const props = defineProps<{
  /** tab 列表*/
  list: string[]
  /** 当前选中的 tab*/
  modelValue?: string
}>()
const emit = defineEmits(['update:modelValue'])
const emit = defineEmits<{
  'update:modelValue': [tabName: string]
}>()
const data = useVModel(props, 'modelValue', emit)
function selectTab(tabName: string) {