interface PropsType { childProp1: number childProp2: string childProp3: boolean } defineProps<PropsType>() 组件B import Child from './Child.vue' type ChildInstance = InstanceType<typeof Child> 怎么能从Child组件上获取它属性的ts类型typescriptvue.jsvue3 有用关注1收藏1 回复 阅读11k 1 ...
interface PropsType { childProp1: number childProp2: string childProp3: boolean } defineProps<PropsType>() 组件B import Child from './Child.vue' type ChildInstance = InstanceType<typeof Child> 怎么能从Child组件上获取它属性的ts类型typescriptvue.jsvue3 有用关注1收藏1 回复 阅读11.3k 1...