uview-pro 0.5.10 → 0.5.12

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,14 +1,40 @@
1
- ## 0.5.10(2026-02-28
1
+ ## 0.5.12(2026-03-09
2
2
 
3
3
  ### 🐛 Bug Fixes | Bug 修复
4
4
 
5
- - **useToast:** 修复useToast使用全局弹出时,某场景下弹出失败的问题 ([83b3d7b](https://github.com/anyup/uView-Pro/commit/83b3d7b64995a1801fdf6a33ff2ce0c99ecceaa6))
6
- - **useModal:** 修复useModal使用全局弹出时,某场景下弹出失败的问题 ([43f98ea](https://github.com/anyup/uView-Pro/commit/43f98ea4adda12e28cd1d906c36279f808b3ea32))
5
+ - **u-tabs:** 延迟初始化tabs组件以确保正确获取尺寸信息,修复在App端滑块偏移问题(#139) ([90f79ff](https://github.com/anyup/uView-Pro/commit/90f79ff8f1e71a2ebc05be7d0318b8107425e09a))
6
+ - **u-upload:** 优化u-upload组件在暗黑模式下的显示效果 ([24955ad](https://github.com/anyup/uView-Pro/commit/24955ad947d6edc736c695f9052344a83fa191ae))
7
+ - **u-calendar:** 优化日历组件设置为range范围选择时,仅当开始、结束时间选择完成时才可点击确定(#136) ([4dee864](https://github.com/anyup/uView-Pro/commit/4dee864abda5e65a755aaaccbaffc430ca463cdd))
8
+
9
+ ### ✨ Features | 新功能
10
+
11
+ - **demo:** 添加H5平台条件编译控制,优化组件描述文案 ([d482223](https://github.com/anyup/uView-Pro/commit/d4822234e1f0e13a6480732350f884d5034368b5))
7
12
 
8
13
  ### 👥 Contributors
9
14
 
10
15
  <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
11
16
 
17
+ ## 0.5.11(2026-03-02)
18
+
19
+ ### 🐛 Bug Fixes | Bug 修复
20
+
21
+ - **u-table:** 修复table文字换行后导致的行高度不一致,边框线错位的问题 ([b6b9c33](https://github.com/anyup/uView-Pro/commit/b6b9c33d41ac3adc6f6a1eb33edd50a355d267bf))
22
+
23
+ ### 👥 Contributors
24
+
25
+ <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
26
+
27
+ ## 0.5.10(2026-02-28)
28
+
29
+ ### 🐛 Bug Fixes | Bug 修复
30
+
31
+ - **useToast:** 修复useToast使用全局弹出时,某场景下弹出失败的问题 ([83b3d7b](https://github.com/anyup/uView-Pro/commit/83b3d7b64995a1801fdf6a33ff2ce0c99ecceaa6))
32
+ - **useModal:** 修复useModal使用全局弹出时,某场景下弹出失败的问题 ([43f98ea](https://github.com/anyup/uView-Pro/commit/43f98ea4adda12e28cd1d906c36279f808b3ea32))
33
+
34
+ ### 👥 Contributors
35
+
36
+ <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
37
+
12
38
  ## 0.5.9(2026-02-26)
13
39
 
14
40
  ### 🐛 Bug Fixes | Bug 修复
@@ -226,7 +226,13 @@
226
226
  <text v-if="endDate">{{ t('uCalendar.to') }}{{ endDate }}</text>
227
227
  </view>
228
228
  <view class="u-calendar__bottom__btn">
229
- <u-button :type="btnType" shape="circle" size="default" @click="btnFix(false)">
229
+ <u-button
230
+ :type="btnType"
231
+ :disabled="btnDisable"
232
+ shape="circle"
233
+ size="default"
234
+ @click="btnFix(false)"
235
+ >
230
236
  {{ t('uCalendar.confirmText') }}
231
237
  </u-button>
232
238
  </view>
@@ -335,6 +341,20 @@ const popupValue = computed({
335
341
  set: (val: boolean) => emit('update:modelValue', val)
336
342
  });
337
343
 
344
+ const btnDisable = computed(() => {
345
+ let disable = false;
346
+ if (props.mode == 'range') {
347
+ if (!startDate.value || !endDate.value) {
348
+ disable = true;
349
+ }
350
+ } else {
351
+ if (!activeDate.value) {
352
+ disable = true;
353
+ }
354
+ }
355
+ return disable;
356
+ });
357
+
338
358
  watch([dataChange, lunarChange], () => {
339
359
  init();
340
360
  });
@@ -238,7 +238,12 @@ function scrollByIndex() {
238
238
  }
239
239
 
240
240
  onMounted(() => {
241
- init();
241
+ nextTick(() => {
242
+ // 延时获取tabs的尺寸信息
243
+ setTimeout(() => {
244
+ init();
245
+ }, 500);
246
+ });
242
247
  });
243
248
 
244
249
  defineExpose({ init, clickTab, scrollByIndex });
@@ -60,6 +60,6 @@ const tdStyle = computed(() => {
60
60
  color: $u-content-color;
61
61
  align-self: stretch;
62
62
  box-sizing: border-box;
63
- height: 100%;
63
+ // height: 100%;
64
64
  }
65
65
  </style>
@@ -494,7 +494,7 @@ defineExpose({ clear, reUpload, selectFile, upload, retry, remove, doPreviewImag
494
494
  height: 200rpx;
495
495
  overflow: hidden;
496
496
  margin: 10rpx;
497
- background: rgb(244, 245, 246);
497
+ background: var(--u-bg-gray-light);
498
498
  position: relative;
499
499
  border-radius: 10rpx;
500
500
  /* #ifndef APP-NVUE */
@@ -505,7 +505,7 @@ defineExpose({ clear, reUpload, selectFile, upload, retry, remove, doPreviewImag
505
505
  }
506
506
 
507
507
  .u-preview-wrap {
508
- border: 1px solid rgb(235, 236, 238);
508
+ border: 1px solid var(--u-border-color);
509
509
  }
510
510
 
511
511
  .u-add-wrap {
@@ -520,7 +520,7 @@ defineExpose({ clear, reUpload, selectFile, upload, retry, remove, doPreviewImag
520
520
  }
521
521
 
522
522
  .u-add-wrap__hover {
523
- background-color: rgb(235, 236, 238);
523
+ background-color: var(--u-bg-gray-light);
524
524
  }
525
525
 
526
526
  .u-preview-image {
@@ -6,10 +6,6 @@ u-th {
6
6
  align-self: stretch;
7
7
  }
8
8
 
9
- .u-td {
10
- height: 100%;
11
- }
12
-
13
9
  u-icon {
14
10
  display: inline-flex;
15
11
  align-items: center;
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组件库,支持多主题、暗黑模式、多语言",
5
- "version": "0.5.10",
5
+ "version": "0.5.12",
6
6
  "description": "uView Pro是基于Vue3+TS的多平台UI框架,提供80+高质量组件、便捷工具和常用模板,支持多主题、暗黑模式、多语言,支持H5/APP/鸿蒙/小程序多端开发。已在鸿蒙应用商店上架,欢迎体验!",
7
7
  "main": "index.ts",
8
8
  "module": "index.ts",