uview-plus 3.8.135 → 3.8.136
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,12 @@
|
|
|
1
|
+
## 3.8.136
|
|
2
|
+
fix: 修复 u-goods-sku 关闭笔误与 u-icon App 本地字体在 npm 安装/正式 APK 下的问题
|
|
3
|
+
|
|
4
|
+
本次更新修复 u-goods-sku 关闭弹窗的笔误,并解决 App 端本地图标字体在 npm 安装方式与云打包正式 APK 上显示异常的问题(对应 issue #1069)。
|
|
5
|
+
|
|
6
|
+
- u-goods-sku:close() 中 `this.false = true` 为无效赋值(误建 false 属性、弹窗从未真正关闭),改为 `this.show = false` 真正关闭弹窗;并将 popup 的 close/closed 事件经模板透传给父组件,避免 `ref.close()` 触发 popup 的 show watcher 补发导致父组件重复收到 close 事件
|
|
7
|
+
- u-icon(App 本地字体):构建插件 transform 原仅按 `uni_modules/uview-plus/...` 绝对路径严格匹配,npm 安装到 `node_modules/uview-plus/...` 时永远不命中、App 远程 @font-face 不被剥离;改为按包内相对路径后缀匹配,同时覆盖 uni_modules / node_modules / pnpm 真实路径
|
|
8
|
+
- u-icon(App-Vue):原在 App-Vue 路径预先 `plus.io.convertLocalFileSystemURL` 转换 `_www` 字体路径,导致云打包正式 APK 图标不显示;App-Vue 改用原始 `_www/static/app-plus/uview-plus/upicon.ttf` 路径、交由 view 层转换一次,自定义基座与正式 APK 均可正常显示(App-NVue 仍保持原转换逻辑)
|
|
9
|
+
|
|
1
10
|
## 3.8.135
|
|
2
11
|
feat: 新增 u-lottie 动画组件,u-upload 新增 mediaType 并修复 chooseMedia 平台判断
|
|
3
12
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:pageInline="pageInline"
|
|
11
11
|
:safeAreaInsetBottom="safeAreaInsetBottom"
|
|
12
12
|
:border-radius="20"
|
|
13
|
-
@close="close"
|
|
13
|
+
@close="$emit('close')"
|
|
14
14
|
@closed="$emit('closed')"
|
|
15
15
|
>
|
|
16
16
|
<view class="up-goods-sku-container" :style="{padding: pageInline ? '0px' : ''}">
|
|
@@ -304,10 +304,10 @@
|
|
|
304
304
|
this.show = true;
|
|
305
305
|
this.$emit('open')
|
|
306
306
|
},
|
|
307
|
-
//
|
|
307
|
+
// 关闭弹窗:仅驱动 show,关闭事件由 popup 的 show watcher 补发,
|
|
308
|
+
// 并经模板 @close="$emit('close')" 透传给父组件,保证每种关闭方式恰好 emit 一次
|
|
308
309
|
close() {
|
|
309
|
-
|
|
310
|
-
this.$emit('close')
|
|
310
|
+
this.show = false
|
|
311
311
|
},
|
|
312
312
|
// 确认选择
|
|
313
313
|
onConfirm() {
|
|
@@ -171,7 +171,10 @@ const loadFont = () => {
|
|
|
171
171
|
registerNvueFontFace(iconUrl);
|
|
172
172
|
// #endif
|
|
173
173
|
// #ifdef APP-VUE
|
|
174
|
-
|
|
174
|
+
// App-Vue 本地字体直接用原始 _www/... 路径,交给 view 层转换一次,
|
|
175
|
+
// 自定义基座与云打包正式 APK 都能正确显示图标(issue #1069)。
|
|
176
|
+
const appVueIconUrl = useAppStaticIconFont ? appIconFontUrl : iconUrl;
|
|
177
|
+
registerAppVueFontFace(appVueIconUrl, appVuePage);
|
|
175
178
|
// #endif
|
|
176
179
|
// #ifdef H5 || MP-WEIXIN || MP-ALIPAY
|
|
177
180
|
uni.loadFontFace({
|
|
@@ -27,8 +27,10 @@ export function createAppIconFontFeature(options = {}) {
|
|
|
27
27
|
const rootPath = normalizePath(projectInfo.rootPath)
|
|
28
28
|
const iconFontSourcePath = normalizePath(resolve(featurePath, '../../components/u-icon/upicon.ttf'))
|
|
29
29
|
const appStaticIconFontPath = normalizePath(resolve(rootPath, appStaticIconFontRelativePath))
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
// 同时兼容 uni_modules 与 npm(node_modules / pnpm 真实路径)两种安装方式:
|
|
31
|
+
// npm 安装时包位于 node_modules/uview-plus/...,按包内相对路径后缀匹配即可命中。
|
|
32
|
+
const isUIconUtil = (cleanId) => cleanId.endsWith('uview-plus/components/u-icon/util.js')
|
|
33
|
+
const isUIconVue = (cleanId) => cleanId.endsWith('uview-plus/components/u-icon/u-icon.vue')
|
|
32
34
|
|
|
33
35
|
const shouldCopyFile = (sourcePath, targetPath) => {
|
|
34
36
|
if (!existsSync(targetPath)) return true
|
|
@@ -55,15 +57,15 @@ export function createAppIconFontFeature(options = {}) {
|
|
|
55
57
|
if (!isAppPlatform()) return null
|
|
56
58
|
const cleanId = toCleanId(id)
|
|
57
59
|
if (!enabled) {
|
|
58
|
-
if (cleanId
|
|
60
|
+
if (isUIconUtil(cleanId) && code.includes(appStaticIconFontFlag)) {
|
|
59
61
|
return code.replace(appStaticIconFontFlag, appStaticIconFontDisabledFlag)
|
|
60
62
|
}
|
|
61
63
|
return null
|
|
62
64
|
}
|
|
63
|
-
if (cleanId
|
|
65
|
+
if (isUIconVue(cleanId) && appRemoteIconFontCondition.test(code)) {
|
|
64
66
|
return code.replace(appRemoteIconFontCondition, '/* #ifdef $1 */')
|
|
65
67
|
}
|
|
66
|
-
if (cleanId
|
|
68
|
+
if (isUIconVue(cleanId) && appCompiledRemoteIconFontFace.test(code)) {
|
|
67
69
|
return removeAppCompiledRemoteIconFontFace(code)
|
|
68
70
|
}
|
|
69
71
|
return null
|
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.8.
|
|
5
|
+
"version": "3.8.136",
|
|
6
6
|
"description": "零云®uview-plus已兼容vue3支持多语言,120+全面的组件和便捷的工具会让您信手拈来。近期新增拖动排序、条码、图片裁剪、下拉刷新、虚拟列表、签名、Markdown等。",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"uview",
|