@tplc/business 0.4.31 → 0.4.33

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,28 @@
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.33](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.76...v0.4.33) (2025-03-29)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * ui ([9d087bb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9d087bb527f4f68b8146b7e6914c4633b3ff08e2))
11
+
12
+ ### [0.4.32](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.29...v0.4.32) (2025-03-29)
13
+
14
+
15
+ ### 🚀 Chore | 构建/工程依赖/工具
16
+
17
+ * **release:** 0.4.30 ([56994b6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/56994b6b39d31332c139b0d8b01844adb35d8dde))
18
+ * **release:** 0.4.31 ([79ab614](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/79ab614e586068201cc3f41dabce96750d0d8aec))
19
+
20
+
21
+ ### ✨ Features | 新功能
22
+
23
+ * form 数据转换 ([779c3d6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/779c3d6f8be76f67a82645ffacf648d7669cca3d))
24
+ * 字段解析 ([38461f0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38461f09e19042e31dbd52e3a49810f239ebb255))
25
+ * 暂时完成数据 ([0e97d09](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0e97d09182421a21a90659a785e10ae5489d9e61))
26
+
5
27
  ### [0.4.31](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.30...v0.4.31) (2025-03-28)
6
28
 
7
29
 
@@ -132,9 +132,11 @@ watch(
132
132
  ...((options.value.filter((v) => v.valueName).map((v) => v.valueName) as string[]) || []),
133
133
  ]
134
134
  })
135
+ currentCategory.value = 0
135
136
  },
136
137
  {
137
138
  immediate: true,
139
+ deep: true,
138
140
  },
139
141
  )
