uview-pro 0.0.6 → 0.0.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.
package/changelog.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 0.0.6(2025-08-21)
1
+ ## 0.0.7(2025-08-21)
2
2
 
3
3
  ### 🐛 Bug Fixes | Bug 修复
4
4
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-pro",
3
3
  "name": "uview-pro",
4
4
  "displayName": "uView Pro 基于Vue3+TS全面重构的UI组件库,拥有70+精选组件",
5
- "version": "0.0.6",
5
+ "version": "0.0.7",
6
6
  "description": "uView Pro,是全面支持Vue3的uni-app生态框架,70+精选组件已使用TypeScript重构,已全面支持uni-app Vue3.0",
7
7
  "main": "index.ts",
8
8
  "module": "index.ts",
@@ -91,95 +91,4 @@ declare module 'vue' {
91
91
  }
92
92
  }
93
93
 
94
- // 导出组件类型,供外部使用
95
- export interface UViewProComponents {
96
- uActionSheet: any;
97
- uAlertTips: any;
98
- uAvatar: any;
99
- uAvatarCropper: any;
100
- uBackTop: any;
101
- uBadge: any;
102
- uButton: any;
103
- uCalendar: any;
104
- uCard: any;
105
- uCarKeyboard: any;
106
- uCellGroup: any;
107
- uCellItem: any;
108
- uCheckbox: any;
109
- uCheckboxGroup: any;
110
- uCircleProgress: any;
111
- uCitySelect: any;
112
- uCol: any;
113
- uCollapse: any;
114
- uCollapseItem: any;
115
- uColumnNotice: any;
116
- uCountDown: any;
117
- uCountTo: any;
118
- uDivider: any;
119
- uDropdown: any;
120
- uDropdownItem: any;
121
- uEmpty: any;
122
- uField: any;
123
- uForm: any;
124
- uFormItem: any;
125
- uFullScreen: any;
126
- uGap: any;
127
- uGrid: any;
128
- uGridItem: any;
129
- uIcon: any;
130
- uImage: any;
131
- uIndexAnchor: any;
132
- uIndexList: any;
133
- uInput: any;
134
- uKeyboard: any;
135
- uLazyLoad: any;
136
- uLine: any;
137
- uLineProgress: any;
138
- uLink: any;
139
- uLoadMore: any;
140
- uLoading: any;
141
- uMask: any;
142
- uMessageInput: any;
143
- uModal: any;
144
- uNavbar: any;
145
- uNoNetwork: any;
146
- uNoticeBar: any;
147
- uNumberBox: any;
148
- uNumberKeyboard: any;
149
- uPicker: any;
150
- uPopup: any;
151
- uRadio: any;
152
- uRadioGroup: any;
153
- uRate: any;
154
- uReadMore: any;
155
- uRow: any;
156
- uRowNotice: any;
157
- uSearch: any;
158
- uSection: any;
159
- uSelect: any;
160
- uSkeleton: any;
161
- uSlider: any;
162
- uSteps: any;
163
- uSticky: any;
164
- uSubsection: any;
165
- uSwipeAction: any;
166
- uSwiper: any;
167
- uSwitch: any;
168
- uTabbar: any;
169
- uTable: any;
170
- uTabs: any;
171
- uTabsSwiper: any;
172
- uTag: any;
173
- uTd: any;
174
- uTh: any;
175
- uTimeLine: any;
176
- uTimeLineItem: any;
177
- uToast: any;
178
- uTopTips: any;
179
- uTr: any;
180
- uUpload: any;
181
- uVerificationCode: any;
182
- uWaterfall: any;
183
- }
184
-
185
94
  export {};
package/types/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
- import http from './libs/request/index';
1
+ /// <reference path="./components.d.ts" />
2
+ /// <reference path="./uni-app.d.ts" />
3
+
4
+ import http from '../libs/request/index';
2
5
  import queryParams from '../libs/function/queryParams';
3
6
  import route from '../libs/function/route';
4
7
  import timeFormat from '../libs/function/timeFormat';
@@ -29,10 +32,8 @@ import { mitt } from '../libs/util/mitt';
29
32
 
30
33
  // uview-pro 模块类型声明
31
34
  declare module 'uview-pro' {
32
- import { App } from 'vue';
33
-
34
35
  // 导出安装函数
35
- export function install(app: App): void;
36
+ export function install(): void;
36
37
 
37
38
  // 导出 $u 工具类型
38
39
  export interface $Utils {
@@ -42,7 +43,7 @@ declare module 'uview-pro' {
42
43
  date: typeof timeFormat;
43
44
  timeFrom: typeof timeFrom;
44
45
  colorGradient: typeof colorGradient.colorGradient;
45
- colorToRgb: typeof colorGradient.colorToRgb;
46
+ colorToRgba: typeof colorGradient.colorToRgba;
46
47
  guid: typeof guid;
47
48
  color: typeof color;
48
49
  sys: typeof sys;
@@ -77,40 +78,6 @@ declare module 'uview-pro' {
77
78
  mitt: ReturnType<typeof mitt>;
78
79
  getRect: typeof getRect;
79
80
  }
80
-
81
- // 导出组件类型
82
- export * from './components';
83
-
84
- // 导出工具函数类型
85
- export * from './libs/request/index';
86
- export * from './libs/function/queryParams';
87
- export * from './libs/function/route';
88
- export * from './libs/function/timeFormat';
89
- export * from './libs/function/timeFrom';
90
- export * from './libs/function/colorGradient';
91
- export * from './libs/function/guid';
92
- export * from './libs/function/color';
93
- export * from './libs/function/type2icon';
94
- export * from './libs/function/randomArray';
95
- export * from './libs/function/deepClone';
96
- export * from './libs/function/deepMerge';
97
- export * from './libs/function/addUnit';
98
- export * from './libs/function/test';
99
- export * from './libs/function/random';
100
- export * from './libs/function/trim';
101
- export * from './libs/function/toast';
102
- export * from './libs/function/getParent';
103
- export * from './libs/function/$parent';
104
- export * from './libs/function/debounce';
105
- export * from './libs/function/throttle';
106
- export * from './libs/function/getRect';
107
- export * from './libs/function/sys';
108
- export * from './libs/config/config';
109
- export * from './libs/config/zIndex';
110
- export * from './libs/util/emitter';
111
- export * from './libs/util/mitt';
112
- // 导出 uni-app 全局属性类型声明
113
- export * from './uni-app.d';
114
81
  }
115
82
 
116
83
  // 全局类型扩展
@@ -118,10 +85,6 @@ declare global {
118
85
  interface Uni {
119
86
  $u: import('uview-pro').$Utils;
120
87
  }
121
-
122
- interface Window {
123
- $u: import('uview-pro').$Utils;
124
- }
125
88
  }
126
89
 
127
90
  export {};
@@ -59,3 +59,5 @@ declare global {
59
59
  }
60
60
  }
61
61
  }
62
+
63
+ export {};