uview-plus 3.6.29 → 3.7.13

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.
Files changed (124) hide show
  1. package/README.md +20 -5
  2. package/changelog.md +352 -0
  3. package/components/u-action-sheet/actionSheet.js +2 -0
  4. package/components/u-action-sheet/props.js +10 -0
  5. package/components/u-action-sheet/u-action-sheet.vue +3 -3
  6. package/components/u-album/album.js +1 -1
  7. package/components/u-avatar/avatar.js +4 -4
  8. package/components/u-avatar-group/avatarGroup.js +4 -4
  9. package/components/u-back-top/backtop.js +4 -4
  10. package/components/u-badge/badge.js +4 -4
  11. package/components/u-box/box.js +24 -0
  12. package/components/u-box/props.js +37 -7
  13. package/components/u-box/u-box.vue +29 -14
  14. package/components/u-button/button.js +4 -4
  15. package/components/u-calendar/calendar.js +4 -4
  16. package/components/u-canvas/u-canvas.vue +423 -0
  17. package/components/u-car-keyboard/carKeyboard.js +4 -4
  18. package/components/u-cascader/u-cascader.vue +19 -10
  19. package/components/u-cate-tab/u-cate-tab.vue +14 -4
  20. package/components/u-cell/cell.js +4 -4
  21. package/components/u-cell-group/cellGroup.js +4 -4
  22. package/components/u-checkbox/checkbox.js +4 -4
  23. package/components/u-checkbox-group/checkboxGroup.js +4 -4
  24. package/components/u-checkbox-group/u-checkbox-group.vue +4 -1
  25. package/components/u-circle-progress/circleProgress.js +4 -4
  26. package/components/u-code/code.js +3 -3
  27. package/components/u-code-input/codeInput.js +4 -4
  28. package/components/u-col/col.js +4 -4
  29. package/components/u-collapse/collapse.js +4 -4
  30. package/components/u-collapse-item/collapseItem.js +4 -4
  31. package/components/u-column-notice/columnNotice.js +4 -4
  32. package/components/u-count-down/countDown.js +4 -4
  33. package/components/u-count-to/countTo.js +4 -4
  34. package/components/u-cropper/u-cropper.vue +6 -3
  35. package/components/u-datetime-picker/datetimePicker.js +4 -4
  36. package/components/u-divider/divider.js +4 -4
  37. package/components/u-dragsort/u-dragsort.vue +85 -72
  38. package/components/u-empty/empty.js +4 -4
  39. package/components/u-form/form.js +4 -4
  40. package/components/u-form-item/formItem.js +4 -4
  41. package/components/u-gap/gap.js +4 -4
  42. package/components/u-grid/grid.js +4 -4
  43. package/components/u-grid/u-grid.vue +1 -1
  44. package/components/u-grid-item/gridItem.js +4 -4
  45. package/components/u-icon/icon.js +4 -4
  46. package/components/u-image/image.js +4 -4
  47. package/components/u-index-anchor/indexAnchor.js +4 -4
  48. package/components/u-index-list/indexList.js +4 -4
  49. package/components/u-input/input.js +1 -1
  50. package/components/u-input/u-input.vue +5 -2
  51. package/components/u-keyboard/keyboard.js +4 -4
  52. package/components/u-line/line.js +4 -4
  53. package/components/u-line-progress/lineProgress.js +4 -4
  54. package/components/u-link/link.js +4 -4
  55. package/components/u-list/list.js +4 -4
  56. package/components/u-list/u-list.vue +4 -1
  57. package/components/u-list-item/listItem.js +4 -4
  58. package/components/u-loading-icon/loadingIcon.js +4 -4
  59. package/components/u-loading-page/loadingPage.js +4 -4
  60. package/components/u-loadmore/loadmore.js +4 -4
  61. package/components/u-modal/modal.js +5 -5
  62. package/components/u-navbar/navbar.js +4 -4
  63. package/components/u-no-network/noNetwork.js +4 -4
  64. package/components/u-no-network/u-no-network.vue +7 -3
  65. package/components/u-notice-bar/noticeBar.js +4 -4
  66. package/components/u-notify/notify.js +4 -4
  67. package/components/u-number-box/numberBox.js +4 -4
  68. package/components/u-number-keyboard/numberKeyboard.js +4 -4
  69. package/components/u-overlay/overlay.js +4 -4
  70. package/components/u-parse/props.js +1 -1
  71. package/components/u-picker/picker.js +4 -4
  72. package/components/u-picker/props.js +4 -0
  73. package/components/u-picker/u-picker.vue +1 -1
  74. package/components/u-popup/popup.js +4 -4
  75. package/components/u-qrcode/qrcode.js +17 -67
  76. package/components/u-qrcode/u-qrcode.vue +179 -86
  77. package/components/u-radio/radio.js +4 -4
  78. package/components/u-radio-group/radioGroup.js +3 -3
  79. package/components/u-rate/rate.js +4 -4
  80. package/components/u-read-more/readMore.js +4 -4
  81. package/components/u-row/row.js +4 -4
  82. package/components/u-row-notice/rowNotice.js +4 -4
  83. package/components/u-scroll-list/scrollList.js +4 -4
  84. package/components/u-search/search.js +7 -5
  85. package/components/u-search/u-search.vue +2 -2
  86. package/components/u-section/section.js +4 -4
  87. package/components/u-select/u-select.vue +7 -1
  88. package/components/u-signature/u-signature.vue +138 -137
  89. package/components/u-skeleton/skeleton.js +4 -4
  90. package/components/u-slider/props.js +17 -2
  91. package/components/u-slider/slider.js +10 -7
  92. package/components/u-slider/u-slider.vue +112 -35
  93. package/components/u-status-bar/statusBar.js +4 -4
  94. package/components/u-steps/steps.js +4 -4
  95. package/components/u-steps/u-steps.vue +1 -1
  96. package/components/u-steps-item/stepsItem.js +4 -4
  97. package/components/u-sticky/sticky.js +4 -4
  98. package/components/u-subsection/subsection.js +4 -4
  99. package/components/u-swipe-action/swipeAction.js +4 -4
  100. package/components/u-swipe-action-item/swipeActionItem.js +4 -4
  101. package/components/u-swiper/swiper.js +4 -4
  102. package/components/u-swiper-indicator/swipterIndicator.js +4 -4
  103. package/components/u-switch/switch.js +4 -4
  104. package/components/u-tabbar/tabbar.js +4 -4
  105. package/components/u-tabbar-item/tabbarItem.js +4 -4
  106. package/components/u-tabs/tabs.js +4 -4
  107. package/components/u-tabs/u-tabs.vue +83 -95
  108. package/components/u-tag/tag.js +4 -4
  109. package/components/u-text/text.js +4 -4
  110. package/components/u-textarea/textarea.js +4 -4
  111. package/components/u-toast/toast.js +4 -4
  112. package/components/u-toolbar/toolbar.js +4 -4
  113. package/components/u-tooltip/tooltip.js +4 -4
  114. package/components/u-transition/transition.js +4 -4
  115. package/components/u-upload/upload.js +4 -4
  116. package/libs/css/flex.scss +2 -1
  117. package/libs/function/index.js +9 -4
  118. package/libs/util/gcanvas/bridge/bridge-weex.js +2 -1
  119. package/libs/util/gcanvas/env/image.js +24 -16
  120. package/package.json +2 -4
  121. package/types/comps/radio.d.ts +6 -2
  122. package/types/func.d.ts +317 -0
  123. package/types/index.d.ts +73 -105
  124. package/components/u-scroll-list/other.js +0 -0
