@tplc/business 0.2.75 → 0.2.76

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,22 @@
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.76](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.74...v0.2.76) (2025-01-07)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.1.53 ([3f2435c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3f2435c86a660da4c1f1a926ca95728f12cc0d1b))
11
+ * **release:** 0.2.75 ([51ad472](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/51ad472341b6f3b0a9025f65646696e16ffe4fa7))
12
+
13
+
14
+ ### ✨ Features | 新功能
15
+
16
+ * img block ([abbbb87](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/abbbb871b340d33e071dc78cc67e313aa3f4932b))
17
+ * 兼容引擎 ([7b6fc3c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7b6fc3cfe4ecba868c3fb095b1f9b103b724d9f7))
18
+ * 处理瀑布流刷新 ([d76fb08](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d76fb088eb287f0a88dfc029f7b9bb287a2b5cd8))
19
+ * 瀑布流调整策略 ([a7988e0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a7988e037342c211e45369ae4c324566b4b50f4a))
20
+
5
21
  ### [0.2.75](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.69...v0.2.75) (2025-01-06)
6
22
 
7
23
 
@@ -4,6 +4,7 @@ import UWaterfall from 'uview-plus/components/u-waterfall/u-waterfall.vue'
4
4
  import { LcbProductProps } from './types'
5
5
  import { transformValueUnit } from '../../utils/transform'
6
6
  import { calculateImageHeight } from '../../utils/utils'
7
+ import { isH5 } from '@tplc/wot/components/common/util'
7
8
 
8
9
  const uWaterfallRef = ref()
9
10
  defineOptions({
@@ -24,7 +25,7 @@ const props = withDefaults(defineProps<LcbProductProps>(), {
24
25
  column: 2,
25
26
  })
26
27
  const renderList = ref<Record<string, any>[]>([])
27
- const screenWidth = uni.getSystemInfoSync().screenWidth
28
+ const screenWidth = isH5 ? window.innerWidth : uni.getWindowInfo().screenWidth
28
29
  watchEffect(() => {
29
30
  if (!props.filterList) return
30
31
  renderList.value = props.items as Record<string, any>[]
@@ -251,8 +252,7 @@ defineExpose({
251
252
  />
252
253
  <lcb-product-item
253
254
  v-else
254
- v-bind="item"
255
- :layoutType="layoutType"
255
+ v-bind="{ ...item, ...$props, ...attrs }"
256
256
  :coverImgStyle="{
257
257
  width: layoutType === 'vertical' ? '100%' : transformValueUnit(imageWidth),
258
258
  height: layoutType === 'vertical' ? transformValueUnit(imageHeight) : undefined,
@@ -260,7 +260,6 @@ defineExpose({
260
260
  borderRadius: imageRadius ? transformValueUnit(imageRadius) : undefined,
261
261
  ...(attrs?.coverImgStyle ?? {}),
262
262
  }"
263
- :titleLineClamp="titleLineClamp"
264
263
  ></lcb-product-item>
265
264
  </slot>
266
265
  </view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.75",
3
+ "version": "0.2.76",
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": "0.1.52"
14
+ "@tplc/wot": "0.1.53"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",