新增自定义组件增加引用提示

This commit is contained in:
不做码农 2023-09-23 13:59:16 +08:00
parent 03839d3d1d
commit b827c47497

16
src/components.d.ts vendored Normal file
View File

@ -0,0 +1,16 @@
import SvgIcon from '@/components/SvgIcon/index.vue'
import UploadImage from '@/components/ImageUpload.vue'
import FileUpload from '@/components/FileUpload'
import ImagePreview from '@/components/ImagePreview'
import DictTag from '@/components/DictTag'
import Dialog from '@/components/Dialog'
declare module '@vue/runtime-core' {
export interface GlobalComponents {
SvgIcon: typeof SvgIcon,
UploadImage: typeof UploadImage,
DictTag: typeof DictTag,
ImagePreview: typeof ImagePreview,
FileUpload: typeof FileUpload,
ZrDialog: typeof Dialog
}
}