dpzvc3-ui 3.1.0 → 3.1.1
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 +4 -3
- package/dist/dpzvc3.esm.js.map +1 -1
- package/dist/dpzvc3.esm.min.js.map +1 -1
- package/dist/dpzvc3.js +4 -3
- package/dist/dpzvc3.js.map +1 -1
- package/dist/dpzvc3.min.js.map +1 -1
- package/dist/types/index.d.ts +9 -2
- package/package.json +1 -1
- package/src/index.ts +4 -6
- package/src/types/index.d.ts +9 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export type { RadioBoxProps, RadioGroupProps } from '../components/radioBox/type
|
|
|
80
80
|
/* ----------------------------------
|
|
81
81
|
* 2️⃣ 全局组件声明(给 <template> 用)
|
|
82
82
|
* ---------------------------------- */
|
|
83
|
-
import type { App } from 'vue'
|
|
83
|
+
import type { App, Plugin } from 'vue'
|
|
84
84
|
import type { BadgeProps } from '../components/badge/types'
|
|
85
85
|
import type { PopupProps } from '../components/popup/types'
|
|
86
86
|
import type { ActionSheetProps } from '../components/actionSheet/types'
|
|
@@ -152,6 +152,13 @@ declare module 'vue' {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/* ----------------------------------
|
|
155
|
-
* 3️⃣
|
|
155
|
+
* 3️⃣ 默认导出整个组件库为 Vue 插件
|
|
156
|
+
* ---------------------------------- */
|
|
157
|
+
import type { Plugin } from 'vue'
|
|
158
|
+
declare const DpzVc3: Plugin
|
|
159
|
+
export default DpzVc3
|
|
160
|
+
|
|
161
|
+
/* ----------------------------------
|
|
162
|
+
* 4️⃣ 保证这是 module
|
|
156
163
|
* ---------------------------------- */
|
|
157
164
|
export {}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Vue 3 组件库入口 ts 版本
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import type { App } from 'vue'
|
|
5
|
+
import type { App,Plugin } from 'vue'
|
|
6
6
|
|
|
7
7
|
/* ========= 组件引入 ========= */
|
|
8
8
|
import DpButton from './components/button'
|
|
@@ -116,7 +116,7 @@ Object.keys(services).forEach((key) => {
|
|
|
116
116
|
})
|
|
117
117
|
|
|
118
118
|
/* ========= 全量 install ========= */
|
|
119
|
-
export const install = (app: App) => {
|
|
119
|
+
export const install: Plugin['install'] = (app: App) => {
|
|
120
120
|
if (!app) {
|
|
121
121
|
console.warn(
|
|
122
122
|
'dpzvc3 install: app is undefined, ensure you are using Vue 3 createApp'
|
|
@@ -168,8 +168,6 @@ export {
|
|
|
168
168
|
Badge,
|
|
169
169
|
Card
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
const DpzVc3: Plugin = { install }
|
|
172
172
|
/* ========= 默认导出 ========= */
|
|
173
|
-
export default
|
|
174
|
-
install
|
|
175
|
-
}
|
|
173
|
+
export default DpzVc3
|
package/src/types/index.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export type { RadioBoxProps, RadioGroupProps } from '../components/radioBox/type
|
|
|
80
80
|
/* ----------------------------------
|
|
81
81
|
* 2️⃣ 全局组件声明(给 <template> 用)
|
|
82
82
|
* ---------------------------------- */
|
|
83
|
-
import type { App } from 'vue'
|
|
83
|
+
import type { App, Plugin } from 'vue'
|
|
84
84
|
import type { BadgeProps } from '../components/badge/types'
|
|
85
85
|
import type { PopupProps } from '../components/popup/types'
|
|
86
86
|
import type { ActionSheetProps } from '../components/actionSheet/types'
|
|
@@ -152,6 +152,13 @@ declare module 'vue' {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/* ----------------------------------
|
|
155
|
-
* 3️⃣
|
|
155
|
+
* 3️⃣ 默认导出整个组件库为 Vue 插件
|
|
156
|
+
* ---------------------------------- */
|
|
157
|
+
import type { Plugin } from 'vue'
|
|
158
|
+
declare const DpzVc3: Plugin
|
|
159
|
+
export default DpzVc3
|
|
160
|
+
|
|
161
|
+
/* ----------------------------------
|
|
162
|
+
* 4️⃣ 保证这是 module
|
|
156
163
|
* ---------------------------------- */
|
|
157
164
|
export {}
|