wtsk-comps 1.1.2 → 1.1.4
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 +29 -0
- package/package.json +3 -3
- package/wtsk-basic.d.ts +0 -12
package/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { App, Component } from 'vue'
|
|
2
|
+
|
|
3
|
+
declare module 'wtsk-comps' {
|
|
4
|
+
// 简化组件声明 - 只声明组件存在,不定义详细props
|
|
5
|
+
export const WtskBtn: Component
|
|
6
|
+
export const WtskForm: Component
|
|
7
|
+
export const WtskTable: Component
|
|
8
|
+
export const WtskTree: Component
|
|
9
|
+
|
|
10
|
+
// 安装函数类型
|
|
11
|
+
interface WtskBasic {
|
|
12
|
+
install: (app: App) => void
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const WtskBasic: WtskBasic
|
|
16
|
+
|
|
17
|
+
export default WtskBasic
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare module '@vue/runtime-core' {
|
|
21
|
+
export interface GlobalComponents {
|
|
22
|
+
WtskBtn: Component
|
|
23
|
+
WtskForm: Component
|
|
24
|
+
WtskTable: Component
|
|
25
|
+
WtskTree: Component
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wtsk-comps",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Vue3+Element Plus基础组件库(wtsk-btn/form/table/tree)",
|
|
5
5
|
"author": "lujh",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "dist/wtsk-basic.es.js",
|
|
11
11
|
"unpkg": "dist/wtsk-basic.umd.js",
|
|
12
12
|
"style": "dist/wtsk-basic.css",
|
|
13
|
-
"types": "
|
|
13
|
+
"types": "index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"import": "./dist/wtsk-basic.es.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
-
"
|
|
24
|
+
"index.d.ts"
|
|
25
25
|
],
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"vue": "^3.2.0 || ^3.3.0 || ^3.4.0",
|
package/wtsk-basic.d.ts
DELETED