@tplc/business 0.4.82 → 0.4.83

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.4.83](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.79...v0.4.83) (2025-04-29)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.4.80 ([46fb687](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/46fb6871903902d843b95d888dd4d7dde93f6016))
11
+ * **release:** 0.4.81 ([dc2337a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dc2337ad8a773bf957fdcbe9537522763935f6ed))
12
+ * **release:** 0.4.82 ([2314a18](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2314a183177b2a18967549e59749b4c606ccdb85))
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * PAGE_DYNAMIC_DATA ([815d9de](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/815d9ded9a4b6b55893104198a2e569d39036ea8))
18
+ * 支持scope ([22fc204](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/22fc2049e6c5af088ff333ce4152959404b914bb))
19
+ * 支持分享 ([841c723](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/841c72301546c1e5ad4fe4010e53b7fbef79ffa3))
20
+
5
21
  ### [0.4.82](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.81...v0.4.82) (2025-04-29)
6
22
 
7
23
 
@@ -93,6 +93,7 @@ const props = withDefaults(defineProps<LcbListProps>(), {
93
93
  mode: 'list',
94
94
  imageWidth: 250,
95
95
  titleLineClamp: 2,
96
+ gap: 16,
96
97
  // @ts-ignore
97
98
  pageListProps: () => ({
98
99
  productProps: {
@@ -18,6 +18,7 @@ export interface LcbListProps extends LcbBlockProps {
18
18
  imageRadius?: number
19
19
  itemWidth?: number // 列表项宽度
20
20
  dynamicScope?: string
21
+ gap?: number
21
22
  }
22
23
  export interface Option {
23
24
  label: string
@@ -28,6 +28,7 @@ const props = withDefaults(defineProps<LcbProductProps>(), {
28
28
  paddingHorizontal: 24,
29
29
  paddingVertical: 24,
30
30
  sourceMode: 1,
31
+ gap: 16,
31
32
  })
32
33
  const { form } = useSyncForm(props.dynamicScope)
33
34
  const renderList = ref<Record<string, any>[]>([])
@@ -76,14 +77,14 @@ const getData = async () => {
76
77
  }
77
78
  }
78
79
  watch(
79
- () => form.value,
80
- () => {
80
+ () => form!.value,
81
+ (oldValue = {}, newValue = {}) => {
81
82
  if (props.listType === 'waterfall') {
82
83
  renderList.value = []
83
84
  uWaterfallRef.value?.clear?.()
84
85
  }
85
86
  /** 如果是请求模式 */
86
- if (props.sourceMode === 2) {
87
+ if (props.sourceMode === 2 && JSON.stringify(oldValue) !== JSON.stringify(newValue)) {
87
88
  getData()
88
89
  }
89
90
  },
@@ -150,10 +151,11 @@ defineExpose({
150
151
  >
151
152
  <!-- 单列 -->
152
153
  <view
153
- class="flex flex-col gap-2"
154
+ class="flex flex-col"
154
155
  v-if="listType === 'list'"
155
156
  :style="{
156
157
  width: itemWidth ? `${itemWidth}rpx` : '100%',
158
+ gap: gap ? `${gap}rpx` : undefined,
157
159
  }"
158
160
  >
159
161
  <block v-for="(item, index) in renderList" :key="`${item?.productId}:${index}`">
@@ -190,10 +192,11 @@ defineExpose({
190
192
  </view>
191
193
  <!-- 双列 -->
192
194
  <view
193
- class="grid grid-cols-2 box-border gap-2"
195
+ class="grid grid-cols-2 box-border"
194
196
  v-else-if="listType === 'grid'"
195
197
  :style="{
196
198
  width: itemWidth ? `${itemWidth}rpx` : '100%',
199
+ gap: gap ? `${gap}rpx` : undefined,
197
200
  }"
198
201
  >
199
202
  <lcb-action-view
@@ -38,4 +38,5 @@ export interface LcbProductProps extends LcbBlockProps {
38
38
  }
39
39
  }
40
40
  dynamicScope?: string
41
+ gap?: number
41
42
  }
@@ -154,7 +154,7 @@ const coverImgWidth = computed(() => {
154
154
  itemProps.areaOnImg &&
155
155
  !itemProps.imgBottomIcon
156
156
  "
157
- class="flex absolute bottom-0 left-0 z-1 gap-1 p-2 w-full box-border text-white text-3.5 items-center"
157
+ class="flex absolute bottom-0 left-0 z-1 gap-1 p-1 w-full box-border text-white text-3.5 items-center text-shadow-xl"
158
158
  :style="{
159
159
  color: itemProps.areaColor,
160
160
  fontSize: `${itemProps.areaFontSize}rpx`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.82",
3
+ "version": "0.4.83",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -59,6 +59,7 @@ declare const __VLS_component: import('vue').DefineComponent<
59
59
  | 'bottom-left'
60
60
  | 'bottom-center'
61
61
  | 'bottom-right'
62
+ gap: number
62
63
  imageWidth: number
63
64
  borderRadius: number
64
65
  imageHeight: number
@@ -17,6 +17,7 @@ export interface LcbListProps extends LcbBlockProps {
17
17
  imageRadius?: number
18
18
  itemWidth?: number
19
19
  dynamicScope?: string
20
+ gap?: number
20
21
  }
21
22
  export interface Option {
22
23
  label: string
@@ -16,6 +16,7 @@ declare const __VLS_component: import('vue').DefineComponent<
16
16
  paddingHorizontal: number
17
17
  paddingVertical: number
18
18
  sourceMode: number
19
+ gap: number
19
20
  }
20
21
  >,
21
22
  {
@@ -42,6 +43,7 @@ declare const __VLS_component: import('vue').DefineComponent<
42
43
  paddingHorizontal: number
43
44
  paddingVertical: number
44
45
  sourceMode: number
46
+ gap: number
45
47
  }
46
48
  >
47
49
  >
@@ -49,6 +51,7 @@ declare const __VLS_component: import('vue').DefineComponent<
49
51
  {
50
52
  paddingHorizontal: number
51
53
  paddingVertical: number
54
+ gap: number
52
55
  column: number
53
56
  imageWidth: number
54
57
  imageHeight: number
@@ -35,4 +35,5 @@ export interface LcbProductProps extends LcbBlockProps {
35
35
  }
36
36
  }
37
37
  dynamicScope?: string
38
+ gap?: number
38
39
  }