dpzvc3-ui 3.1.1 → 3.1.3
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/dist/dpzvc3.esm.js +25 -56
- package/dist/dpzvc3.esm.js.map +1 -1
- package/dist/dpzvc3.esm.min.js +1 -1
- package/dist/dpzvc3.esm.min.js.map +1 -1
- package/dist/dpzvc3.js +24 -54
- package/dist/dpzvc3.js.map +1 -1
- package/dist/dpzvc3.min.js +1 -1
- package/dist/dpzvc3.min.js.map +1 -1
- package/dist/types/components/{Prompt → prompt}/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +82 -115
- package/package.json +2 -2
- package/src/index.d.ts +131 -0
- package/src/index.ts +29 -66
- package/src/types/index.d.ts +33 -70
- package/tsconfig.build.json +3 -2
- package/tsconfig.json +3 -1
- /package/dist/types/components/{Prompt → prompt}/types.d.ts +0 -0
package/src/types/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// src/types/index.d.ts
|
|
2
2
|
|
|
3
3
|
/* ----------------------------------
|
|
4
|
-
* 1️⃣
|
|
4
|
+
* 1️⃣ 按需导出组件 & props(给 TS import 用)
|
|
5
5
|
* ---------------------------------- */
|
|
6
6
|
export { default as Badge } from '../components/badge'
|
|
7
7
|
export type { BadgeProps } from '../components/badge/types'
|
|
8
|
+
|
|
8
9
|
export { default as Popup } from '../components/popup'
|
|
9
10
|
export type { PopupProps } from '../components/popup/types'
|
|
10
11
|
export { default as ActionSheet } from '../components/actionSheet'
|
|
@@ -21,7 +22,6 @@ export type { CellProps } from '../components/cell/types'
|
|
|
21
22
|
|
|
22
23
|
export { default as CellSwipe } from '../components/cellSwipe'
|
|
23
24
|
export type { CellSwipeProps } from '../components/cellSwipe/types'
|
|
24
|
-
|
|
25
25
|
export { default as DpHeader } from '../components/header'
|
|
26
26
|
export type { HeaderProps } from '../components/header/types'
|
|
27
27
|
|
|
@@ -36,7 +36,6 @@ export type { ButtonProps } from '../components/button/types'
|
|
|
36
36
|
|
|
37
37
|
export { default as Picker } from '../components/picker'
|
|
38
38
|
export type { PickerProps } from '../components/picker/types'
|
|
39
|
-
|
|
40
39
|
export { default as SwitchBar } from '../components/switchbar'
|
|
41
40
|
export type { SwitchBarProps } from '../components/switchbar/types'
|
|
42
41
|
|
|
@@ -51,7 +50,6 @@ export type { NumberProps } from '../components/number/types'
|
|
|
51
50
|
|
|
52
51
|
export { default as ToTop } from '../components/toTop'
|
|
53
52
|
export type { ToTopProps } from '../components/toTop/types'
|
|
54
|
-
|
|
55
53
|
export { default as Upload } from '../components/upload'
|
|
56
54
|
export type { UploadProps } from '../components/upload/types'
|
|
57
55
|
|
|
@@ -70,47 +68,15 @@ export type { CheckBoxProps, CheckBoxGroupProps } from '../components/checkBox/t
|
|
|
70
68
|
export { default as RadioBox, default as RadioBoxGroup } from '../components/radioBox'
|
|
71
69
|
export type { RadioBoxProps, RadioGroupProps } from '../components/radioBox/types'
|
|
72
70
|
|
|
73
|
-
// // Modal
|
|
74
|
-
// export { default as Modal } from '../components/modal/modal'
|
|
75
|
-
// // 实例调用类型定义
|
|
76
|
-
// export type { ModalInstance } from '../components/modal/types'
|
|
77
|
-
// // Modal 组件的 props 类型定义
|
|
78
|
-
// export type { ModalProps } from '../components/modal/types'
|
|
79
|
-
|
|
80
71
|
/* ----------------------------------
|
|
81
72
|
* 2️⃣ 全局组件声明(给 <template> 用)
|
|
82
73
|
* ---------------------------------- */
|
|
83
|
-
import type { App
|
|
84
|
-
import type { BadgeProps } from '../components/badge/types'
|
|
85
|
-
import type { PopupProps } from '../components/popup/types'
|
|
86
|
-
import type { ActionSheetProps } from '../components/actionSheet/types'
|
|
87
|
-
import type { CardProps } from '../components/card/types'
|
|
88
|
-
import type { RaterProps } from '../components/rater/types'
|
|
89
|
-
import type { CellProps } from '../components/cell/types'
|
|
90
|
-
import type { CellSwipeProps } from '../components/cellSwipe/types'
|
|
91
|
-
import type { HeaderProps } from '../components/header/types'
|
|
92
|
-
import type { SpinnerProps } from '../components/spinner/types'
|
|
93
|
-
import type { SwipeProps } from '../components/swipe/types'
|
|
94
|
-
import type { ButtonProps } from '../components/button/types'
|
|
95
|
-
import type { PickerProps } from '../components/picker/types'
|
|
96
|
-
import type { SwitchBarProps } from '../components/switchbar/types'
|
|
97
|
-
import type { TabProps } from '../components/tab/types'
|
|
98
|
-
import type { TextBarProps } from '../components/Text/types'
|
|
99
|
-
import type { NumberProps } from '../components/Number/types'
|
|
100
|
-
import type { ToTopProps } from '../components/toTop/types'
|
|
101
|
-
import type { UploadProps } from '../components/upload/types'
|
|
102
|
-
import type { SlideBarProps } from '../components/slideBar/types'
|
|
74
|
+
import type { App } from 'vue'
|
|
103
75
|
import type { ModalInstance } from '../components/modal/types'
|
|
104
76
|
import type { MessageInstance } from '../components/message/types'
|
|
105
77
|
import type { IndicatorInstance } from '../components/Indicator/types'
|
|
106
|
-
import type {
|
|
107
|
-
|
|
108
|
-
import type { CheckBoxProps } from '../components/checkBox/types'
|
|
109
|
-
import type { CheckBoxGroupProps } from '../components/checkBox/types'
|
|
110
|
-
import type { RadioBoxProps } from '../components/radioBox/types'
|
|
111
|
-
import type { RadioGroupProps } from '../components/radioBox/types'
|
|
112
|
-
import type { PromptInstance } from '../components/Prompt/types'
|
|
113
|
-
// src/shims-vue.d.ts
|
|
78
|
+
import type { PromptInstance } from '../components/prompt/types'
|
|
79
|
+
|
|
114
80
|
declare module 'vue' {
|
|
115
81
|
interface ComponentCustomProperties {
|
|
116
82
|
$Modal: ModalInstance
|
|
@@ -118,36 +84,33 @@ declare module 'vue' {
|
|
|
118
84
|
$Indicator: IndicatorInstance
|
|
119
85
|
$Prompt: PromptInstance
|
|
120
86
|
}
|
|
87
|
+
|
|
121
88
|
export interface GlobalComponents {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
CheckBoxGroup: typeof import('../components/checkBox')['CheckBoxGroup'],
|
|
148
|
-
CheckBox: typeof import('../components/checkBox')['CheckBox'],
|
|
149
|
-
RadioBoxGroup: typeof import('../components/radioBox')['RadioBoxGroup'],
|
|
150
|
-
RadioBox: typeof import('../components/radioBox')['RadioBox'],
|
|
89
|
+
Badge: typeof import('../components/badge')['default']
|
|
90
|
+
Popup: typeof import('../components/popup')['default']
|
|
91
|
+
ActionSheet: typeof import('../components/actionSheet')['default']
|
|
92
|
+
Card: typeof import('../components/card')['default']
|
|
93
|
+
Rater: typeof import('../components/rater')['default']
|
|
94
|
+
Cell: typeof import('../components/cell')['default']
|
|
95
|
+
CellSwipe: typeof import('../components/cellSwipe')['default']
|
|
96
|
+
DpHeader: typeof import('../components/header')['default']
|
|
97
|
+
Spinner: typeof import('../components/spinner')['default']
|
|
98
|
+
Swipe: typeof import('../components/swipe')['default']
|
|
99
|
+
DpButton: typeof import('../components/button')['default']
|
|
100
|
+
Picker: typeof import('../components/picker')['default']
|
|
101
|
+
SwitchBar: typeof import('../components/switchbar')['default']
|
|
102
|
+
Tab: typeof import('../components/tab')['default']
|
|
103
|
+
TextBar: typeof import('../components/Text')['default']
|
|
104
|
+
Number: typeof import('../components/number')['default']
|
|
105
|
+
ToTop: typeof import('../components/toTop')['default']
|
|
106
|
+
Upload: typeof import('../components/upload')['default']
|
|
107
|
+
SlideBar: typeof import('../components/slideBar')['default']
|
|
108
|
+
DpProgress: typeof import('../components/progress')['default']
|
|
109
|
+
DpLoadMore: typeof import('../components/loadMore')['default']
|
|
110
|
+
CheckBox: typeof import('../components/checkBox')['CheckBox']
|
|
111
|
+
CheckBoxGroup: typeof import('../components/checkBox')['CheckBoxGroup']
|
|
112
|
+
RadioBox: typeof import('../components/radioBox')['RadioBox']
|
|
113
|
+
RadioBoxGroup: typeof import('../components/radioBox')['RadioBoxGroup']
|
|
151
114
|
}
|
|
152
115
|
}
|
|
153
116
|
|
|
@@ -155,8 +118,8 @@ declare module 'vue' {
|
|
|
155
118
|
* 3️⃣ 默认导出整个组件库为 Vue 插件
|
|
156
119
|
* ---------------------------------- */
|
|
157
120
|
import type { Plugin } from 'vue'
|
|
158
|
-
|
|
159
|
-
export default
|
|
121
|
+
export const Dpzvc3UI: Plugin
|
|
122
|
+
export default Dpzvc3UI
|
|
160
123
|
|
|
161
124
|
/* ----------------------------------
|
|
162
125
|
* 4️⃣ 保证这是 module
|
package/tsconfig.build.json
CHANGED
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
// "src/components/badge/*.tsx",
|
|
19
19
|
// "src/components/badge/*.ts",
|
|
20
20
|
"src/shims-vue.d.ts",
|
|
21
|
-
"src/types/**/*.d.ts",
|
|
22
|
-
|
|
21
|
+
// "src/types/**/*.d.ts",
|
|
22
|
+
"src/index.d.ts",
|
|
23
|
+
"src/types/js-shims.d.ts",
|
|
23
24
|
// "src/types/index.d.ts" // 存放 BadgeProps 等类型
|
|
24
25
|
],
|
|
25
26
|
"exclude": [
|
package/tsconfig.json
CHANGED
|
File without changes
|