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.
@@ -1,10 +1,11 @@
1
1
  // src/types/index.d.ts
2
2
 
3
3
  /* ----------------------------------
4
- * 1️⃣ 导出组件 & props(给 TS 模块 import 用)
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, Plugin } from 'vue'
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 { ProgressProps } from '../components/progress/types'
107
- import type { LoadmoreProps } from '../components/loadMore/types'
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
- // Badge: typeof import('../components/badge')['default'] & {
123
- // install(app: App): void
124
- // // __props: BadgeProps
125
- // },
126
- Badge: typeof import('../components/badge')['default'],
127
- Popup: typeof import('../components/popup')['default'],
128
- ActionSheet: typeof import('../components/actionSheet')['default'],
129
- Card: typeof import('../components/card')['default'],
130
- Rater: typeof import('../components/rater')['default'],
131
- Cell: typeof import('../components/cell')['default'],
132
- CellSwipe: typeof import('../components/cellSwipe')['default'],
133
- DpHeader: typeof import('../components/header')['default'],
134
- Spinner: typeof import('../components/spinner')['default'],
135
- Swipe: typeof import('../components/swipe')['default'],
136
- DpButton: typeof import('../components/button')['default'],
137
- Picker: typeof import('../components/picker')['default'],
138
- SwitchBar: typeof import('../components/switchbar')['default'],
139
- Tab: typeof import('../components/tab')['default'],
140
- TextBar: typeof import('../components/Text')['default'],
141
- Number: typeof import('../components/number')['default'],
142
- ToTop: typeof import('../components/toTop')['default'],
143
- Upload: typeof import('../components/upload')['default'],
144
- SlideBar: typeof import('../components/slideBar')['default'],
145
- DpProgress: typeof import('../components/progress')['default'],
146
- DpLoadMore: typeof import('../components/loadMore')['default'],
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
- declare const DpzVc3: Plugin
159
- export default DpzVc3
121
+ export const Dpzvc3UI: Plugin
122
+ export default Dpzvc3UI
160
123
 
161
124
  /* ----------------------------------
162
125
  * 4️⃣ 保证这是 module
@@ -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
- // "src/types/js-shims.d.ts",
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
@@ -30,7 +30,9 @@
30
30
  "src/**/*.ts",
31
31
  "src/**/*.d.ts",
32
32
  "src/**/*.vue",
33
- "src/**/*.tsx"],
33
+ "src/**/*.tsx",
34
+ "src/index.d.ts"
35
+ ],
34
36
  "exclude": [
35
37
  "node_modules",
36
38
  "dist",