<script lang="ts" setup>
import { defineComponent, PropType } from 'vue';
interface MyObject {
key1: string;
key2: number;
}
const props = defineProps({
propData: {
type: [String, Object] as PropType<string | MyObject>,
required: true,
default:''
}
})
</script>








网友评论