fix: 编译类型缺失

This commit is contained in:
TsMask
2024-09-03 16:57:43 +08:00
parent 66b6b60505
commit 2f1265c47a
2 changed files with 32 additions and 14 deletions

View File

@@ -1,4 +1,5 @@
<script setup lang="ts">
import { PropType } from 'vue';
import DissectionTreeSub from './DissectionTreeSub.vue';
defineProps({
@@ -7,7 +8,7 @@ defineProps({
required: true,
},
tree: {
type: Array,
type: Array as PropType<Record<string, any>[]>,
required: true,
},
sub: {