package/README.md CHANGED
@@ -12,7 +12,19 @@
12
12
 
13
13
  ## 说明
14
14
 
15
- uview-plus,是uni-app全面兼容vue3/nvue/鸿蒙/uni-app-x(即将发布)的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。uview-plus是基于uView2.x移植的支持vue3的版本,感谢uView。
15
+ 【文档有广告,不喜勿入谢谢】
16
+
17
+ uview-plus,是uni-app全面兼容vue3/nvue/鸿蒙/uni-app-x(已经发布https://ext.dcloud.net.cn/plugin?name=uview-ultra)的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。uview-plus是基于uView2.x移植的支持vue3的版本,感谢uView。
18
+
19
+ ## 版本
20
+
21
+ ### uview-plus v3 (uni-app版本)
22
+ 1. 保持选项式API,尽可能兼容原有uview2各种API,比如mixins,方便大家升级更容易;
23
+ 2. 新手友好,保持原汁原味js,二次开发方便,未使用typescript重写,但带有独立的类型申明包;
24
+
25
+ ### uview-ultra v4 (uni-app-x版本)
26
+ 1. 尽可能保持原有组件的API一致,方便大家升级;
27
+ 2. 使用uts + 组合式API架构级全新重构,但仍然保持源码的简易,不封装过于复杂,便于修改。
16
28
 
17
29
  ## 可视化设计
18
30
 
@@ -32,7 +44,13 @@ uview-plus现已推出免费可视化设计,可以方便的进行页面可视
32
44
  您可以通过**微信**扫码,查看最佳的演示效果。
33
45
  <br>
34
46
  <br>
35
- <img src="https://uview-plus.jiangruyi.com/common/h5_qrcode.png" width="220" height="220" >
47
+
48
+ | H5 | 微信小程序 | 安卓 | 鸿蒙Next(已上架) |
49
+ | --- | --- | --- | --- |
50
+ | <img src="https://uview-plus.jiangruyi.com/common/h5_qrcode.png" width="160" height="160" /> | <img src="https://uview-plus.jiangruyi.com/common/weixin_mini_qrcode.jpg" width="160" height="160" /> | <img src="https://uview-plus.jiangruyi.com/common/android_qrcode.png" width="160" height="160" /> | <img src="https://uview-plus.jiangruyi.com/common/hos_qrcode.jpg" width="160" height="160" /> |
51
+ <br>
52
+ <img src="https://uview-plus.jiangruyi.com/common/hos.png">
53
+
36
54
 
37
55
  ## 链接
38
56
 
@@ -41,9 +59,6 @@ uview-plus现已推出免费可视化设计,可以方便的进行页面可视
41
59
  - [升级指南](https://uview-plus.jiangruyi.com/components/changeGuide.html)
42
60
  - [关于我们](https://uview-plus.jiangruyi.com/cooperation/about.html)
43
61
 
44
- ## 交流反馈
45
-
46
- 欢迎加入我们的QQ群交流反馈:[点此跳转](https://uview-plus.jiangruyi.com/components/addQQGroup.html)
47
62
 
48
63
  ## 关于PR
49
64
 
package/changelog.md CHANGED
@@ -1,3 +1,355 @@
1
+ ## 3.7.13(2026-02-07)
2
+ add: 新增up-canvas组件
3
+
4
+ ## 3.7.12(2026-02-07)
5
+ improvment: 优化签名组件兼容性修复微信小程序支持
6
+
7
+ ## 3.7.11(2026-02-06)
8
+ add: action-sheet组件新增nameKey和subnameKey属性
9
+
10
+ ## 3.7.10(2026-02-06)
11
+ add: checkbox-group组件的change事件增加第二个返回参数为当前触发变化的checkbox组件name信息等
12
+
13
+ ## 3.7.9(2026-02-06)
14
+ fix: 修复align-self属性值缺少d导致样式不生效的问题
15
+
16
+ ## 3.7.8(2026-02-05)
17
+ improvment: 优化card组件示例
18
+
19
+ ## 3.7.7(2026-02-05)
20
+ add: select组件新增closeSelect方法用于自定义控制关闭
21
+
22
+
23
+ ## 3.7.6(2026-02-04)
24
+ add: picker组件示例onLoad后加载数据
25
+
26
+ ## 3.7.5(2026-02-03)
27
+ add: up-slider组件新增垂直模式
28
+
29
+ ## 3.7.4(2026-02-03)
30
+ add: box组件props优化及新增leftIcon/leftTitle/rightTopIcon/rightTopTitle/rightBottomIcon/rightBottomTitle参数
31
+
32
+ ## 3.7.3(2026-02-03)
33
+ improvment: city-locate组件示例改为组合式API
34
+
35
+ ## 3.7.2(2026-02-02)
36
+ improvment: color-picker组件示例改为组合式API
37
+
38
+ ## 3.7.1(2026-02-02)
39
+ fix:修复qrcode缺失的preview定义emit
40
+
41
+ ## 3.7.0(2026-02-01)
42
+ fix: 修复up-qrcode二维码在微信小程序报错
43
+
44
+ ## 3.6.134(2026-01-30)
45
+ chore: dragsort可通过参数控制是否可震动
46
+
47
+ ## 3.6.132(2026-01-30)
48
+ feat: dragsort支持自定义拖动句柄
49
+
50
+ ## 3.6.131(2026-01-29)
51
+ fix: 优化dragdort组件
52
+
53
+ ## 3.6.130(2026-01-28)
54
+ improvment: cropper组件示例改为组合式API
55
+
56
+ ## 3.6.129(2026-01-28)
57
+ improvment: drag组件示例改为组合式API
58
+
59
+ ## 3.6.128(2026-01-27)
60
+ improvment: tooltip组件示例改为组合式API
61
+
62
+ ## 3.6.127(2026-01-27)
63
+ improvment: textarea组件示例改为组合式API
64
+
65
+ ## 3.6.126(2026-01-27)
66
+ improvment: text组件示例改为组合式API
67
+
68
+ ## 3.6.125(2026-01-27)
69
+ fix: 修复Cascader级联选择器设置默认值显示问题
70
+
71
+ 修复在传入默认值时多列只会显示第一列bug
72
+
73
+ ## 3.6.124(2026-01-27)
74
+ improvment: tabs组件示例改为组合式API
75
+
76
+ ## 3.6.123(2026-01-27)
77
+ improvment: swiper组件示例改为组合式API
78
+
79
+ ## 3.6.122(2026-01-26)
80
+ fix: 🐛 修复u-input在change事件里无法获取value的异常情况 #950
81
+
82
+ ## 3.6.120(2026-01-26)
83
+ improvment: 增加Cascader级联选择器的取消事件
84
+
85
+ ## 3.6.119(2026-01-26)
86
+ improvment: skeleton组件示例改为组合式API
87
+
88
+ ## 3.6.118(2026-01-26)
89
+ improvment: steps组件示例改为组合式API
90
+
91
+ ## 3.6.117(2026-01-24)
92
+ improvment: subsection组就示例改为组合式API
93
+
94
+ ## 3.6.116(2026-01-24)
95
+ improvment: 优化Cascader级联选择器右上角关闭图标的显示控制
96
+
97
+ 如果在级联文本过长或者类目过多时关闭图标会与类目文字重合,现在增加控制关闭图标的控制可以控制是否需要显示关闭图标,底部有取消按钮,关闭图标不是必须的
98
+
99
+ ## 3.6.115(2026-01-23)
100
+ improvment: scroll-list组就示例改为组合式API
101
+
102
+ ## 3.6.114(2026-01-23)
103
+ improvment: readmore组就示例改为组合式API
104
+
105
+ ## 3.6.113(2026-01-23)
106
+ improvment: popover组就示例改为组合式API
107
+
108
+ ## 3.6.112(2026-01-23)
109
+ improvment: picker组件示例改为组合式API
110
+
111
+ ## 3.6.111(2026-01-23)
112
+ improvment: no-network组件示例改为组合式API
113
+
114
+ ## 3.6.110(2026-01-22)
115
+ improvment: navbar组件示例改为组合式API
116
+
117
+ ## 3.6.109(2026-01-22)
118
+ improvment: modal组件示例改为组合式API
119
+
120
+ ## 3.6.108(2026-01-22)
121
+ improvment: loadmore组件示例改为组合式API
122
+
123
+ ## 3.6.107(2026-01-21)
124
+ improvment: list组件示例改为组合式API
125
+
126
+ ## 3.6.106(2026-01-21)
127
+ improvment: index-list2组件示例改为组合式API
128
+
129
+ ## 3.6.105(2026-01-21)
130
+ improvment: index-list组件示例改为组合式API
131
+
132
+ ## 3.6.104(2026-01-21)
133
+ improvment: layout组件示例改为组合式API
134
+
135
+ ## 3.6.103(2026-01-21)
136
+ improvment: input组件示例改为组合式API
137
+
138
+ ## 3.6.102(2026-01-20)
139
+ fix: 修复cascader缺少emits申明
140
+
141
+ ## 3.6.101(2026-01-20)
142
+ improvment: form组件示例改为组合式API
143
+
144
+ ## 3.6.100(2026-01-20)
145
+ improvment: datetimepicker组件示例改为组合式API
146
+
147
+ ## 3.6.99(2026-01-20)
148
+ fix: 修复cate-tab组件设置默认current不生效
149
+
150
+ ## 3.6.98(2026-01-20)
151
+ improvment: code-input组件示例改为组合式API
152
+
153
+ ## 3.6.97(2026-01-20)
154
+ improvment: calendar组件示例改为组合式API
155
+
156
+ ## 3.6.96(2026-01-20)
157
+ improvment: avatar组件示例改为组合式API
158
+
159
+ ## 3.6.95(2026-01-20)
160
+ improvment: album组件示例改为组合式API
161
+
162
+ ## 3.6.94(2026-01-19)
163
+ improvment: waterfall组件示例改为组合式API
164
+
165
+ ## 3.6.93(2026-01-19)
166
+ improvment: upload组件示例改为组合式API
167
+
168
+ ## 3.6.92(2026-01-17)
169
+ improvment: toast组件示例改为组合式API
170
+
171
+ ## 3.6.91(2026-01-16)
172
+ improvment: tag组件示例改为组合式API
173
+
174
+ ## 3.6.90(2026-01-16)
175
+ improvment: table2组件示例改为组合式API
176
+
177
+ ## 3.6.89(2026-01-16)
178
+ add: 增加鸿蒙Next已上架二维码
179
+
180
+ ## 3.6.88(2026-01-16)
181
+ improvment: table组件示例改为组合式API
182
+
183
+ ## 3.6.87(2026-01-15)
184
+ tabbar2组件示例改为组合式API
185
+ ## 3.6.86(2026-01-15)
186
+ improvment: tabbar组件示例改为组合式API
187
+ ## 3.6.85(2026-01-15)
188
+ improvment: switch组件示例改为组合式API
189
+
190
+ ## 3.6.84(2026-01-15)
191
+ improvment: slider组件示例改为组合式API
192
+
193
+ ## 3.6.83(2026-01-15)
194
+ improvment: search组件示例改为组合式API
195
+
196
+ ## 3.6.82(2026-01-15)
197
+ improvment: progress组件示例改为组合式API
198
+
199
+ ## 3.6.81(2026-01-15)
200
+ improvment: parse组件示例改为组合式API
201
+
202
+
203
+ ## 3.6.80(2026-01-15)
204
+ improvment: number-box组件示例改为组合式API
205
+
206
+ ## 3.6.78(2026-01-15)
207
+ improvment: notify组件示例改为组合式API
208
+
209
+ ## 3.6.77(2026-01-15)
210
+ improvment: notice-bar组件示例改为组合式API
211
+
212
+ ## 3.6.76(2026-01-15)
213
+ improvment: keyborad组件示例改为组合式API
214
+
215
+ ## 3.6.75(2026-01-15)
216
+ improvment: dropdown组件示例改为组合式API
217
+
218
+ ## 3.6.74(2026-01-15)
219
+ fix: 修复parse组件props缺少)
220
+
221
+ ## 3.6.73(2026-01-15)
222
+ improvment: count-to组件示例改为组合式API
223
+
224
+ ## 3.6.72(2026-01-15)
225
+ improvment: count-down组件示例改为组合式API
226
+
227
+ ## 3.6.71(2026-01-14)
228
+ improvment: collapse组件示例改为组合式API
229
+
230
+ ## 3.6.70(2026-01-14)
231
+ improvment: code组件示例改为组合式API
232
+
233
+ ## 3.6.69(2026-01-14)
234
+ improvment: card组件示例改为组合式API
235
+
236
+ ## 3.6.68(2026-01-13)
237
+ fix: 修复list组件在支付宝小程序下scrolltolower无法触发 #422
238
+ ## 3.6.67(2026-01-13)
239
+ fix: 删除经典下拉框的打印
240
+
241
+ ## 3.6.66(2026-01-12)
242
+ fix: 修正 RadioSlots 类型定义
243
+
244
+ ## 3.6.65(2026-01-12)
245
+ fix: 修复u-picker在hasInput下回显异常和vue报错
246
+
247
+ ## 3.6.64(2026-01-12)
248
+ fix: 解决cropper在ios小程序中底部操作栏被遮挡的问题
249
+
250
+ ## 3.6.63(2026-01-10)
251
+ improvment: badge组建示例改为组合式API
252
+
253
+ ## 3.6.62(2026-01-10)
254
+ improvment: alert组件示例改为组合式API
255
+
256
+ ## 3.6.61(2026-01-09)
257
+ improvment: action-sheet组件示例改为组合式API
258
+
259
+ ## 3.6.60(2026-01-09)
260
+ improvment: transition组件示例改为组合式API
261
+
262
+ ## 3.6.59(2026-01-09)
263
+ improvment: swipe-action组件示例改为组合式API
264
+
265
+ ## 3.6.58(2026-01-09)
266
+ improvment: sticky组件示例改为组合式API
267
+
268
+ ## 3.6.57(2026-01-08)
269
+ improvment: 优化完善no-nerwork组件细节
270
+
271
+ ## 3.6.56(2026-01-08)
272
+ fix: 修复signature的t方法
273
+
274
+ ## 3.6.55(2026-01-08)
275
+ perf:补充多处TS声明提示信息 #953
276
+
277
+ ## 3.6.54(2026-01-08)
278
+ fix: 修复slider示例页面变量重复
279
+ ## 3.6.53(2026-01-08)
280
+ fix: 修复qrcode组件鸿蒙兼容
281
+
282
+ ## 3.6.52(2026-01-08)
283
+ fix: nvue下采用webview支持二维码显示logo(因为gcanvas不支持图片渲染)
284
+
285
+ ## 3.6.51(2026-01-08)
286
+ fix: 修复qrcode组件在App不显示logo
287
+
288
+ improvment: qrcode逻辑优化封装
289
+
290
+ ## 3.6.50(2026-01-06)
291
+ improvment: rate组件示例改为组合式API
292
+
293
+ ## 3.6.49(2026-01-06)
294
+ improvment: radio组件示例改为组合式API
295
+
296
+ ## 3.6.48(2026-01-06)
297
+ improvment: popup组件示例改为组合式API
298
+
299
+ ## 3.6.47(2026-01-06)
300
+ improvment: overlay示例改为组合式API
301
+
302
+ ## 3.6.46(2026-01-05)
303
+ improvment: loading-page组建示例改为组合式API
304
+
305
+ ## 3.6.45(2026-01-05)
306
+ improvment: loading-icon组件示例改为组合式API
307
+
308
+ ## 3.6.44(2026-01-05)
309
+ improvment: link组件示例改为组合式API
310
+
311
+ ## 3.6.43(2026-01-05)
312
+ improvment: line组件示例改为组合式API
313
+
314
+ ## 3.6.42(2026-01-04)
315
+ improvment: layzload组件示例改为组合式API
316
+
317
+ ## 3.6.41(2026-01-04)
318
+ fix: 修复select组件缺少mixin
319
+
320
+ ## 3.6.40(2026-01-04)
321
+ improvment: 去除ReadmeQQ群链接
322
+
323
+ ## 3.6.39(2026-01-04)
324
+ improvment: image组件示例改为组合式API
325
+
326
+ ## 3.6.38(2026-01-03)
327
+ improvment: icon示例改为组合式API
328
+
329
+ ## 3.6.37(2025-12-31)
330
+ improvment: 静态资源修复
331
+
332
+ ## 3.6.36(2025-12-30)
333
+ improvment: grid示例改为组合式API
334
+
335
+ ## 3.6.35(2025-12-25)
336
+ fix: 修复grid布局由于内容溢出导致形变
337
+
338
+ ## 3.6.34(2025-12-24)
339
+ fix: modal组件asyncCloseTip多语言key未对应
340
+
341
+ ## 3.6.33(2025-12-23)
342
+ fix: 提升$parent方法兼容性修复表单验证失效
343
+
344
+ ## 3.6.32(2025-12-21)
345
+ improvment: 优化slider、search、steps等组件细节
346
+
347
+ ## 3.6.31(2025-12-19)
348
+ improvment: 优化search组件等
349
+
350
+ ## 3.6.30(2025-12-19)
351
+ improvment: 优化完善部分文件注释
352
+
1
353
  ## 3.6.29(2025-12-18)
2
354
  fix: 修复语法错
3
355
  ## 3.6.28(2025-12-18)
@@ -14,6 +14,8 @@ export default {
14
14
  title: '',
15
15
  description: '',
16
16
  actions: [],
17
+ nameKey: 'name',
18
+ subnameKey: 'subnameKey',
17
19
  index: '',
18
20
  cancelText: '',
19
21
  closeOnClickAction: true,
@@ -31,6 +31,16 @@ export const props = defineMixin({
31
31
  type: Array,
32
32
  default: () => defProps.actionSheet.actions
33
33
  },
34
+ // 选项名称key
35
+ nameKey: {
36
+ type: String,
37
+ default: () => defProps.actionSheet.nameKey
38
+ },
39
+ // 选项子名称key
40
+ subnameKey: {
41
+ type: String,
42
+ default: () => defProps.actionSheet.subnameKey
43
+ },
34
44
  // 取消按钮的文字,不为空时显示按钮
35
45
  cancelText: {
36
46
  type: String,
@@ -71,11 +71,11 @@
71
71
  <text
72
72
  class="u-action-sheet__item-wrap__item__name"
73
73
  :style="[itemStyle(index)]"
74
- >{{ item.name }}</text>
74
+ >{{ item[nameKey] }}</text>
75
75
  <text
76
- v-if="item.subname"
76
+ v-if="item[subnameKey]"
77
77
  class="u-action-sheet__item-wrap__item__subname"
78
- >{{ item.subname }}</text>
78
+ >{{ item[subnameKey] }}</text>
79
79
  </template>
80
80
  <!-- 加载状态图标 -->
81
81
  <u-loading-icon
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * @Author : LQ
3
3
  * @Description :
4
- * @version : 1.0
4
+ * @version : 3.0
5
5
  * @Date : 2021-08-20 16:44:21
6
6
  * @LastAuthor : jry
7
7
  * @lastTime : 2025-08-16 16:32:24
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * @Author : LQ
3
3
  * @Description :
4
- * @version : 1.0
4
+ * @version : 3.0
5
5
  * @Date : 2021-08-20 16:44:21
6
- * @LastAuthor : LQ
7
- * @lastTime : 2021-08-20 16:49:22
8
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
6
+ * @LastAuthor : jry
7
+ * @lastTime : 2025-12-19 08:55:21
8
+ * @FilePath : /uview-plus/libs/config/props/avatar.js
9
9
  */
10
10
  export default {
11
11
  // avatar 组件
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * @Author : LQ
3
3
  * @Description :
4
- * @version : 1.0
4
+ * @version : 3.0
5
5
  * @Date : 2021-08-20 16:44:21
6
- * @LastAuthor : LQ
7
- * @lastTime : 2021-08-20 16:49:55
8
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
6
+ * @LastAuthor : jry
7
+ * @lastTime : 2025-12-19 08:55:21
8
+ * @FilePath : /uview-plus/libs/config/props/avatarGroup.js
9
9
  */
10
10
  export default {
11
11
  // avatarGroup 组件
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * @Author : LQ
3
3
  * @Description :
4
- * @version : 1.0
4
+ * @version : 3.0
5
5
  * @Date : 2021-08-20 16:44:21
6
- * @LastAuthor : LQ
7
- * @lastTime : 2021-08-20 16:50:18
8
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
6
+ * @LastAuthor : jry
7
+ * @lastTime : 2025-12-19 08:55:21
8
+ * @FilePath : /uview-plus/libs/config/props/backtop.js
9
9
  */
10
10
  export default {
11
11
  // backtop组件
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * @Author : LQ
3
3
  * @Description :
4
- * @version : 1.0
4
+ * @version : 3.0
5
5
  * @Date : 2021-08-20 16:44:21
6
- * @LastAuthor : LQ
7
- * @lastTime : 2021-08-23 19:51:50
8
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
6
+ * @LastAuthor : jry
7
+ * @lastTime : 2025-12-19 08:55:21
8
+ * @FilePath : /uview-plus/libs/config/props/badge.js
9
9
  */
10
10
  export default {
11
11
  // 徽标数组件
@@ -0,0 +1,24 @@
1
+ /*
2
+ * @Author : ly
3
+ * @Description :
4
+ * @version : 4.0
5
+ * @Date : 2026-02-02 23:54:58
6
+ * @LastAuthor : ly
7
+ * @lastTime : 2026-02-02 23:54:58
8
+ * @FilePath : /uview-ultra/components/up-box/box.js
9
+ */
10
+ export default {
11
+ // box 组件
12
+ box: {
13
+ bgColors: ['#EEFCFF', '#FCF8FF', '#FDF8F2'],
14
+ height: '160px',
15
+ borderRadius: '6px',
16
+ gap: '15px',
17
+ leftIcon: '',
18
+ leftTitle: '左',
19
+ rightTopIcon: '',
20
+ rightTopTitle: '右上',
21
+ rightBottomIcon: '',
22
+ rightBottomTitle: '右下'
23
+ }
24
+ }
@@ -1,27 +1,57 @@
1
- import { defineMixin } from '../../libs/vue'
2
- import defProps from '../../libs/config/props.js'
1
+ import { defineMixin } from '../../libs/vue.js'
2
+ import defProps from './box.js'
3
3
 
4
4
  export const propsBox = defineMixin({
5
5
  props: {
6
6
  // 背景色
7
7
  bgColors: {
8
8
  type: [Array],
9
- default: ['#EEFCFF', '#FCF8FF', '#FDF8F2']
9
+ default: () => defProps.box.bgColors
10
10
  },
11
11
  // 高度
12
12
  height: {
13
13
  type: [String],
14
- default: "160px"
14
+ default: () => defProps.box.height
15
15
  },
16
16
  // 圆角
17
17
  borderRadius: {
18
18
  type: [String],
19
- default: "6px"
19
+ default: () => defProps.box.borderRadius
20
20
  },
21
21
  // 间隔
22
22
  gap: {
23
23
  type: [String],
24
- default: "15px"
24
+ default: () => defProps.box.gap
25
+ },
26
+ // 左侧图标
27
+ leftIcon: {
28
+ type: [String],
29
+ default: () => defProps.box.leftIcon
30
+ },
31
+ // 左侧文案
32
+ leftTitle: {
33
+ type: [String],
34
+ default: () => defProps.box.leftTitle
35
+ },
36
+ // 右上图标
37
+ rightTopIcon: {
38
+ type: [String],
39
+ default: () => defProps.box.rightTopIcon
40
+ },
41
+ // 右上文案
42
+ rightTopTitle: {
43
+ type: [String],
44
+ default: () => defProps.box.rightTopTitle
45
+ },
46
+ // 右下图标
47
+ rightBottomIcon: {
48
+ type: [String],
49
+ default: () => defProps.box.rightBottomIcon
50
+ },
51
+ // 右下文案
52
+ rightBottomTitle: {
53
+ type: [String],
54
+ default: () => defProps.box.rightBottomTitle
25
55
  },
26
56
  }
27
- })
57
+ })
@@ -1,18 +1,33 @@
1
1
  <template>
2
- <view class="u-box" :style="[{height: height}, addStyle(customStyle)]">
3
- <view class="u-box__left" :style="{borderRadius: borderRadius, backgroundColor: bgColors[0]}">
4
- <slot name="left">左</slot>
5
- </view>
6
- <view class="u-box__gap" :style="{width: gap, height: height}"></view>
7
- <view class="u-box__right">
8
- <view class="u-box__right-top" :style="{borderRadius: borderRadius, backgroundColor: bgColors[1]}">
9
- <slot name="rightTop">右上</slot>
10
- </view>
11
- <view class="u-box__right-gap" :style="{height: gap}"></view>
12
- <view class="u-box__right-bottom" :style="{borderRadius: borderRadius, backgroundColor: bgColors[2]}">
13
- <slot name="rightBottom">右下</slot>
14
- </view>
15
- </view>
2
+ <view class="u-box" :style="[{height: height}, addStyle(customStyle)]">
3
+ <view class="u-box__left" :style="{borderRadius: borderRadius, backgroundColor: bgColors[0]}">
4
+ <slot name="left">
5
+ <view class="flex flex-row items-center justify-center">
6
+ <u-icon size="36" :name="leftIcon"></u-icon>
7
+ <text class="ml-2 text-16px">{{leftTitle}}</text>
8
+ </view>
9
+ </slot>
10
+ </view>
11
+ <view class="u-box__gap" :style="{width: gap, height: height}"></view>
12
+ <view class="u-box__right">
13
+ <view class="u-box__right-top" :style="{borderRadius: borderRadius, backgroundColor: bgColors[1]}">
14
+ <slot name="rightTop">
15
+ <view class="flex flex-row items-center justify-center">
16
+ <u-icon size="36" :name="rightTopIcon"></u-icon>
17
+ <text class="ml-2 text-15px">{{rightTopTitle}}</text>
18
+ </view>
19
+ </slot>
20
+ </view>
21
+ <view class="u-box__right-gap" :style="{height: gap}"></view>
22
+ <view class="u-box__right-bottom" :style="{borderRadius: borderRadius, backgroundColor: bgColors[2]}">
23
+ <slot name="rightBottom">
24
+ <view class="flex flex-row items-center justify-center">
25
+ <u-icon size="36" :name="rightBottomIcon"></u-icon>
26
+ <text class="ml-2 text-15px">{{rightBottomTitle}}</text>
27
+ </view>
28
+ </slot>
29
+ </view>
30
+ </view>
16
31
  </view>
17
32
  </template>
18
33
 
@@ -1,11 +1,11 @@
1
1
  /*
2
2
  * @Author : LQ
3
3
  * @Description :
4
- * @version : 1.0
4
+ * @version : 3.0
5
5
  * @Date : 2021-08-20 16:44:21
6
- * @LastAuthor : LQ
7
- * @lastTime : 2021-08-20 16:51:27
8
- * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
6
+ * @LastAuthor : jry
7
+ * @lastTime : 2025-12-19 08:55:21
8
+ * @FilePath : /uview-plus/libs/config/props/button.js
9
9
  */
10
10
  export default {
11
11
  // button组件