@tplc/business 0.0.70 → 0.0.72

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,37 @@
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.0.72](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.71...v0.0.72) (2024-11-22)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * lcb-nav 兼容page-scroll-top ([e809efd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e809efddf1559a42c48140cae80e4081542fa123))
11
+
12
+ ### [0.0.71](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.66...v0.0.71) (2024-11-22)
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * home-search-ui 调整 ([c894815](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c894815dd55d471dd8d240730778fd3ef41c76db))
18
+ * lcb-title 新增更多配置 ([0be4376](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0be4376cc7c5552a19f6f19b3088276a0fec5218))
19
+ * wd-popup 兼容小程序 ([121367c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/121367c6d45e78f47fe160ce98626aeb0e63e8ec))
20
+
21
+
22
+ ### 🚀 Chore | 构建/工程依赖/工具
23
+
24
+ * **release:** 0.0.67 ([9855458](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/985545875348ab644c95b28805dbd8e2e7ceaf54))
25
+ * **release:** 0.0.68 ([cebb1d9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cebb1d917b7f569a8221b69bf0f4f9208673d67e))
26
+ * **release:** 0.0.69 ([e70c23f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e70c23fbd74800637ccb37284cdfbef198925dab))
27
+ * **release:** 0.0.70 ([885499f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/885499fa64b2fe55872e53ba47e7988604cd9c2d))
28
+ * **release:** 0.1.29 ([2736f92](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2736f92697545d412715c6719b36428e12bb3cea))
29
+ * **release:** 0.1.30 ([6a745ec](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6a745ec7682e9e655d3f3ffd31a4d946551800f8))
30
+
31
+
32
+ ### 🐛 Bug Fixes | Bug 修复
33
+
34
+ * 修复lcb-city-select 小程序无法选中锚点 ([93b3d2f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/93b3d2f31bab14d4dc85abbd835e8c659a917dde))
35
+
5
36
  ### [0.0.70](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.69...v0.0.70) (2024-11-21)
6
37
 
7
38
  ### [0.0.69](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.68...v0.0.69) (2024-11-21)
@@ -19,7 +19,7 @@ import { computed, getCurrentInstance, onMounted, ref, watch } from 'vue'
19
19
  import useZPaging from 'z-paging/components/z-paging/js/hooks/useZPaging'
20
20
  import { LcbFilterListProps } from './type'
21
21
  import { formatJson } from '../../../../utils/utils'
22
- import { getRect } from '@tplc/wot/components/common/util'
22
+ import { getRect, isH5 } from '@tplc/wot/components/common/util'
23
23
 
24
24
  defineOptions({
25
25
  name: 'FilterList',
@@ -93,9 +93,14 @@ const queryList = async (page: number, limit: number) => {
93
93
  }
94
94
  }
95
95
  const { proxy } = getCurrentInstance() as any
96
+ const isTabBar = uni.$lcb.getIsTabbar()
96
97
  onMounted(() => {
97
98
  getRect(`#pagingTop`, false, proxy).then((res) => {
98
- height.value = viewPageHeight - (res.top || 0) + 'px'
99
+ if (!isTabBar || isH5) {
100
+ height.value = `${viewPageHeight - (res.top || 0)}px`
101
+ } else {
102
+ height.value = `calc(${viewPageHeight - (res.top || 0)}px - var(--window-bottom) - env(safe-area-inset-bottom))`
103
+ }
99
104
  })
100
105
  })
101
106
  </script>
@@ -108,6 +113,7 @@ onMounted(() => {
108
113
  gap: 50rpx;
109
114
  padding: 20rpx 52rpx;
110
115
  box-sizing: border-box;
116
+
111
117
  :deep(.wd-button) {
112
118
  height: 100%;
113
119
  line-height: 100%;
@@ -80,7 +80,7 @@
80
80
 
81
81
  <script setup lang="ts">
82
82
  import { addUnit } from '@tplc/wot/components/common/util'
83
- import { computed } from 'vue'
83
+ import { computed, inject } from 'vue'
84
84
  import { ICapsule, NavProps } from './types'
85
85
  import Title from './Title/index.vue'
86
86
  import Search from './Search/index.vue'
@@ -104,6 +104,7 @@ const iconMap = {
104
104
  home: 'shouye_home1',
105
105
  }
106
106
  const [scrollTop] = usePageScroll()
107
+ const injectScrollTop = inject('page-scroll-top', { value: 0 })
107
108
  const props = withDefaults(defineProps<NavProps>(), {
108
109
  styleGroup: 1,
109
110
  titleLocation: 'center',
@@ -132,7 +133,9 @@ const isLastPage = () => {
132
133
  const navbarBgOpacity = computed(() => {
133
134
  const { topStyle, immersionMode } = props
134
135
  if (topStyle === 2) {
135
- return immersionMode === 1 ? scrollTop.value / ((statusBarHeight || 0) + 44) : 0
136
+ return immersionMode === 1
137
+ ? (scrollTop.value || injectScrollTop.value) / ((statusBarHeight || 0) + 44)
138
+ : 0
136
139
  }
137
140
  return 1
138
141
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.70",
3
+ "version": "0.0.72",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],