@tplc/business 0.7.47 → 0.7.49
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
|
@@ -2,6 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.7.49](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.45...v0.7.49) (2026-01-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ♻️ Code Refactoring | 代码重构
|
|
9
|
+
|
|
10
|
+
* **lcb-img-nav, lcb-tags:** restructure item properties for enhanced customization and consistency ([f669990](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/f6699906d64889c1582a15daf5b965fd00d42814))
|
|
11
|
+
* **lcb-img-nav:** update item styling properties to use rowItemProps for better customization ([8709982](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/8709982e6e81f907bdabcc1c004d56ea31ff1645))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ✨ Features | 新功能
|
|
15
|
+
|
|
16
|
+
* **lcb-button:** add fontFamily prop to customize button text styling ([9f4ccd4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9f4ccd497cbf49f0bf406da3f805f0662ed21cfe))
|
|
17
|
+
* **lcb-img-nav:** add multi-line horizontal card layout with icon border customization ([34d1f27](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/34d1f27d0d8073eefcf3867ef6cc608d297de84c))
|
|
18
|
+
* **lcb-nav:** enhance navigation behavior for Alipay mini program with fallback icon and capsule offset adjustments ([1f72adc](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1f72adc1cf8ee7b33f6619bf4923bb032e2c2a0c))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
22
|
+
|
|
23
|
+
* **release:** 0.7.46 ([e2763d0](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e2763d06ddd6939c103716319b956342d5d45183))
|
|
24
|
+
* **release:** 0.7.47 ([a3f9c17](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/a3f9c17a11ebe5856dbb64c2391f77e73fc126ad))
|
|
25
|
+
* **release:** 0.7.48 ([1d08038](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1d08038be82c4ae68c32855286a6ae0fe445a441))
|
|
26
|
+
|
|
27
|
+
### [0.7.48](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.47...v0.7.48) (2026-01-06)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### ♻️ Code Refactoring | 代码重构
|
|
31
|
+
|
|
32
|
+
* **lcb-img-nav, lcb-tags:** restructure item properties for enhanced customization and consistency ([f669990](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/f6699906d64889c1582a15daf5b965fd00d42814))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### ✨ Features | 新功能
|
|
36
|
+
|
|
37
|
+
* **lcb-nav:** enhance navigation behavior for Alipay mini program with fallback icon and capsule offset adjustments ([1f72adc](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1f72adc1cf8ee7b33f6619bf4923bb032e2c2a0c))
|
|
38
|
+
|
|
5
39
|
### [0.7.47](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.46...v0.7.47) (2026-01-05)
|
|
6
40
|
|
|
7
41
|
|
|
@@ -192,7 +192,7 @@ const showArea = computed(() => {
|
|
|
192
192
|
return false
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
if (props.
|
|
195
|
+
if (props.compareType) {
|
|
196
196
|
const compareValue = `${props.dependKeyCompareValue}`
|
|
197
197
|
return compareValues(value, compareValue, props.compareType || '=')
|
|
198
198
|
}
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
:class="[capsuleMode]"
|
|
36
36
|
:style="{
|
|
37
37
|
height: boudingHeight,
|
|
38
|
+
marginLeft: capsuleLeftOffset,
|
|
38
39
|
}"
|
|
39
40
|
>
|
|
40
41
|
<view
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
</lcb-action-view>
|
|
77
78
|
</view>
|
|
78
79
|
</view>
|
|
79
|
-
<template v-else-if="
|
|
80
|
+
<template v-else-if="showFallbackBackIcon">
|
|
80
81
|
<wd-icon
|
|
81
82
|
class-prefix="lcb"
|
|
82
83
|
:name="isLastPage() ? 'shouye_home' : 'zuo_left'"
|
|
@@ -159,6 +160,10 @@ defineOptions({
|
|
|
159
160
|
styleIsolation: 'shared',
|
|
160
161
|
},
|
|
161
162
|
})
|
|
163
|
+
let isMpAlipay = false
|
|
164
|
+
// #ifdef MP-ALIPAY
|
|
165
|
+
isMpAlipay = true
|
|
166
|
+
// #endif
|
|
162
167
|
const { statusBarHeight, windowWidth } = uni.getWindowInfo
|
|
163
168
|
? uni.getWindowInfo()
|
|
164
169
|
: uni.getSystemInfoSync()
|
|
@@ -276,18 +281,26 @@ const paddingTop = computed(() => {
|
|
|
276
281
|
const canBack = computed(() => {
|
|
277
282
|
return props.back || !isLastPage()
|
|
278
283
|
})
|
|
284
|
+
/** 支付宝小程序自带 home/back(且返回按钮无法去掉),避免重复渲染我们自己的返回/首页按钮 */
|
|
285
|
+
const showFallbackBackIcon = computed(() => {
|
|
286
|
+
return canBack.value && !isMpAlipay
|
|
287
|
+
})
|
|
288
|
+
/** 支付宝小程序:胶囊内容整体往后移一点,避开系统返回按钮 */
|
|
289
|
+
const capsuleLeftOffset = computed(() => {
|
|
290
|
+
return isMpAlipay ? '44px' : '0px'
|
|
291
|
+
})
|
|
279
292
|
|
|
280
293
|
const pageInfo = inject(PAGE_PROVIDE_KEY) as Ref<Record<string, any>>
|
|
281
294
|
const capsuleList = computed(() => {
|
|
282
295
|
const list: ICapsule[] = []
|
|
283
|
-
if (canBack.value) {
|
|
296
|
+
if (canBack.value && !isMpAlipay) {
|
|
284
297
|
list.push({
|
|
285
298
|
icon: 'zuo_left',
|
|
286
299
|
action: 'back',
|
|
287
300
|
})
|
|
288
301
|
}
|
|
289
302
|
/** 如果超过俩个的层级的话并且支持返回 */
|
|
290
|
-
if (moreThanTwoPages() || (!uni.$lcb.getIsTabbar(route) && !canBack.value)) {
|
|
303
|
+
if (!isMpAlipay && (moreThanTwoPages() || (!uni.$lcb.getIsTabbar(route) && !canBack.value))) {
|
|
291
304
|
list.push({
|
|
292
305
|
icon: 'shouye_home1',
|
|
293
306
|
action: 'home',
|