types: 修复全局组件属性类型无法推导

This commit is contained in:
kailong321200875
2023-12-21 10:50:20 +08:00
parent c29d1cb4c6
commit 94160c0418
4 changed files with 20 additions and 20 deletions

View File

@@ -1,8 +1,8 @@
declare module 'vue' {
export interface GlobalComponents {
Icon: (typeof import('../components/Icon/src/Icon.vue'))['default']
Permission: (typeof import('../components/Permission/src/Permission.vue'))['default']
BaseButton: (typeof import('../components/Button/src/Button.vue'))['default']
Icon: (typeof import('../src/components/Icon/index'))['Icon']
Permission: (typeof import('../src/components/Permission/index'))['Permission']
BaseButton: (typeof import('../src/components/Button/index'))['BaseButton']
}
}