140
142
  const onGridScroll = (e) => {
@@ -1,26 +1,26 @@
1
1
  <template>
2
- <view v-if="extendJson" :style="itemStyle" class="overflow-hidden text-3">
2
+ <view v-if="extendJson" :style="itemStyle" class="overflow-hidden text-3.5">
3
3
  <view
4
4
  class="flex items-center justify-center p-3 bg-white box-border"
5
5
  v-if="extendJson.resultTitle"
6
6
  >
7
7
  <view class="flex items-center justify-center">
8
- <img :src="extendJson.resultIcon" alt="" class="w-4 h-4" />
8
+ <image :src="extendJson.resultIcon" alt="" class="h-4 w-4" />
9
9
  <view class="ml-2">
10
10
  <view class="mt-1">{{ extendJson.resultTitle }}</view>
11
- <view class="text-#969696 text-2.5">{{ extendJson.resultSubTitle }}</view>
11
+ <view class="text-#969696 text-3">{{ extendJson.resultSubTitle }}</view>
12
12
  </view>
13
13
  </view>
14
14
  </view>
15
15
  <view class="p-3 bg-#F5F5F5 box-border">
16
16
  <view class="flex items-center justify-between">
17
17
  <view class="flex items-center gap-1">
18
- <img :src="extendJson.optionIcon" alt="" class="w-3 h-3" />
18
+ <image :src="extendJson.optionIcon" alt="" class="w-3.5 h-3.5" />
19
19
  {{ extendJson.optionTitle }}
20
20
  </view>
21
21
  <view class="flex items-center justify-center" @click="handleClearAll">
22
22
  <wd-icon name="delete1" size="16" />
23
- <text class="ml-0.5">清空</text>
23
+ <text class="ml-0.5 text-3">清空</text>
24
24
  </view>
25
25
  </view>
26
26
  <view class="flex flex-wrap gap-1 mt-2">
@@ -37,6 +37,13 @@
37
37
  </block>
38
38
  </view>
39
39
  </view>
40
+ <view
41
+ class="py-2 px-3 bg-white box-border flex items-center gap-1"
42
+ v-if="extendJson.recommendTitle"
43
+ >
44
+ <image :src="extendJson.recommendIcon" alt="" class="w-3.5 h-3.5" />
45
+ <view>{{ extendJson.recommendTitle }}</view>
46
+ </view>
40
47
  </view>
41
48
  </template>
42
49
 
@@ -58,6 +65,8 @@ interface UnconditionedLayoutConfig {
58
65
  resultTitle: string
59
66
  optionIcon: string
60
67
  resultSubTitle: string
68
+ recommendTitle: string
69
+ recommendIcon: string
61
70
  }
62
71
 
63
72
  const list = inject(LIST_FORM_CHOOSER_VALUES) as Ref<ListFormChooserValues>
@@ -116,6 +125,7 @@ const removeTag = (value: string, key: string, length: number) => {
116
125
  * 清空所有标签
117
126
  */
118
127
  const handleClearAll = () => {
128
+ form.value.keywords = undefined
119
129
  Object.keys(list.value).forEach((v) => {
120
130
  form.value[v] = undefined
121
131
  list.value[v] = []
@@ -58,6 +58,7 @@ const getData = async () => {
58
58
  productIdList: props.items.map((item) => item.productId),
59
59
  productType: props.items[0].productType,
60
60
  listType: props.listType,
61
+ sortType: props.sortType,
61
62
  ...requestParams,
62
63
  })
63
64
  renderList.value = data as Record<string, any>[]
@@ -121,7 +122,7 @@ watch(
121
122
  { immediate: true, deep: true },
122
123
  )
123
124
  watch(
124
- () => props.listType,
125
+ () => [props.listType, props.sortType],
125
126
  () => {
126
127
  getData()
127
128
  },
@@ -12,6 +12,7 @@ export interface LcbProductProps extends LcbBlockProps {
12
12
  borderRadius?: number
13
13
  column?: number
14
14
  itemWidth?: number // 列表项宽度
15
+ sortType?: number // 排序类型
15
16
  items?: {
16
17
  productId: string
17
18
  [key: string]: any
@@ -48,11 +48,11 @@
48
48
  mode="aspectFill"
49
49
  />
50
50
  </view>
51
- <view v-if="item.price">
51
+ <view v-if="item.price" class="ml-2">
52
52
  <text class="font-600 text-primary text-3.5">¥{{ item.price }}</text>
53
53
  <text>{{ item.priceSuffix }}</text>
54
54
  </view>
55
- <view v-else-if="item.tags">
55
+ <view v-else-if="item.tags" class="ml-2">
56
56
  {{ getJsonStrFirstUrl(item.tags) }}
57
57
  </view>
58
58
  </view>
@@ -1,5 +1,10 @@
1
1
  <template>
2
- <view class="flex w-full items-center">
2
+ <view
3
+ class="flex w-full items-center"
4
+ :style="{
5
+ backgroundColor: blockBackground,
6
+ }"
7
+ >
3
8
  <lcb-block
4
9
  v-bind="$props"
5
10
  customClass="border-solid"
@@ -75,8 +80,13 @@
75
80
  @click="onClear"
76
81
  />
77
82
  </view>
78
- <lcb-action-view v-bind="link" :urlParams="stringify(addressCity)" v-else>
79
- {{ placeholder }}
83
+ <lcb-action-view
84
+ v-bind="link"
85
+ :urlParams="stringify(addressCity)"
86
+ v-else
87
+ custom-class="flex-1"
88
+ >
89
+ {{ form.keywords || placeholder }}
80
90
  </lcb-action-view>
81
91
  </view>
82
92
  </lcb-block>
@@ -30,5 +30,6 @@ export type LcbSearchProps = {
30
30
  historyKey?: string
31
31
 
32
32
  initFocus?: boolean
33
+ blockBackground?: string
33
34
  } & LcbActionViewProps &
34
35
  LcbBlockProps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.31",
3
+ "version": "0.4.33",
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.75"
14
+ "@tplc/wot": "0.1.76"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -4,6 +4,8 @@ interface UnconditionedLayoutConfig {
4
4
  resultTitle: string
5
5
  optionIcon: string
6
6
  resultSubTitle: string
7
+ recommendTitle: string
8
+ recommendIcon: string
7
9
  }
8
10
  declare const _default: import('vue').DefineComponent<
9
11
  __VLS_WithDefaults<
@@ -10,6 +10,7 @@ export interface LcbProductProps extends LcbBlockProps {
10
10
  borderRadius?: number
11
11
  column?: number
12
12
  itemWidth?: number
13
+ sortType?: number
13
14
  items?: {
14
15
  productId: string
15
16
  [key: string]: any
@@ -64,6 +64,7 @@ declare const _default: import('vue').DefineComponent<
64
64
  lineHeight?: number
65
65
  historyKey?: string
66
66
  initFocus?: boolean
67
+ blockBackground?: string
67
68
  } & {
68
69
  jumpUrl?: string
69
70
  urlParams?: string
@@ -154,6 +155,7 @@ declare const _default: import('vue').DefineComponent<
154
155
  lineHeight?: number
155
156
  historyKey?: string
156
157
  initFocus?: boolean
158
+ blockBackground?: string
157
159
  } & {
158
160
  jumpUrl?: string
159
161
  urlParams?: string
@@ -222,6 +224,7 @@ declare const _default: import('vue').DefineComponent<
222
224
  lineHeight?: number
223
225
  historyKey?: string
224
226
  initFocus?: boolean
227
+ blockBackground?: string
225
228
  } & {
226
229
  jumpUrl?: string
227
230
  urlParams?: string
@@ -292,6 +295,7 @@ declare const _default: import('vue').DefineComponent<
292
295
  lineHeight?: number
293
296
  historyKey?: string
294
297
  initFocus?: boolean
298
+ blockBackground?: string
295
299
  } & {
296
300
  jumpUrl?: string
297
301
  urlParams?: string
@@ -357,6 +361,7 @@ declare const _default: import('vue').DefineComponent<
357
361
  lineHeight?: number
358
362
  historyKey?: string
359
363
  initFocus?: boolean
364
+ blockBackground?: string
360
365
  } & {
361
366
  jumpUrl?: string
362
367
  urlParams?: string
@@ -23,5 +23,6 @@ export type LcbSearchProps = {
23
23
  lineHeight?: number
24
24
  historyKey?: string
25
25
  initFocus?: boolean
26
+ blockBackground?: string
26
27
  } & LcbActionViewProps &
27
28
  LcbBlockProps