feat(types): 更新全局组件类型定义
- 移除旧的自定义组件类型声明 - 添加多个 Element Plus 组件类型 - 引入 ElLoadingDirective 自定义属性类型 - 更新组件类型映射以匹配最新实现
Showing
1 changed file
with
17 additions
and
7 deletions
| ... | @@ -7,21 +7,31 @@ export {} | ... | @@ -7,21 +7,31 @@ export {} |
| 7 | 7 | ||
| 8 | declare module 'vue' { | 8 | declare module 'vue' { |
| 9 | export interface GlobalComponents { | 9 | export interface GlobalComponents { |
| 10 | - ActionBar: typeof import('./src/components/common/ActionBar.vue')['default'] | ||
| 11 | - DataTable: typeof import('./src/components/common/DataTable.vue')['default'] | ||
| 12 | ElButton: typeof import('element-plus/es')['ElButton'] | 10 | ElButton: typeof import('element-plus/es')['ElButton'] |
| 13 | - ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] | 11 | + ElCard: typeof import('element-plus/es')['ElCard'] |
| 12 | + ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] | ||
| 13 | + ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] | ||
| 14 | + ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] | ||
| 15 | + ElDialog: typeof import('element-plus/es')['ElDialog'] | ||
| 14 | ElForm: typeof import('element-plus/es')['ElForm'] | 16 | ElForm: typeof import('element-plus/es')['ElForm'] |
| 15 | ElFormItem: typeof import('element-plus/es')['ElFormItem'] | 17 | ElFormItem: typeof import('element-plus/es')['ElFormItem'] |
| 18 | + ElIcon: typeof import('element-plus/es')['ElIcon'] | ||
| 16 | ElInput: typeof import('element-plus/es')['ElInput'] | 19 | ElInput: typeof import('element-plus/es')['ElInput'] |
| 17 | - ElLink: typeof import('element-plus/es')['ElLink'] | 20 | + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] |
| 21 | + ElOption: typeof import('element-plus/es')['ElOption'] | ||
| 22 | + ElPagination: typeof import('element-plus/es')['ElPagination'] | ||
| 23 | + ElSelect: typeof import('element-plus/es')['ElSelect'] | ||
| 24 | + ElTable: typeof import('element-plus/es')['ElTable'] | ||
| 25 | + ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] | ||
| 26 | + ElTag: typeof import('element-plus/es')['ElTag'] | ||
| 27 | + ElText: typeof import('element-plus/es')['ElText'] | ||
| 18 | Header: typeof import('./src/components/layout/Header.vue')['default'] | 28 | Header: typeof import('./src/components/layout/Header.vue')['default'] |
| 19 | - Pagination: typeof import('./src/components/common/Pagination.vue')['default'] | ||
| 20 | RouterLink: typeof import('vue-router')['RouterLink'] | 29 | RouterLink: typeof import('vue-router')['RouterLink'] |
| 21 | RouterView: typeof import('vue-router')['RouterView'] | 30 | RouterView: typeof import('vue-router')['RouterView'] |
| 22 | - SearchBar: typeof import('./src/components/common/SearchBar.vue')['default'] | ||
| 23 | Sidebar: typeof import('./src/components/layout/Sidebar.vue')['default'] | 31 | Sidebar: typeof import('./src/components/layout/Sidebar.vue')['default'] |
| 24 | SidebarItem: typeof import('./src/components/layout/SidebarItem.vue')['default'] | 32 | SidebarItem: typeof import('./src/components/layout/SidebarItem.vue')['default'] |
| 25 | - TableToolbar: typeof import('./src/components/common/TableToolbar.vue')['default'] | 33 | + } |
| 34 | + export interface ComponentCustomProperties { | ||
| 35 | + vLoading: typeof import('element-plus/es')['ElLoadingDirective'] | ||
| 26 | } | 36 | } |
| 27 | } | 37 | } | ... | ... |
-
Please register or login to post a comment