@tplc/business 0.2.58 → 0.2.60

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,21 @@
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.60](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.59...v0.2.60) (2025-01-04)
6
+
7
+ ### [0.2.59](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.58...v0.2.59) (2025-01-04)
8
+
9
+
10
+ ### ✨ Features | 新功能
11
+
12
+ * 城市选择回显 ([eacf6d9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/eacf6d9cdfe56d7ac7c90c1cf3096de14c861ad5))
13
+
14
+
15
+ ### 🐛 Bug Fixes | Bug 修复
16
+
17
+ * 修复双列点击没有 ([33a0161](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/33a01615f99fed3ccbc2a41b90663edecbe1661b))
18
+ * 金额没对齐问题调整 ([3870681](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38706811038fa18709a5916d1e30c3e25c8ce321))
19
+
5
20
  ### [0.2.58](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.57...v0.2.58) (2025-01-03)
6
21
 
7
22
 
@@ -60,8 +60,11 @@ withDefaults(defineProps<LcbCalendarSearchProps>(), {
60
60
  placeholder: '城市|地点|品牌',
61
61
  icon: 'search',
62
62
  })
63
- const addressCity = ref<LcbAddress>()
63
+
64
64
  const form = inject(FORM_KEY) as Ref<Record<string, any>>
65
+ const addressCity = ref<LcbAddress | undefined>(
66
+ form.value.cityId ? (form.value as LcbAddress) : undefined,
67
+ )
65
68
  const dayRange = ref([
66
69
  form.value.startDate ? dayjs(form.value.startDate).valueOf() : dayjs().valueOf(),
67
70
  form.value.endDate ? dayjs(form.value.endDate).valueOf() : dayjs().add(1, 'day').valueOf(),
@@ -34,7 +34,7 @@ watch(
34
34
 
35
35
  <template>
36
36
  <lcb-block v-bind="$props">
37
- <view class="flex flex-col gap-2 p-2" v-if="listType === 'list'">
37
+ <view class="flex flex-col gap-2 p-3" v-if="listType === 'list'">
38
38
  <lcb-action-view
39
39
  v-for="(item, index) in items"
40
40
  :key="`${item?.productId}:${index}`"
@@ -64,34 +64,36 @@ watch(
64
64
  </lcb-action-view>
65
65
  </view>
66
66
 
67
- <view class="flex p-1 flex-wrap" v-if="listType === 'grid'">
68
- <view v-for="(item, index) in items" :key="`${item?.productId}:${index}`" class="w-1/2">
69
- <view class="p-1 overflow-hidden">
70
- <view class="rounded overflow-hidden" :style="{ height: `${itemHeight}rpx` }">
71
- <slot name="item" :item="item">
72
- <lcb-absolute-config-layout
73
- v-if="renderItemAbsoluteConfigLayout"
74
- :blocks="renderItemAbsoluteConfigLayout?.blocks"
75
- :canvas="renderItemAbsoluteConfigLayout?.canvas"
76
- :dataset="{
77
- ...(renderItemAbsoluteConfigLayout?.dataset ?? {}),
78
- ...item,
79
- }"
80
- />
81
- <lcb-product-item
82
- v-else
83
- v-bind="{ ...item, ...attrs }"
84
- layoutType="vertical"
85
- className="!h-full"
86
- :coverImgStyle="{
87
- height: `${imageHeightPercent}%`,
88
- ...(attrs?.coverImgStyle ?? {}),
89
- }"
90
- ></lcb-product-item>
91
- </slot>
92
- </view>
67
+ <view class="grid p-3 grid-cols-2 gap-2 box-border" v-if="listType === 'grid'">
68
+ <lcb-action-view
69
+ v-for="(item, index) in items"
70
+ :key="`${item?.productId}:${index}`"
71
+ v-bind="item.link"
72
+ >
73
+ <view class="rounded-md overflow-hidden" :style="{ height: `${itemHeight}rpx` }">
74
+ <slot name="item" :item="item">
75
+ <lcb-absolute-config-layout
76
+ v-if="renderItemAbsoluteConfigLayout"
77
+ :blocks="renderItemAbsoluteConfigLayout?.blocks"
78
+ :canvas="renderItemAbsoluteConfigLayout?.canvas"
79
+ :dataset="{
80
+ ...(renderItemAbsoluteConfigLayout?.dataset ?? {}),
81
+ ...item,
82
+ }"
83
+ />
84
+ <lcb-product-item
85
+ v-else
86
+ v-bind="{ ...item, ...attrs }"
87
+ layoutType="vertical"
88
+ className="!h-full"
89
+ :coverImgStyle="{
90
+ height: `${imageHeightPercent}%`,
91
+ ...(attrs?.coverImgStyle ?? {}),
92
+ }"
93
+ ></lcb-product-item>
94
+ </slot>
93
95
  </view>
94
- </view>
96
+ </lcb-action-view>
95
97
  </view>
96
98
 
97
99
  <view class="lcb-product-waterfall">
@@ -120,7 +120,7 @@ defineSlots<{
120
120
  <slot name="coverImgSection" />
121
121
  </template>
122
122
  </ItemValue>
123
- <view class="flex flex-col flex-1 justify-between text-26rpx overflow-hidden relative">
123
+ <view class="flex flex-col flex-1 text-26rpx overflow-hidden relative">
124
124
  <slot name="contentSection" />
125
125
  <view class="flex flex-col gap-[5px] overflow-hidden">
126
126
  <!-- <template
@@ -200,8 +200,8 @@ defineSlots<{
200
200
  <!-- </template> -->
201
201
  </ItemValue>
202
202
  </view>
203
-
204
- <view class="flex flex-col gap-1 items-end">
203
+ <view class="flex-1"></view>
204
+ <view class="flex flex-col gap-1 items-end leading-none">
205
205
  <view class="flex gap-1 justify-end">
206
206
  <view
207
207
  class="flex gap-[2rpx] items-end line-through"
@@ -279,7 +279,7 @@ defineSlots<{
279
279
  <slot name="coverImgSection" />
280
280
  </template>
281
281
  </ItemValue>
282
- <view class="p-2 flex flex-col flex-1 justify-between text-26rpx overflow-hidden relative">
282
+ <view class="p-2 flex flex-col flex-1 text-26rpx overflow-hidden relative">
283
283
  <slot name="contentSection" />
284
284
  <view class="flex flex-col gap-[5px] overflow-hidden">
285
285
  <!-- <template
@@ -359,8 +359,8 @@ defineSlots<{
359
359
  </template> -->
360
360
  </ItemValue>
361
361
  </view>
362
-
363
- <view class="flex flex-col gap-1 items-end">
362
+ <view class="flex-1"></view>
363
+ <view class="flex flex-col gap-1 items-end leading-none">
364
364
  <view class="flex gap-1 justify-end">
365
365
  <view
366
366
  class="flex gap-[2rpx] items-end line-through"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.58",
3
+ "version": "0.2.60",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],