dongmu 10 months ago
parent 300d74f502
commit df2c2e6958

@ -1,4 +1,3 @@
// import type { XtxGuessInstance } from '@/types/component'
import { ref } from 'vue'
/**

@ -1,11 +1,9 @@
// src/components.d.ts 添加组件的类型声明
import XtxSwiper from '@/components/XtxSwiper.vue'
import XtxGuess from '@/components/XtxGuess.vue'
declare module 'vue' {
export interface GlobalComponents {
//组件名XtxSwiper 付给的类型typeof XtxSwiper 这样鼠标移入组件名位置就显示出提示不是包unkon
XtxSwiper: typeof XtxSwiper
XtxGuess: typeof XtxGuess
}
}
// 组件实例类型 -- 其他的ref获取需要用 --定义公共实例类型InstanceType

Loading…
Cancel
Save