wtsk-comps 1.1.5 → 1.1.7

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 +16 -20
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,29 +1,25 @@
1
+ // Type definitions for wtsk-comps - WebStorm compatible
1
2
  declare module 'wtsk-comps' {
2
- import type { App, Component } from 'vue'
3
+ import { Component } from 'vue'
3
4
 
4
- // 简化组件声明 - 只声明组件存在,不定义详细props
5
- export const WtskBtn: Component
6
- export const WtskForm: Component
7
- export const WtskTable: Component
8
- export const WtskTree: Component
5
+ const WtskBtn: Component
6
+ const WtskForm: Component
7
+ const WtskTable: Component
8
+ const WtskTree: Component
9
9
 
10
- // 安装函数类型
11
- interface WtskBasic {
12
- install: (app: App) => void
13
- }
10
+ export { WtskBtn, WtskForm, WtskTable, WtskTree }
14
11
 
15
- const WtskBasic: WtskBasic
12
+ const WtskBasic: {
13
+ install: (app: any) => void
14
+ }
16
15
 
17
16
  export default WtskBasic
18
17
  }
19
18
 
20
- declare module '@vue/runtime-core' {
21
- export interface GlobalComponents {
22
- WtskBtn: Component
23
- WtskForm: Component
24
- WtskTable: Component
25
- WtskTree: Component
26
- }
19
+ // WebStorm specific declarations
20
+ declare global {
21
+ const WtskBtn: any
22
+ const WtskForm: any
23
+ const WtskTable: any
24
+ const WtskTree: any
27
25
  }
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.7",
4
4
  "description": "Vue3+Element Plus基础组件库(wtsk-btn/form/table/tree)",
5
5
  "author": "lujh",
6
6
  "license": "MIT",