uview-plus 3.4.15 → 3.4.16

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,6 @@
1
+ ## 3.4.16(2025-04-10)
2
+ fix: 修复安卓新加载字体方式导致Cannot read property '$page' of undefined
3
+
1
4
  ## 3.4.15(2025-04-10)
2
5
  improvment: 优化移步加载数据时swiper组件displayMultipleItems报错
3
6
 
@@ -35,44 +35,10 @@
35
35
  </template>
36
36
 
37
37
  <script>
38
- import config from '../../libs/config/config';
39
- // #ifdef APP-NVUE
40
- // nvue通过weex的dom模块引入字体,相关文档地址如下:
41
- // https://weex.apache.org/zh/docs/modules/dom.html#addrule
42
- const domModule = weex.requireModule('dom');
43
- domModule.addRule('fontFace', {
44
- 'fontFamily': "uicon-iconfont",
45
- 'src': `url('${config.iconUrl}')`
46
- });
47
- // #endif
48
- // #ifdef APP || H5 || MP-WEIXIN || MP-ALIPAY
49
- uni.loadFontFace({
50
- family: 'uicon-iconfont',
51
- source: 'url("' + config.iconUrl + '")',
52
- success() {
53
- // console.log('内置字体图标加载成功');
54
- },
55
- fail() {
56
- console.error('内置字体图标加载出错');
57
- }
58
- });
59
- if (config.customIcon.family) {
60
- uni.loadFontFace({
61
- family: config.customIcon.family,
62
- source: 'url("' + config.customIcon.url + '")',
63
- success() {
64
- // console.log('扩展字体图标加载成功');
65
- },
66
- fail() {
67
- console.error('扩展字体图标加载出错');
68
- }
69
- });
70
- }
71
- // #endif
72
-
73
38
  // 引入图标名称,已经对应的unicode
74
39
  import icons from './icons';
75
40
  import { props } from './props';
41
+ import config from '../../libs/config/config';
76
42
  import { mpMixin } from '../../libs/mixin/mpMixin';
77
43
  import { mixin } from '../../libs/mixin/mixin';
78
44
  import { addUnit, addStyle } from '../../libs/function/index';
@@ -105,6 +71,46 @@
105
71
  export default {
106
72
  name: 'u-icon',
107
73
  beforeCreate() {
74
+
75
+ // #ifdef APP-NVUE
76
+ // nvue通过weex的dom模块引入字体,相关文档地址如下:
77
+ // https://weex.apache.org/zh/docs/modules/dom.html#addrule
78
+ const domModule = weex.requireModule('dom');
79
+ domModule.addRule('fontFace', {
80
+ 'fontFamily': "uicon-iconfont",
81
+ 'src': `url('${config.iconUrl}')`
82
+ });
83
+ if (config.customIcon.family) {
84
+ domModule.addRule('fontFace', {
85
+ 'fontFamily': config.customIcon.family,
86
+ 'src': `url('${config.customIcon.url}')`
87
+ });
88
+ }
89
+ // #endif
90
+ // #ifdef APP || H5 || MP-WEIXIN || MP-ALIPAY
91
+ uni.loadFontFace({
92
+ family: 'uicon-iconfont',
93
+ source: 'url("' + config.iconUrl + '")',
94
+ success() {
95
+ // console.log('内置字体图标加载成功');
96
+ },
97
+ fail() {
98
+ console.error('内置字体图标加载出错');
99
+ }
100
+ });
101
+ if (config.customIcon.family) {
102
+ uni.loadFontFace({
103
+ family: config.customIcon.family,
104
+ source: 'url("' + config.customIcon.url + '")',
105
+ success() {
106
+ // console.log('扩展字体图标加载成功');
107
+ },
108
+ fail() {
109
+ console.error('扩展字体图标加载出错');
110
+ }
111
+ });
112
+ }
113
+ // #endif
108
114
  // #ifdef APP-NVUE
109
115
  if (this.customFontFamily) {
110
116
  domModule.addRule('fontFace', {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.4.15",
5
+ "version": "3.4.16",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",