uview-pro 0.0.5 → 0.0.6
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 +10 -0
- package/components/u-avatar-cropper/u-avatar-cropper.vue +1 -1
- package/components/u-avatar-cropper/weCropper.d.ts +45 -37
- package/components/u-avatar-cropper/weCropper.js +1246 -1260
- package/components/u-avatar-cropper/weCropper.ts +1 -0
- package/components/u-column-notice/u-column-notice.vue +7 -0
- package/components/u-icon/u-icon.vue +21 -21
- package/components/u-number-keyboard/u-number-keyboard.vue +2 -0
- package/components/u-rate/u-rate.vue +11 -4
- package/components/u-row-notice/u-row-notice.vue +10 -0
- package/components/u-tabbar/u-tabbar.vue +3 -1
- package/libs/function/colorGradient.ts +3 -1
- package/libs/util/async-validator.d.ts +62 -0
- package/package.json +3 -5
- package/types/components.d.ts +185 -0
- package/types/ignore-errors.d.ts +30 -0
- package/types/index.d.ts +127 -0
- package/types/uni-app.d.ts +61 -0
- package/components/u-parse/libs/CssHandler.js +0 -100
- package/components/u-parse/libs/MpHtmlParser.js +0 -580
- package/components/u-parse/libs/config.js +0 -80
- package/components/u-parse/libs/handler.wxs +0 -22
- package/components/u-parse/libs/trees.vue +0 -505
- package/components/u-parse/u-parse.vue +0 -645
package/changelog.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.0.6(2025-08-21)
|
|
2
|
+
|
|
3
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
4
|
+
|
|
5
|
+
- 修复中 tabbar 布局高度计算错误的问题 ([5c1342c](https://gitee.com/anyup/uView-Pro/commit/5c1342cb3fb6dd2c7c84fe785953fcaed13e809f))
|
|
6
|
+
|
|
7
|
+
### 📦 Build System | 打包构建
|
|
8
|
+
|
|
9
|
+
- 更新项目依赖并优化打包构建 ([c172d36](https://gitee.com/anyup/uView-Pro/commit/c172d368d82404564650756a872cd7c7e29ebfa2))
|
|
10
|
+
|
|
1
11
|
## 0.0.5(2025-08-19)
|
|
2
12
|
|
|
3
13
|
### ✨ Features | 新功能
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
|
|
40
40
|
<script setup lang="ts">
|
|
41
|
+
// @ts-nocheck
|
|
41
42
|
import { ref, reactive, onMounted } from 'vue';
|
|
42
43
|
import { $u } from '../..';
|
|
43
44
|
// 兼容 UMD/ESM 导入 weCropper.js
|
|
44
|
-
// @ts-ignore
|
|
45
45
|
import WeCropper from './weCropper';
|
|
46
46
|
|
|
47
47
|
defineOptions({ name: 'u-avatar-cropper' });
|
|
@@ -1,54 +1,62 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
/**
|
|
2
3
|
* we-cropper 类型声明文件
|
|
3
4
|
* 适用于 Vue3 + TypeScript 项目中 weCropper.js 的类型提示
|
|
4
5
|
*/
|
|
5
6
|
|
|
6
7
|
export interface WeCropperOptions {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
width?: number;
|
|
11
|
-
height?: number;
|
|
12
|
-
scale?: number;
|
|
13
|
-
zoom?: number;
|
|
14
|
-
cut?: {
|
|
15
|
-
x?: number;
|
|
16
|
-
y?: number;
|
|
8
|
+
id?: string;
|
|
9
|
+
targetId?: string;
|
|
10
|
+
pixelRatio?: number;
|
|
17
11
|
width?: number;
|
|
18
12
|
height?: number;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
scale?: number;
|
|
14
|
+
zoom?: number;
|
|
15
|
+
cut?: {
|
|
16
|
+
x?: number;
|
|
17
|
+
y?: number;
|
|
18
|
+
width?: number;
|
|
19
|
+
height?: number;
|
|
20
|
+
};
|
|
21
|
+
boundStyle?: {
|
|
22
|
+
lineWidth?: number;
|
|
23
|
+
borderColor?: string;
|
|
24
|
+
mask?: string;
|
|
25
|
+
color?: string;
|
|
26
|
+
};
|
|
27
|
+
[key: string]: any;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export type WeCropperEvent = (ctx: any, instance?: any) => void;
|
|
30
31
|
|
|
31
32
|
export interface WeCropperInstance {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
pushOrign(src: string): Promise<void>;
|
|
34
|
+
pushOrigin(src: string): Promise<void>;
|
|
35
|
+
removeImage(): Promise<void>;
|
|
36
|
+
getCropperBase64(done?: (base64: string) => void): void;
|
|
37
|
+
getCropperImage(opt: any, fn: (path: string, err: any) => void): void;
|
|
38
|
+
update(): void;
|
|
39
|
+
touchStart(e: any): void;
|
|
40
|
+
touchMove(e: any): void;
|
|
41
|
+
touchEnd(e: any): void;
|
|
42
|
+
on(event: 'ready' | 'beforeImageLoad' | 'imageLoad' | 'beforeDraw', fn: WeCropperEvent): WeCropperInstance;
|
|
43
|
+
// 其它动态方法
|
|
44
|
+
[key: string]: any;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
// WeCropper 类型声明文件
|
|
48
|
+
declare class WeCropper {
|
|
49
|
+
constructor(params: any);
|
|
50
|
+
|
|
51
|
+
// 事件方法
|
|
52
|
+
on(event: string, callback: (ctx?: any) => void): WeCropper;
|
|
53
|
+
|
|
54
|
+
// 其他方法
|
|
55
|
+
pushOrign(src: string): void;
|
|
56
|
+
getCropperImage(callback?: (tempFilePath: string) => void): void;
|
|
57
|
+
|
|
58
|
+
// 属性
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
}
|
|
53
61
|
|
|
54
62
|
export default WeCropper;
|