@tplc/business 0.4.31 → 0.4.32
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 +15 -0
- package/components/lcb-list/components/UnconditionedLayout/index.vue +15 -5
- package/components/lcb-product/lcb-product.vue +2 -1
- package/components/lcb-product/types.ts +1 -0
- package/components/lcb-search/components/SearchList/index.vue +2 -2
- package/components/lcb-search/lcb-search.vue +7 -2
- package/package.json +1 -1
- package/types/components/lcb-list/components/UnconditionedLayout/index.vue.d.ts +2 -0
- package/types/components/lcb-product/types.d.ts +1 -0
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.4.32](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.29...v0.4.32) (2025-03-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.4.30 ([56994b6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/56994b6b39d31332c139b0d8b01844adb35d8dde))
|
|
11
|
+
* **release:** 0.4.31 ([79ab614](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/79ab614e586068201cc3f41dabce96750d0d8aec))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ✨ Features | 新功能
|
|
15
|
+
|
|
16
|
+
* form 数据转换 ([779c3d6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/779c3d6f8be76f67a82645ffacf648d7669cca3d))
|
|
17
|
+
* 字段解析 ([38461f0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38461f09e19042e31dbd52e3a49810f239ebb255))
|
|
18
|
+
* 暂时完成数据 ([0e97d09](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0e97d09182421a21a90659a785e10ae5489d9e61))
|
|
19
|
+
|
|
5
20
|
### [0.4.31](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.30...v0.4.31) (2025-03-28)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -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
|
-
<
|
|
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-
|
|
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
|
-
<
|
|
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
|
},
|
|
@@ -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>
|
|
@@ -75,8 +75,13 @@
|
|
|
75
75
|
@click="onClear"
|
|
76
76
|
/>
|
|
77
77
|
</view>
|
|
78
|
-
<lcb-action-view
|
|
79
|
-
|
|
78
|
+
<lcb-action-view
|
|
79
|
+
v-bind="link"
|
|
80
|
+
:urlParams="stringify(addressCity)"
|
|
81
|
+
v-else
|
|
82
|
+
custom-class="flex-1"
|
|
83
|
+
>
|
|
84
|
+
{{ form.keywords || placeholder }}
|
|
80
85
|
</lcb-action-view>
|
|
81
86
|
</view>
|
|
82
87
|
</lcb-block>
|
package/package.json
CHANGED