@tplc/business 0.7.35 → 0.7.37
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 +37 -0
- package/components/lcb-action-view/lcb-action-view.vue +1 -1
- package/components/lcb-banner/lcb-banner.vue +3 -3
- package/components/lcb-nav/lcb-nav.vue +7 -3
- package/components/lcb-nav/types.ts +2 -0
- package/components/lcb-product/lcb-product.vue +1 -1
- package/components/lcb-user-top/lcb-user-top.vue +1 -1
- package/hooks/useAutoHeight.ts +1 -1
- package/package.json +2 -2
- package/types/components/lcb-nav/types.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
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.37](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.33...v0.7.37) (2025-12-31)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* Add `payCardId` to payment form and component, and refine payment type watch logic with minor UI alignment. ([0cac8e4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0cac8e49e678a81f3a1340b251c05aa591e28146))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 💄 Styles | 风格
|
|
14
|
+
|
|
15
|
+
* Enhance wd-select-picker styles with improved dark theme support, error handling, and loading states ([9476eca](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9476eca4b1dc70be0240178274fa8266a8877353))
|
|
16
|
+
* Update wd-select-picker label padding and adjust required indicator position ([c484165](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c484165672df34c3a8a0497a89f4878bc9eca62c))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
20
|
+
|
|
21
|
+
* Update window information retrieval to use constantsStore for consistent access across components ([92b3a70](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/92b3a7025a82fa129646b904a90d3959cc177d26))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
25
|
+
|
|
26
|
+
* **release:** 0.7.34 ([ff6d9ba](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/ff6d9babf801919bae6f7367643fc966b005141c))
|
|
27
|
+
* **release:** 0.7.35 ([08e3887](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/08e38877b628ed46352fb94a57dd342ed92d507a))
|
|
28
|
+
* **release:** 0.7.36 ([5fab8dd](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5fab8dda5d0ffc881a4eab9df0198441c9c797a4))
|
|
29
|
+
* **release:** 1.0.18 ([0b5e53d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0b5e53d0d3b8dd1a8a806c5258828f70f486b628))
|
|
30
|
+
* **release:** 1.0.19 ([6d957fd](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/6d957fd62d08ff4cb2e74f4d2e0c0917dedbf915))
|
|
31
|
+
* **release:** 1.0.20 ([65ad98e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/65ad98e5b7ddb615961c71f60ce657fec344de56))
|
|
32
|
+
* **release:** 1.0.21 ([c5a3dc8](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c5a3dc8cc308332fb67dbc52a66ad8b14b3f7292))
|
|
33
|
+
* **release:** 1.0.22 ([4c3ee83](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/4c3ee832739a0babc6efa73f6ad107defc52fa6a))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### ♻️ Code Refactoring | 代码重构
|
|
37
|
+
|
|
38
|
+
* Update window information retrieval across components to use uni.getWindowInfo for improved consistency ([744c24f](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/744c24f71d420356265331a55236b30adad11f1b))
|
|
39
|
+
|
|
40
|
+
### [0.7.36](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.35...v0.7.36) (2025-12-30)
|
|
41
|
+
|
|
5
42
|
### [0.7.35](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.34...v0.7.35) (2025-12-30)
|
|
6
43
|
|
|
7
44
|
|
|
@@ -218,7 +218,7 @@ const onActionClick = async () => {
|
|
|
218
218
|
/** 锚点跳转 */
|
|
219
219
|
case '16':
|
|
220
220
|
if (url) {
|
|
221
|
-
const windowInfo = uni
|
|
221
|
+
const windowInfo = uni.getWindowInfo ? uni.getWindowInfo() : uni.getSystemInfoSync()
|
|
222
222
|
const navbarHeight = (windowInfo.statusBarHeight || 0) + 44
|
|
223
223
|
onPageScrollSelector(url, navbarHeight)
|
|
224
224
|
}
|
|
@@ -108,7 +108,7 @@ const props = withDefaults(defineProps<LcbBannerProps>(), {
|
|
|
108
108
|
})
|
|
109
109
|
const scrollTop = ref(0)
|
|
110
110
|
|
|
111
|
-
const pageHeight = uni
|
|
111
|
+
const pageHeight = (uni.getWindowInfo ? uni.getWindowInfo() : uni.getSystemInfoSync()).screenHeight
|
|
112
112
|
const showTabbar = inject(SHOW_TABBAR) as Ref<boolean>
|
|
113
113
|
|
|
114
114
|
// Touch gesture handling
|
|
@@ -212,9 +212,9 @@ const handleTouchEnd = () => {
|
|
|
212
212
|
isTouching.value = false
|
|
213
213
|
}
|
|
214
214
|
const handleScrollToBottom = () => {
|
|
215
|
-
const statusBarHeight = uni
|
|
215
|
+
const { statusBarHeight } = uni.getWindowInfo ? uni.getWindowInfo() : uni.getSystemInfoSync()
|
|
216
216
|
uni.pageScrollTo({
|
|
217
|
-
scrollTop: pageHeight - statusBarHeight - 44,
|
|
217
|
+
scrollTop: pageHeight - (statusBarHeight || 0) - 44,
|
|
218
218
|
duration: 300,
|
|
219
219
|
})
|
|
220
220
|
}
|
|
@@ -152,7 +152,9 @@ defineOptions({
|
|
|
152
152
|
styleIsolation: 'shared',
|
|
153
153
|
},
|
|
154
154
|
})
|
|
155
|
-
const { statusBarHeight, windowWidth } = uni
|
|
155
|
+
const { statusBarHeight, windowWidth } = uni.getWindowInfo
|
|
156
|
+
? uni.getWindowInfo()
|
|
157
|
+
: uni.getSystemInfoSync()
|
|
156
158
|
// 胶囊信息
|
|
157
159
|
const boundingInfo = uni.getMenuButtonBoundingClientRect?.() || {
|
|
158
160
|
width: 0,
|
|
@@ -305,7 +307,7 @@ const capsuleList = computed(() => {
|
|
|
305
307
|
return [...list, ...(props.capsules || [])] as ICapsule[]
|
|
306
308
|
}
|
|
307
309
|
})
|
|
308
|
-
const onCapsule = ({ action }: ICapsule) => {
|
|
310
|
+
const onCapsule = ({ action, customAction }: ICapsule) => {
|
|
309
311
|
switch (action) {
|
|
310
312
|
case 'back':
|
|
311
313
|
toBack()
|
|
@@ -344,7 +346,6 @@ const onCapsule = ({ action }: ICapsule) => {
|
|
|
344
346
|
url: uni.$lcb.internalPages.setting,
|
|
345
347
|
})
|
|
346
348
|
break
|
|
347
|
-
|
|
348
349
|
case 'home':
|
|
349
350
|
uni.switchTab({
|
|
350
351
|
url: uni.$lcb.internalPages.home,
|
|
@@ -358,6 +359,9 @@ const onCapsule = ({ action }: ICapsule) => {
|
|
|
358
359
|
url: uni.$lcb.internalPages.notification,
|
|
359
360
|
})
|
|
360
361
|
break
|
|
362
|
+
case 'custom':
|
|
363
|
+
customAction?.()
|
|
364
|
+
break
|
|
361
365
|
}
|
|
362
366
|
}
|
|
363
367
|
|
|
@@ -37,7 +37,7 @@ const loading = ref(false)
|
|
|
37
37
|
const renderList = ref<Record<string, any>[]>([])
|
|
38
38
|
const screenWidth = isH5
|
|
39
39
|
? window.innerWidth
|
|
40
|
-
: uni
|
|
40
|
+
: (uni.getWindowInfo ? uni.getWindowInfo() : uni.getSystemInfoSync()).screenWidth
|
|
41
41
|
watchEffect(() => {
|
|
42
42
|
if (!props.filterList) return
|
|
43
43
|
renderList.value = props.items as Record<string, any>[]
|
|
@@ -133,7 +133,7 @@ import Nums from './Nums/index.vue'
|
|
|
133
133
|
import { computed } from 'vue'
|
|
134
134
|
import { addUnit } from '@tplc/wot/components/common/util'
|
|
135
135
|
|
|
136
|
-
const { statusBarHeight } = uni
|
|
136
|
+
const { statusBarHeight } = uni.getWindowInfo ? uni.getWindowInfo() : uni.getSystemInfoSync()
|
|
137
137
|
defineOptions({
|
|
138
138
|
name: 'LcbUserTop',
|
|
139
139
|
options: {
|
package/hooks/useAutoHeight.ts
CHANGED
|
@@ -8,7 +8,7 @@ const useAutoHeight = (id = 'pagingTop', timeOut = 200) => {
|
|
|
8
8
|
const isTabBar = uni.$lcb.getIsTabbar(route)
|
|
9
9
|
const viewPageHeight = isH5
|
|
10
10
|
? window.innerHeight
|
|
11
|
-
: uni
|
|
11
|
+
: (uni.getWindowInfo ? uni.getWindowInfo() : uni.getSystemInfoSync()).screenHeight
|
|
12
12
|
const height = ref('')
|
|
13
13
|
const top = ref(0)
|
|
14
14
|
onMounted(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.37",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"业务组件"
|
|
6
6
|
],
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"vue": ">=3.2.47",
|
|
14
|
-
"@tplc/wot": "1.0.
|
|
14
|
+
"@tplc/wot": "1.0.22"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|