@tplc/business 0.2.31 → 0.2.32

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,27 @@
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.2.32](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.27...v0.2.32) (2024-12-24)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.2.23 ([c40fd71](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c40fd71862a370b440805701726a4fd7878b8762))
11
+ * **release:** 0.2.29 ([9b9fbc1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9b9fbc17564569299146ba00b39ac7f7e0176823))
12
+ * **release:** 0.2.30 ([de61218](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/de6121804a1e2c71bea4c63f67dc49268986dcbd))
13
+ * **release:** 0.2.31 ([8e87d8b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8e87d8b026358d018db906293ce178a85968faf6))
14
+
15
+
16
+ ### ✨ Features | 新功能
17
+
18
+ * FilterList height ([e2e3f72](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e2e3f721ff5889b25f7217f6b4e8ac692cf5ed55))
19
+ * list 兼容 ([2620bd1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2620bd13d25ca0d7e58f9dc9fa459b5d46deb4c3))
20
+ * 微调假数据 ([89a9fd5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/89a9fd5cc9d75b5f1d882978bcde2073e61237bf))
21
+ * 日历初始化 ([6e2f4d9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6e2f4d9391f5e2a2e7cebc6f960a3002bf6f4d66))
22
+ * 更新getWindowInfo ([8f6c362](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8f6c362b39fbcae9525bde3607faf75257aea67e))
23
+ * 调整 lcb-product-item 样式 ([943e9a0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/943e9a0643d025037be35f4e03746d1254b6379b))
24
+ * 跳转itemview ([ee96b16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ee96b16f46d2c14fb253a4a9719e4817c4e54fec))
25
+
5
26
  ### [0.2.31](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.30...v0.2.31) (2024-12-23)
6
27
 
7
28
  ### [0.2.30](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.29...v0.2.30) (2024-12-23)
@@ -42,29 +42,29 @@ const modelValue = defineModel<unknown[]>({
42
42
  watchEffect(() => {
43
43
  const list = dataList.value?.map?.((item: any) => {
44
44
  return item
45
- // 以下假数据无效
46
- // const imgArr = formatJson(item.coverImg, [])
47
- // const tags = formatJson(item.tags, [])
48
- // eslint-disable-next-line no-unreachable
49
- return {
50
- title: item?.productName,
51
- addressIntro: item?.address,
52
- price: item?.price,
53
- priceSuffix: item?.behindUnit,
54
- subTitle: '专用通道接送8分钟到候机楼',
55
- score: 4.7,
56
- scoreTips: '很好',
57
- level: 4,
58
- // imgCornerIcon: 'test',
59
- // imgBottomIcon: 'test',
60
- titleIcon: 'I',
61
- userInteractionInfo: '2991点评 · 8039收藏',
62
- orderTips: '18分钟前有人预定',
63
- priceTips: '白银贵宾价 | 十亿豪补 | 2项优惠',
64
- ...item,
65
- // coverImg: imgArr?.[1] || imgArr?.[0],
66
- // tags,
67
- }
45
+ // // 以下假数据无效
46
+ // // const imgArr = formatJson(item.coverImg, [])
47
+ // // const tags = formatJson(item.tags, [])
48
+ // // eslint-disable-next-line no-unreachable
49
+ // return {
50
+ // title: item?.productName,
51
+ // addressIntro: item?.address,
52
+ // price: item?.price,
53
+ // priceSuffix: item?.behindUnit,
54
+ // subTitle: '专用通道接送8分钟到候机楼',
55
+ // score: 4.7,
56
+ // scoreTips: '很好',
57
+ // level: 4,
58
+ // // imgCornerIcon: 'test',
59
+ // // imgBottomIcon: 'test',
60
+ // titleIcon: 'I',
61
+ // userInteractionInfo: '2991点评 · 8039收藏',
62
+ // orderTips: '18分钟前有人预定',
63
+ // priceTips: '白银贵宾价 | 十亿豪补 | 2项优惠',
64
+ // ...item,
65
+ // // coverImg: imgArr?.[1] || imgArr?.[0],
66
+ // // tags,
67
+ // }
68
68
  })
69
69
  modelValue.value = list
70
70
  })
@@ -1,19 +1,21 @@
1
- import { getRect, isH5 } from '@tplc/wot/components/common/util'
1
+ import { getRect } from '@tplc/wot/components/common/util'
2
2
  import { getCurrentInstance, onMounted, ref } from 'vue'
3
3
 
4
- const useAutoHeight = () => {
4
+ const useAutoHeight = (id = 'pagingTop') => {
5
5
  const { proxy } = getCurrentInstance() as any
6
6
  const isTabBar = uni.$lcb.getIsTabbar()
7
- const viewPageHeight = uni.getWindowInfo().windowHeight
7
+ const viewPageHeight = uni.getSystemInfoSync().windowHeight
8
8
  const height = ref('')
9
9
  onMounted(() => {
10
- getRect(`#pagingTop`, false, proxy).then((res) => {
11
- if (!isTabBar || isH5) {
12
- height.value = `${viewPageHeight - (res.top || 0)}px`
13
- } else {
14
- height.value = `calc(${viewPageHeight - (res.top || 0)}px - var(--window-bottom) - env(safe-area-inset-bottom))`
15
- }
16
- })
10
+ setTimeout(() => {
11
+ getRect(`#${id}`, false, proxy).then((res) => {
12
+ if (!isTabBar) {
13
+ height.value = `${viewPageHeight - (res.top || 0)}px`
14
+ } else {
15
+ height.value = `calc(${viewPageHeight - (res.top || 0)}px - var(--window-bottom) - env(safe-area-inset-bottom))`
16
+ }
17
+ })
18
+ }, 200)
17
19
  })
18
20
  return height
19
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.31",
3
+ "version": "0.2.32",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -1,2 +1,2 @@
1
- declare const useAutoHeight: () => import('vue').Ref<string>
1
+ declare const useAutoHeight: (id?: string) => import('vue').Ref<string>
2
2
  export default useAutoHeight