uview-plus 3.4.74 → 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
|
@@ -6,7 +6,10 @@ let params = {
|
|
|
6
6
|
// 加载字体方法
|
|
7
7
|
const loadFont = () => {
|
|
8
8
|
// console.log('加载字体图标');
|
|
9
|
-
|
|
9
|
+
// 全局加载不稳定,默认关闭,需要开启可以配置loadFontOnce。
|
|
10
|
+
if (config.loadFontOnce) {
|
|
11
|
+
params.loaded = true;
|
|
12
|
+
}
|
|
10
13
|
// #ifdef APP-NVUE
|
|
11
14
|
// nvue通过weex的dom模块引入字体,相关文档地址如下:
|
|
12
15
|
// https://weex.apache.org/zh/docs/modules/dom.html#addrule
|
|
@@ -149,7 +149,7 @@ export default {
|
|
|
149
149
|
},
|
|
150
150
|
mounted () {
|
|
151
151
|
this.$nextTick(() => {
|
|
152
|
-
for (this.root = this
|
|
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]) {
|
package/libs/config/config.js
CHANGED
package/libs/function/index.js
CHANGED
|
@@ -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.
|
|
4
|
+
"displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙跨端移动组件库,组件丰富维护更新稳定。",
|
|
5
|
+
"version": "3.4.76",
|
|
6
6
|
"description": "零云®uview-plus已兼容vue3,100+全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uview",
|