wtsk-comps 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +22 -17
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,29 +1,34 @@
|
|
|
1
|
+
// Type definitions for wtsk-comps - WebStorm compatible
|
|
1
2
|
declare module 'wtsk-comps' {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
// 简化组件声明 - 只声明组件存在,不定义详细props
|
|
3
|
+
import { Component } from 'vue'
|
|
4
|
+
|
|
5
5
|
export const WtskBtn: Component
|
|
6
6
|
export const WtskForm: Component
|
|
7
7
|
export const WtskTable: Component
|
|
8
8
|
export const WtskTree: Component
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
install: (app: App) => void
|
|
9
|
+
|
|
10
|
+
const WtskBasic: {
|
|
11
|
+
install: (app: any) => void
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
const WtskBasic: WtskBasic
|
|
16
|
-
|
|
13
|
+
|
|
17
14
|
export default WtskBasic
|
|
18
15
|
}
|
|
19
16
|
|
|
20
|
-
|
|
17
|
+
// WebStorm specific declarations
|
|
18
|
+
declare global {
|
|
19
|
+
// Global component types for WebStorm
|
|
20
|
+
const WtskBtn: typeof import('wtsk-comps')['WtskBtn']
|
|
21
|
+
const WtskForm: typeof import('wtsk-comps')['WtskForm']
|
|
22
|
+
const WtskTable: typeof import('wtsk-comps')['WtskTable']
|
|
23
|
+
const WtskTree: typeof import('wtsk-comps')['WtskTree']
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Vue module augmentation for better IDE support
|
|
27
|
+
declare module 'vue' {
|
|
21
28
|
export interface GlobalComponents {
|
|
22
|
-
WtskBtn:
|
|
23
|
-
WtskForm:
|
|
24
|
-
WtskTable:
|
|
25
|
-
WtskTree:
|
|
29
|
+
WtskBtn: typeof import('wtsk-comps')['WtskBtn']
|
|
30
|
+
WtskForm: typeof import('wtsk-comps')['WtskForm']
|
|
31
|
+
WtskTable: typeof import('wtsk-comps')['WtskTable']
|
|
32
|
+
WtskTree: typeof import('wtsk-comps')['WtskTree']
|
|
26
33
|
}
|
|
27
34
|
}
|
|
28
|
-
|
|
29
|
-
export {}
|