uview-plus 3.4.75 → 3.4.76

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,9 @@
1
+ ## 3.4.76(2025-08-08)
2
+ feat: 取消props中tabs组件默认颜色影响主题色生效
3
+
4
+ fix: 修复parse富文本组件报错$options
5
+
6
+ feat: timeFormat时间格式化方法支持UTC格式时间 #596
1
7
  ## 3.4.75(2025-08-07)
2
8
  feat: 新增loadFontOnce参数控制是否全局只加载一次字体图标
3
9
 
@@ -149,7 +149,7 @@ export default {
149
149
  },
150
150
  mounted () {
151
151
  this.$nextTick(() => {
152
- for (this.root = this.$parent; this.root.$options.name !== 'mp-html'; this.root = this.root.$parent);
152
+ for (this.root = this?.$parent; this.root?.$options.name !== 'mp-html'; this.root = this.root?.$parent);
153
153
  })
154
154
  // #ifdef H5 || APP-PLUS
155
155
  if (this.opts[0]) {
@@ -12,7 +12,7 @@ export default {
12
12
  tabs: {
13
13
  duration: 300,
14
14
  list: [],
15
- lineColor: '#3c9cff',
15
+ lineColor: '',
16
16
  activeStyle: {
17
17
  color: '#303133'
18
18
  },
@@ -361,6 +361,10 @@ export function timeFormat(dateTime = null, formatStr = 'yyyy-mm-dd') {
361
361
  else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
362
362
  date = new Date(Number(dateTime))
363
363
  }
364
+ // 检查是否为UTC格式的时间字符串 (2024-12-18T02:25:31.432Z)
365
+ else if (typeof dateTime === 'string' && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(dateTime)) {
366
+ date = new Date(dateTime)
367
+ }
364
368
  // 其他都认为符合 RFC 2822 规范
365
369
  else {
366
370
  // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
- "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.4.75",
4
+ "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙跨端移动组件库,组件丰富维护更新稳定。",
5
+ "version": "3.4.76",
6
6
  "description": "零云®uview-plus已兼容vue3,100+全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",