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.
Files changed (2) hide show
  1. package/index.d.ts +22 -17
  2. 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 type { App, Component } from 'vue'
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
- interface WtskBasic {
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
- declare module '@vue/runtime-core' {
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: Component
23
- WtskForm: Component
24
- WtskTable: Component
25
- WtskTree: Component
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 {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtsk-comps",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Vue3+Element Plus基础组件库(wtsk-btn/form/table/tree)",
5
5
  "author": "lujh",
6
6
  "license": "MIT",