@tplc/business 0.7.35 → 0.7.36
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 +2 -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 +3 -1
- 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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.36](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.35...v0.7.36) (2025-12-30)
|
|
6
|
+
|
|
5
7
|
### [0.7.35](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.34...v0.7.35) (2025-12-30)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -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,
|
|
@@ -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(() => {
|