@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 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.$lcb.constantsStore().windowInfo?.value
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.$lcb.constantsStore().windowInfo.value.screenHeight
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.$lcb.constantsStore().windowInfo.value.statusBarHeight
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.$lcb.constantsStore().windowInfo.value
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.$lcb.constantsStore().windowInfo.value.screenWidth
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.$lcb.constantsStore().windowInfo.value
136
+ const { statusBarHeight } = uni.getWindowInfo ? uni.getWindowInfo() : uni.getSystemInfoSync()
137
137
  defineOptions({
138
138
  name: 'LcbUserTop',
139
139
  options: {
@@ -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.$lcb.constantsStore().windowInfo.value.screenHeight
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.35",
3
+ "version": "0.7.36",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],