@tplc/business 0.2.75 → 0.2.77
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,34 @@
|
|
|
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.77](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.76...v0.2.77) (2025-01-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
9
|
+
|
|
10
|
+
* 修改横向滚动不支持圆角 ([363ca00](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/363ca008f08c552aa888c3ebe1274a3063ab2760))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ✨ Features | 新功能
|
|
14
|
+
|
|
15
|
+
* 图标处理 ([d17d2aa](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d17d2aab174fcdcac3bf60b68325c15abf64c9c5))
|
|
16
|
+
|
|
17
|
+
### [0.2.76](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.74...v0.2.76) (2025-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
21
|
+
|
|
22
|
+
* **release:** 0.1.53 ([3f2435c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3f2435c86a660da4c1f1a926ca95728f12cc0d1b))
|
|
23
|
+
* **release:** 0.2.75 ([51ad472](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/51ad472341b6f3b0a9025f65646696e16ffe4fa7))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### ✨ Features | 新功能
|
|
27
|
+
|
|
28
|
+
* img block ([abbbb87](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/abbbb871b340d33e071dc78cc67e313aa3f4932b))
|
|
29
|
+
* 兼容引擎 ([7b6fc3c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7b6fc3cfe4ecba868c3fb095b1f9b103b724d9f7))
|
|
30
|
+
* 处理瀑布流刷新 ([d76fb08](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d76fb088eb287f0a88dfc029f7b9bb287a2b5cd8))
|
|
31
|
+
* 瀑布流调整策略 ([a7988e0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a7988e037342c211e45369ae4c324566b4b50f4a))
|
|
32
|
+
|
|
5
33
|
### [0.2.75](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.69...v0.2.75) (2025-01-06)
|
|
6
34
|
|
|
7
35
|
|
|
@@ -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.
|
|
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>
|
|
@@ -101,7 +101,10 @@ const value = computed(() => {
|
|
|
101
101
|
<wd-img :src="value" mode="aspectFill" width="100%" height="100%" v-if="!$slots.coverImg" />
|
|
102
102
|
<slot name="coverImg" :value="value" v-else />
|
|
103
103
|
<!-- imgBottomIcon -->
|
|
104
|
-
<view
|
|
104
|
+
<view
|
|
105
|
+
class="absolute bottom-0 left-0 w-full"
|
|
106
|
+
v-if="itemProps.imgBottomIcon && itemProps.imgBottomIconVisible"
|
|
107
|
+
>
|
|
105
108
|
<wd-img
|
|
106
109
|
:src="itemProps.imgBottomIcon"
|
|
107
110
|
custom-class="block"
|
|
@@ -111,7 +114,10 @@ const value = computed(() => {
|
|
|
111
114
|
/>
|
|
112
115
|
</view>
|
|
113
116
|
<!-- imgCornerIcon -->
|
|
114
|
-
<view
|
|
117
|
+
<view
|
|
118
|
+
class="absolute top-0 left-0 h-8"
|
|
119
|
+
v-if="itemProps.imgCornerIcon && itemProps.imgCornerIconVisible"
|
|
120
|
+
>
|
|
115
121
|
<wd-img
|
|
116
122
|
:src="itemProps.imgCornerIcon"
|
|
117
123
|
width="auto"
|
|
@@ -161,19 +167,13 @@ const value = computed(() => {
|
|
|
161
167
|
</slot>
|
|
162
168
|
|
|
163
169
|
<slot :value="value" v-if="prop === 'scoreAvg'" name="scoreAvg">
|
|
164
|
-
<view :class="className" :style="style"
|
|
165
|
-
|
|
166
|
-
custom-class="!text-24rpx relative top-[-2px]"
|
|
167
|
-
:color="'#ffffff'"
|
|
168
|
-
:bg-color="'#4554F0'"
|
|
169
|
-
>
|
|
170
|
-
{{ value }}
|
|
171
|
-
</wd-tag>
|
|
170
|
+
<view :class="`px-1.5 rounded bg-primary text-4 text-white ${className}`" :style="style">
|
|
171
|
+
{{ value }}
|
|
172
172
|
</view>
|
|
173
173
|
</slot>
|
|
174
174
|
|
|
175
175
|
<slot :value="value" v-if="prop === 'scoreTips'" name="scoreTips">
|
|
176
|
-
<view :class="className" :style="style" class="text-
|
|
176
|
+
<view :class="className" :style="style" class="text-primary font-bold">
|
|
177
177
|
<view>{{ value }}</view>
|
|
178
178
|
</view>
|
|
179
179
|
</slot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.77",
|
|
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.
|
|
14
|
+
"@tplc/wot": "0.1.53"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|