@tplc/business 0.2.85 → 0.2.88

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,17 @@
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.88](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.87...v0.2.88) (2025-01-12)
6
+
7
+ ### [0.2.87](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.86...v0.2.87) (2025-01-12)
8
+
9
+
10
+ ### ✨ Features | 新功能
11
+
12
+ * 图片圆角 ([10d8f40](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/10d8f40bd27573d4251d6edbf499f78cee3f6ab3))
13
+
14
+ ### [0.2.86](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.85...v0.2.86) (2025-01-11)
15
+
5
16
  ### [0.2.85](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.84...v0.2.85) (2025-01-11)
6
17
 
7
18
 
@@ -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;
@@ -23,11 +23,8 @@
23
23
  :enable-preview="enablePreview"
24
24
  :mode="imageHeight ? 'scaleToFill' : 'widthFix'"
25
25
  :height="imageHeight ? transformValueUnit(imageHeight) : 'auto'"
26
- :custom-class="`${styleGroup == 3 ? 'overflow-hidden' : 'overflow-hidden block'}`"
27
- :style="{
28
- borderRadius: transformValueUnit(imageRadius),
29
- display: 'block',
30
- }"
26
+ custom-class="overflow-hidden block"
27
+ :radius="transformValueUnit(imageRadius)"
31
28
  />
32
29
  </lcb-action-view>
33
30
  <view
@@ -161,14 +161,13 @@ defineExpose({
161
161
  </lcb-action-view>
162
162
  </view>
163
163
 
164
- <view class="lcb-product-waterfall" v-else-if="listType === 'waterfall'">
164
+ <view class="lcb-product-waterfall p-0.5" v-else-if="listType === 'waterfall'">
165
165
  <u-waterfall :addTime="0" :modelValue="renderList" ref="uWaterfallRef">
166
166
  <template #left="{ leftList: list }">
167
- <view class="flex flex-col gap-12px">
167
+ <view class="flex flex-col gap-3">
168
168
  <lcb-action-view
169
169
  v-for="(item, index) in list"
170
170
  :key="`${item?.productId}:${index}`"
171
- custom-class="!rounded !overflow-hidden"
172
171
  v-bind="item.link"
173
172
  >
174
173
  <slot name="item" :item="item">
@@ -213,7 +212,6 @@ defineExpose({
213
212
  <lcb-action-view
214
213
  v-for="(item, index) in list"
215
214
  :key="`${item?.productId}:${index}`"
216
- custom-class="!rounded !overflow-hidden"
217
215
  v-bind="item.link"
218
216
  >
219
217
  <slot name="item" :item="item">
@@ -255,49 +253,49 @@ defineExpose({
255
253
  </u-waterfall>
256
254
  </view>
257
255
 
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"
256
+ <view
257
+ class="whitespace-nowrap flex items-stretch w-full overflow-x-auto p-0.5"
258
+ v-else-if="listType == 'horizontal'"
259
+ >
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"
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
+ </view>
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.85",
3
+ "version": "0.2.88",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],