@tplc/business 0.2.86 → 0.2.89

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.89](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.88...v0.2.89) (2025-01-12)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 调整product 阴影 ([4b02637](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4b02637fa0eb9dea727164c79da336d1562f29d3))
11
+
12
+ ### [0.2.88](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.87...v0.2.88) (2025-01-12)
13
+
14
+ ### [0.2.87](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.86...v0.2.87) (2025-01-12)
15
+
16
+
17
+ ### ✨ Features | 新功能
18
+
19
+ * 图片圆角 ([10d8f40](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/10d8f40bd27573d4251d6edbf499f78cee3f6ab3))
20
+
5
21
  ### [0.2.86](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.85...v0.2.86) (2025-01-11)
6
22
 
7
23
  ### [0.2.85](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.84...v0.2.85) (2025-01-11)
@@ -207,9 +207,9 @@ const onChooseAvatar = async (e) => {
207
207
  color: inherit;
208
208
  font-size: inherit;
209
209
  // display: inline-block;
210
- line-height: normal;
211
- border-radius: inherit;
212
- overflow: inherit;
210
+ line-height: initial;
211
+ border-radius: initial;
212
+ overflow: initial;
213
213
  text-align: inherit;
214
214
  &::after {
215
215
  border: none;
@@ -94,7 +94,10 @@ defineExpose({
94
94
  </script>
95
95
 
96
96
  <template>
97
- <lcb-block v-bind="$props">
97
+ <lcb-block
98
+ v-bind="$props"
99
+ :custom-class="`${listType == 'horizontal' ? 'h-fit overflow-x-auto whitespace-nowrap flex items-stretch w-full' : ''}`"
100
+ >
98
101
  <!-- 单列 -->
99
102
  <view class="flex flex-col gap-2" v-if="listType === 'list'">
100
103
  <lcb-action-view
@@ -161,14 +164,13 @@ defineExpose({
161
164
  </lcb-action-view>
162
165
  </view>
163
166
 
164
- <view class="lcb-product-waterfall" v-else-if="listType === 'waterfall'">
167
+ <view class="lcb-product-waterfall p-0.5 !py-1" v-else-if="listType === 'waterfall'">
165
168
  <u-waterfall :addTime="0" :modelValue="renderList" ref="uWaterfallRef">
166
169
  <template #left="{ leftList: list }">
167
- <view class="flex flex-col gap-12px">
170
+ <view class="flex flex-col gap-3">
168
171
  <lcb-action-view
169
172
  v-for="(item, index) in list"
170
173
  :key="`${item?.productId}:${index}`"
171
- custom-class="!rounded !overflow-hidden"
172
174
  v-bind="item.link"
173
175
  >
174
176
  <slot name="item" :item="item">
@@ -213,7 +215,6 @@ defineExpose({
213
215
  <lcb-action-view
214
216
  v-for="(item, index) in list"
215
217
  :key="`${item?.productId}:${index}`"
216
- custom-class="!rounded !overflow-hidden"
217
218
  v-bind="item.link"
218
219
  >
219
220
  <slot name="item" :item="item">
@@ -255,49 +256,46 @@ defineExpose({
255
256
  </u-waterfall>
256
257
  </view>
257
258
 
258
- <scroll-view v-else-if="listType == 'horizontal'" scroll-x class="h-fit">
259
- <view class="whitespace-nowrap overflow-x-auto flex items-stretch">
260
- <lcb-action-view
261
- v-for="(item, index) in renderList"
262
- :key="`${item?.productId}:${index}`"
263
- custom-class="inline-block flex-shrink-0 w-fit !h-auto"
264
- v-bind="item.link"
259
+ <template v-else-if="listType == 'horizontal'">
260
+ <lcb-action-view
261
+ v-for="(item, index) in renderList"
262
+ :key="`${item?.productId}:${index}`"
263
+ custom-class="flex-shrink-0 w-fit !h-auto"
264
+ v-bind="item.link"
265
+ >
266
+ <view
267
+ :style="{
268
+ width: `${itemWidth}rpx`,
269
+ marginLeft: index === 0 ? 0 : '24rpx',
270
+ }"
271
+ class="h-full"
265
272
  >
266
- <view
267
- :style="{
268
- width: `${itemWidth}rpx`,
269
- marginLeft: index === 0 ? 0 : '24rpx',
270
- }"
271
- class="h-full"
272
- >
273
- <slot name="item" :item="item">
274
- <lcb-absolute-config-layout
275
- v-if="renderItemAbsoluteConfigLayout"
276
- :blocks="renderItemAbsoluteConfigLayout?.blocks"
277
- :canvas="renderItemAbsoluteConfigLayout?.canvas"
278
- :dataset="{
279
- ...(renderItemAbsoluteConfigLayout?.dataset ?? {}),
280
- ...item,
281
- }"
282
- />
283
- <lcb-product-item
284
- v-else
285
- className="h-full"
286
- v-bind="{ ...item, ...$props, ...attrs }"
287
- :coverImgStyle="{
288
- width: layoutType === 'vertical' ? '100%' : transformValueUnit(imageWidth),
289
- height: layoutType === 'vertical' ? transformValueUnit(imageHeight) : undefined,
290
- minHeight:
291
- layoutType !== 'vertical' ? transformValueUnit(imageHeight) : undefined,
292
- borderRadius: imageRadius ? transformValueUnit(imageRadius) : undefined,
293
- ...(attrs?.coverImgStyle ?? {}),
294
- }"
295
- ></lcb-product-item>
296
- </slot>
297
- </view>
298
- </lcb-action-view>
299
- </view>
300
- </scroll-view>
273
+ <slot name="item" :item="item">
274
+ <lcb-absolute-config-layout
275
+ v-if="renderItemAbsoluteConfigLayout"
276
+ :blocks="renderItemAbsoluteConfigLayout?.blocks"
277
+ :canvas="renderItemAbsoluteConfigLayout?.canvas"
278
+ :dataset="{
279
+ ...(renderItemAbsoluteConfigLayout?.dataset ?? {}),
280
+ ...item,
281
+ }"
282
+ />
283
+ <lcb-product-item
284
+ v-else
285
+ className="h-full"
286
+ v-bind="{ ...item, ...$props, ...attrs }"
287
+ :coverImgStyle="{
288
+ width: layoutType === 'vertical' ? '100%' : transformValueUnit(imageWidth),
289
+ height: layoutType === 'vertical' ? transformValueUnit(imageHeight) : undefined,
290
+ minHeight: layoutType !== 'vertical' ? transformValueUnit(imageHeight) : undefined,
291
+ borderRadius: imageRadius ? transformValueUnit(imageRadius) : undefined,
292
+ ...(attrs?.coverImgStyle ?? {}),
293
+ }"
294
+ ></lcb-product-item>
295
+ </slot>
296
+ </view>
297
+ </lcb-action-view>
298
+ </template>
301
299
  </lcb-block>
302
300
  </template>
303
301
 
@@ -307,5 +305,8 @@ defineExpose({
307
305
  display: flex;
308
306
  gap: 12px;
309
307
  }
308
+ :deep(.u-column) {
309
+ overflow: initial;
310
+ }
310
311
  }
311
312
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.86",
3
+ "version": "0.2.89",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],