uview-pro 0.0.4 → 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 CHANGED
@@ -1,3 +1,42 @@
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
+
11
+ ## 0.0.5(2025-08-19)
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ - 新增 u-city-select 城市选择器组件 ([0eb4806](https://gitee.com/anyup/uView-Pro/commit/0eb4806db3be39e1a6c6f33c9ea511d8445da884))
16
+ - 完善 u-button 的 open-type 支持类型 ([37c0db5](https://gitee.com/anyup/uView-Pro/commit/37c0db527258bca57dbd55d7013b633230489853))
17
+
18
+ ### 🐛 Bug Fixes | Bug 修复
19
+
20
+ - u-upload 暴露 lists 属性 ([09f8424](https://gitee.com/anyup/uView-Pro/commit/09f8424774baaee3b6fc7a42458949f8d5903951))
21
+ - u-upload 深度监听文件列表变化并优化事件触发 ([a41a571](https://gitee.com/anyup/uView-Pro/commit/a41a5719ddf9d6793b78c55a13025bbdc88fdfe3))
22
+
23
+ ### 🚀 Demos | 示例页面优化
24
+
25
+ - 优化关于页面布局和内容 ([ad5f6a4](https://gitee.com/anyup/uView-Pro/commit/ad5f6a47847999268b43b8c5dbf1a34cb8f70802))
26
+ - 删除分类数据文件 ([5ed7a11](https://gitee.com/anyup/uView-Pro/commit/5ed7a1113db58ff493ad606296a210358348affe))
27
+ - 重构 index list 页面 ([13d780e](https://gitee.com/anyup/uView-Pro/commit/13d780ea5acc4c8eed72062482735df826d4b37a))
28
+ - 更新商场菜单组件引用 ([a5f1bf3](https://gitee.com/anyup/uView-Pro/commit/a5f1bf3f256705d6cad028d60701b4b0544332de))
29
+ - 修改图片地址 ([c459893](https://gitee.com/anyup/uView-Pro/commit/c459893848936aa9a44e7bda3277ab1428109869))
30
+ - 重构 upload 上传组件示例页面 ([686831d](https://gitee.com/anyup/uView-Pro/commit/686831de357aca67bbf7015e2f0696cf6bf48164))
31
+ - 优化多个组件的代码结构和样式 ([f2af44c](https://gitee.com/anyup/uView-Pro/commit/f2af44ca1710334495e4c4fad99d04027b3788f8))
32
+ - 添加提交规范相关配置文件 git-cz/husky/changelog ([d93b816](https://gitee.com/anyup/uView-Pro/commit/d93b816a5a3e468c4bc45e3161d7c006cba5fbf6))
33
+ - 优化 deepClone 和 deepMerge 页面的结果展示 ([b0daa70](https://gitee.com/anyup/uView-Pro/commit/b0daa700b6a385e037d38dc1f10b3612596e2403))
34
+ - 新增优惠券模板 ([1b77762](https://gitee.com/anyup/uView-Pro/commit/1b777621615f7ebe9d83606d53650987c8b2c4e0))
35
+ - 更新 easycom 配置说明,一定要放在 custom 里,否则不生效 ([fc14bf9](https://gitee.com/anyup/uView-Pro/commit/fc14bf90cb77088d258e20e79e3d25820f37e97e))
36
+ - 添加模板示例页面 ([3336af4](https://gitee.com/anyup/uView-Pro/commit/3336af406161648d18578c988d9b3ad79b86059a))
37
+ - 新增模版相关页面 ([8925a02](https://gitee.com/anyup/uView-Pro/commit/8925a02f9fa88f4742d984f2ff02909afc6ad0d7))
38
+ - 重构 request 类,优化泛型支持 ([d7b2e6a](https://gitee.com/anyup/uView-Pro/commit/d7b2e6a224d96f717e5bdbaf09edb19b712ced47))
39
+
1
40
  ## 0.0.4(2025-08-14)
2
41
 
3
42
  ### 新增
@@ -31,3 +70,105 @@
31
70
  - 兼容安卓,iOS,微信小程序,H5 等
32
71
  - 详尽的文档支持,现代化的演示效果
33
72
  - 按需引入,精简打包体积
73
+
74
+ ### 基础组件(8)
75
+
76
+ - Color 色彩
77
+ - Icon 图标
78
+ - Image 图片
79
+ - Button 按钮
80
+ - Layout 布局
81
+ - Cell 单元格
82
+ - Badge 徽标数
83
+ - Tag 标签
84
+
85
+ ---
86
+
87
+ ### 表单组件(15)
88
+
89
+ - Form 表单
90
+ - Calendar 日历
91
+ - Select 列选择器
92
+ - Keyboard 键盘
93
+ - Picker 选择器
94
+ - Rate 评分
95
+ - Search 搜索
96
+ - NumberBox 步进器
97
+ - Upload 上传
98
+ - VerificationCode 验证码倒计时
99
+ - Field 输入框
100
+ - Checkbox 复选框
101
+ - Radio 单选框
102
+ - Switch 开关选择器
103
+ - Slider 滑动选择器
104
+
105
+ ---
106
+
107
+ ### 数据组件(4)
108
+
109
+ - Progress 进度条
110
+ - Table 表格
111
+ - CountDown 倒计时
112
+ - CountTo 数字滚动
113
+
114
+ ---
115
+
116
+ ### 反馈组件(10)
117
+
118
+ - ActionSheet 操作菜单
119
+ - AlertTips 警告提示
120
+ - Toast 消息提示
121
+ - NoticeBar 滚动通知
122
+ - TopTips 顶部提示
123
+ - SwipeAction 滑动单元格
124
+ - Collapse 折叠面板
125
+ - Popup 弹出层
126
+ - Modal 模态框
127
+ - fullScreen 压窗屏
128
+
129
+ ---
130
+
131
+ ### 布局组件(11)
132
+
133
+ - Line 线条
134
+ - Card 卡片
135
+ - Mask 遮罩层
136
+ - NoNetwork 无网络提示
137
+ - Grid 宫格布局
138
+ - Swiper 轮播图
139
+ - TimeLine 时间轴
140
+ - Skeleton 骨架屏
141
+ - Sticky 吸顶
142
+ - Waterfall 瀑布流
143
+ - Divider 分割线
144
+
145
+ ---
146
+
147
+ ### 导航组件(11)
148
+
149
+ - Dropdown 下拉菜单
150
+ - Tabbar 底部导航栏
151
+ - BackTop 返回顶部
152
+ - Navbar 导航栏
153
+ - Tabs 标签
154
+ - TabsSwiper 全屏选项卡
155
+ - Subsection 分段器
156
+ - IndexList 索引列表
157
+ - Steps 步骤条
158
+ - Empty 内容为空
159
+ - Section 查看更多
160
+
161
+ ---
162
+
163
+ ### 其他组件(8)
164
+
165
+ - MessageInput 验证码输入
166
+ - Loadmore 加载更多
167
+ - ReadMore 展开阅读更多
168
+ - LazyLoad 懒加载
169
+ - Gap 间隔槽
170
+ - Avatar 头像
171
+ - Link 超链接
172
+ - Loading 加载动画
173
+
174
+ ---
@@ -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
- id?: string;
8
- targetId?: string;
9
- pixelRatio?: number;
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
- boundStyle?: {
21
- lineWidth?: number;
22
- borderColor?: string;
23
- mask?: string;
24
- color?: string;
25
- };
26
- [key: string]: any;
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
- pushOrign(src: string): Promise<void>;
33
- pushOrigin(src: string): Promise<void>;
34
- removeImage(): Promise<void>;
35
- getCropperBase64(done?: (base64: string) => void): void;
36
- getCropperImage(opt: any, fn: (path: string, err: any) => void): void;
37
- update(): void;
38
- touchStart(e: any): void;
39
- touchMove(e: any): void;
40
- touchEnd(e: any): void;
41
- on(event: 'ready' | 'beforeImageLoad' | 'imageLoad' | 'beforeDraw', fn: WeCropperEvent): WeCropperInstance;
42
- // 其它动态方法
43
- [key: string]: any;
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
- * weCropper 构造函数类型
48
- */
49
- declare const WeCropper: {
50
- new (options: WeCropperOptions): WeCropperInstance;
51
- (options: WeCropperOptions): WeCropperInstance;
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;