🍓 feat(Web): 声明全局组件sysDict, 使IDE能识别组件
This commit is contained in:
parent
560e00ae96
commit
744a5191f7
9
Web/src/types/global.d.ts
vendored
9
Web/src/types/global.d.ts
vendored
@ -1,4 +1,6 @@
|
||||
// 申明外部 npm 插件模块
|
||||
import sysDict from '/@/components/sysDict/sysDict.vue';
|
||||
|
||||
declare module 'vue-grid-layout';
|
||||
declare module 'qrcodejs2-fixes';
|
||||
declare module 'splitpanes';
|
||||
@ -29,6 +31,13 @@ declare module '*.vue' {
|
||||
export default component;
|
||||
}
|
||||
|
||||
// 声明全局组件
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
GSysDict: typeof sysDict
|
||||
}
|
||||
}
|
||||
|
||||
// 声明文件,定义全局变量
|
||||
/* eslint-disable */
|
||||
declare interface Window {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user