@tplc/business 0.4.15 → 0.4.17
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 +42 -0
- package/components/lcb-area-picker/api/index.ts +1 -0
- package/components/lcb-calendar-search/lcb-calendar-search.vue +4 -1
- package/components/lcb-city-select/api/index.ts +2 -0
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +2 -0
- package/components/lcb-city-select/components/lcb-city-list/index.vue +5 -1
- package/components/lcb-city-select/lcb-city-select.vue +1 -0
- package/components/lcb-home-search/lcb-home-search.vue +3 -0
- package/components/lcb-product/lcb-product.vue +21 -3
- package/components/lcb-search/lcb-search.vue +3 -2
- package/hooks/useLocation.api.ts +1 -0
- package/package.json +2 -2
- package/types/components/lcb-area-picker/api/index.d.ts +1 -0
- package/types/components/lcb-city-select/api/index.d.ts +2 -0
- package/types/hooks/useLocation.api.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
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.17](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.4...v0.4.17) (2025-03-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* prodcut 单列也支持itemWidth ([216470d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/216470de894322367ad74054244cd7a4a0a72b74))
|
|
11
|
+
* 修改地址 ([dba8297](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dba82970fccf44096fed203b46316c7da2f9f9b9))
|
|
12
|
+
* 修改字段 ([659d081](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/659d081b746f63f4502abd03b7137d1247419453))
|
|
13
|
+
* 搜索条件处理 ([56fb8cd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/56fb8cd2a4909b885d493809e92eff59ed784c08))
|
|
14
|
+
* 新增historuy ([7a2fd5d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7a2fd5d467365d068080ff8affc01d8d0124ccbd))
|
|
15
|
+
* 新增search list ([d3aef1e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d3aef1ef5a024280946071d17e54b2c70057e56a))
|
|
16
|
+
* 新增数据 ([79f5a41](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/79f5a4134e246fa22f6f01b99b6e1de78dc1581e))
|
|
17
|
+
* 新增过滤属性 ([1550bf8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1550bf828d51340111c293d3e6e856397d02480f))
|
|
18
|
+
* 调整全局 ([c7ef8db](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c7ef8db507c2b199cebfed02c6051bc81fd6d6ff))
|
|
19
|
+
* 调整日历 ([89734b6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/89734b6488f7f06e0ce0acc6bb3926c2ff443284))
|
|
20
|
+
* 选中 ([9647c0b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9647c0b3f06a1479baa8c8877ca69e5adcc51c96))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
24
|
+
|
|
25
|
+
* **release:** 0.1.73 ([25060fe](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/25060fec56e40d93bc72c16252c2de61c246667c))
|
|
26
|
+
* **release:** 0.4.10 ([79f133e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/79f133e84b573b4ec17c427b58dbb8d7edc0f417))
|
|
27
|
+
* **release:** 0.4.11 ([70b2d74](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/70b2d74be4249bc5c44faf23e767dc79014c570e))
|
|
28
|
+
* **release:** 0.4.12 ([4c8eae0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4c8eae0439c09e6bfd040305468fcbbc04ad7983))
|
|
29
|
+
* **release:** 0.4.13 ([38231bf](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38231bf185451075448d113d72cb05e75cb11b02))
|
|
30
|
+
* **release:** 0.4.14 ([5de7dae](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5de7daeb9c37b8064336f38948686a978e38c35e))
|
|
31
|
+
* **release:** 0.4.15 ([ebc5e83](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ebc5e8364f1e6cf1af96b54e83386322a969cf9a))
|
|
32
|
+
* **release:** 0.4.16 ([c915ea8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c915ea8dbf3c40172a865cb6e87f4dd0cde4112c))
|
|
33
|
+
* **release:** 0.4.5 ([fffd7c5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/fffd7c56475cdd29eaf63c210b0e2a873eefeca1))
|
|
34
|
+
* **release:** 0.4.6 ([f437a16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f437a16a28f45f8e38d49de925e226c779ef728a))
|
|
35
|
+
* **release:** 0.4.7 ([38fd7ee](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38fd7ee8de57e93ddb7dc7c1395a53ebb67aed7c))
|
|
36
|
+
* **release:** 0.4.8 ([57a030f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/57a030f7e18a150a2846ed5da2533819e637d445))
|
|
37
|
+
* **release:** 0.4.9 ([c592177](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c5921773be664a74b551f5eae79d91ebe7efce4a))
|
|
38
|
+
|
|
39
|
+
### [0.4.16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.73...v0.4.16) (2025-03-25)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### ✨ Features | 新功能
|
|
43
|
+
|
|
44
|
+
* prodcut 单列也支持itemWidth ([216470d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/216470de894322367ad74054244cd7a4a0a72b74))
|
|
45
|
+
* 选中 ([9647c0b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9647c0b3f06a1479baa8c8877ca69e5adcc51c96))
|
|
46
|
+
|
|
5
47
|
### [0.4.15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.14...v0.4.15) (2025-03-25)
|
|
6
48
|
|
|
7
49
|
### [0.4.14](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.13...v0.4.14) (2025-03-25)
|
|
@@ -79,7 +79,9 @@ withDefaults(defineProps<LcbCalendarSearchProps>(), {
|
|
|
79
79
|
|
|
80
80
|
const form = inject(FORM_KEY) as Ref<Record<string, any>>
|
|
81
81
|
const addressCity = ref<LcbAddress | undefined>(
|
|
82
|
-
(form.value.cityId || form.value.areaId
|
|
82
|
+
(form.value.cityId || form.value.areaId || form.value.provinceId
|
|
83
|
+
? form.value
|
|
84
|
+
: getHistoryCity()) as LcbAddress,
|
|
83
85
|
)
|
|
84
86
|
const dayRange = ref([
|
|
85
87
|
form.value.startDate ? dayjs(form.value.startDate).valueOf() : dayjs().valueOf(),
|
|
@@ -95,6 +97,7 @@ watch(
|
|
|
95
97
|
const params: Record<string, any> = {
|
|
96
98
|
cityId: val?.cityId,
|
|
97
99
|
areaId: val?.areaId,
|
|
100
|
+
provinceId: val?.provinceId,
|
|
98
101
|
addressName: val?.addressName,
|
|
99
102
|
}
|
|
100
103
|
if (val.keywords) {
|
|
@@ -21,6 +21,7 @@ export interface ChildHotAddress {
|
|
|
21
21
|
className?: string
|
|
22
22
|
cityId: string
|
|
23
23
|
areaId: string
|
|
24
|
+
provinceId: string
|
|
24
25
|
longitude?: string
|
|
25
26
|
weightSort?: string
|
|
26
27
|
addressInfo?: string
|
|
@@ -35,6 +36,7 @@ export interface LcbAddress {
|
|
|
35
36
|
keywords?: string
|
|
36
37
|
cityId: string
|
|
37
38
|
areaId: string
|
|
39
|
+
provinceId: string
|
|
38
40
|
hotAddressId: string
|
|
39
41
|
provinceCityName: string
|
|
40
42
|
area: string
|
|
@@ -94,12 +94,14 @@ const locationAddress = computed<HotAddress[]>(() => {
|
|
|
94
94
|
addressName: props.location.haveNotCityName || props.location.cityName,
|
|
95
95
|
cityId: props.location.haveNotCityId || props.location.cityId,
|
|
96
96
|
areaId: props.location.areaId,
|
|
97
|
+
provinceId: props.location.provinceId,
|
|
97
98
|
icon: 'location',
|
|
98
99
|
},
|
|
99
100
|
{
|
|
100
101
|
addressName: props.location.haveNotAddressInfo || props.location.addressInfo,
|
|
101
102
|
cityId: props.location.haveNotCityId || props.location.cityId,
|
|
102
103
|
areaId: props.location.areaId,
|
|
104
|
+
provinceId: props.location.provinceId,
|
|
103
105
|
className: 'w-25',
|
|
104
106
|
},
|
|
105
107
|
],
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="p-3 box-border h-full overflow-y-auto pt-0">
|
|
3
|
-
<view
|
|
3
|
+
<view
|
|
4
|
+
v-for="item in list"
|
|
5
|
+
:key="item.areaId || item.cityId || item.provinceId"
|
|
6
|
+
@click="onItemClick(item)"
|
|
7
|
+
>
|
|
4
8
|
<view class="flex mt-3">
|
|
5
9
|
<view class="tag">{{ item.categoryName }}</view>
|
|
6
10
|
<view class="content">
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
color: form.keywords ? 'var(--content-color)' : '#969696',
|
|
54
54
|
}"
|
|
55
55
|
v-bind="inputLink"
|
|
56
|
+
:urlParams="stringify(form)"
|
|
56
57
|
>
|
|
57
58
|
{{ form.keywords || placeholder }}
|
|
58
59
|
</lcb-action-view>
|
|
@@ -150,6 +151,7 @@ const form = reactive({
|
|
|
150
151
|
endDate: '',
|
|
151
152
|
cityId: '',
|
|
152
153
|
areaId: '',
|
|
154
|
+
provinceId: '',
|
|
153
155
|
addressName: '',
|
|
154
156
|
cityName: '',
|
|
155
157
|
})
|
|
@@ -181,6 +183,7 @@ watchEffect(() => {
|
|
|
181
183
|
if (addressCity.value) {
|
|
182
184
|
form.cityId = addressCity.value.cityId
|
|
183
185
|
form.areaId = addressCity.value.areaId
|
|
186
|
+
form.provinceId = addressCity.value.provinceId
|
|
184
187
|
form.addressName = addressCity.value.addressName
|
|
185
188
|
if (addressCity.value.keywords) {
|
|
186
189
|
form.keywords = addressCity.value.keywords
|
|
@@ -142,7 +142,13 @@ defineExpose({
|
|
|
142
142
|
:custom-class="`${listType == 'horizontal' ? 'h-fit overflow-x-auto whitespace-nowrap flex items-stretch w-full' : ''}`"
|
|
143
143
|
>
|
|
144
144
|
<!-- 单列 -->
|
|
145
|
-
<view
|
|
145
|
+
<view
|
|
146
|
+
class="flex flex-col gap-2"
|
|
147
|
+
v-if="listType === 'list'"
|
|
148
|
+
:style="{
|
|
149
|
+
width: itemWidth ? `${itemWidth}rpx` : '100%',
|
|
150
|
+
}"
|
|
151
|
+
>
|
|
146
152
|
<lcb-action-view
|
|
147
153
|
v-for="(item, index) in renderList"
|
|
148
154
|
:key="`${item?.productId}:${index}`"
|
|
@@ -174,7 +180,13 @@ defineExpose({
|
|
|
174
180
|
</lcb-action-view>
|
|
175
181
|
</view>
|
|
176
182
|
<!-- 双列 -->
|
|
177
|
-
<view
|
|
183
|
+
<view
|
|
184
|
+
class="grid grid-cols-2 box-border gap-2"
|
|
185
|
+
v-else-if="listType === 'grid'"
|
|
186
|
+
:style="{
|
|
187
|
+
width: itemWidth ? `${itemWidth}rpx` : '100%',
|
|
188
|
+
}"
|
|
189
|
+
>
|
|
178
190
|
<lcb-action-view
|
|
179
191
|
v-for="(item, index) in renderList"
|
|
180
192
|
:key="`${item?.productId}:${index}`"
|
|
@@ -207,7 +219,13 @@ defineExpose({
|
|
|
207
219
|
</lcb-action-view>
|
|
208
220
|
</view>
|
|
209
221
|
|
|
210
|
-
<view
|
|
222
|
+
<view
|
|
223
|
+
class="lcb-product-waterfall p-0.5 !py-1"
|
|
224
|
+
v-else-if="listType === 'waterfall'"
|
|
225
|
+
:style="{
|
|
226
|
+
width: itemWidth ? `${itemWidth}rpx` : '100%',
|
|
227
|
+
}"
|
|
228
|
+
>
|
|
211
229
|
<u-waterfall :addTime="0" :modelValue="renderList" ref="uWaterfallRef">
|
|
212
230
|
<template #left="{ leftList: list }">
|
|
213
231
|
<view class="flex flex-col gap-3">
|
|
@@ -149,6 +149,7 @@ const onSelect = (keyword: ProductInfo) => {
|
|
|
149
149
|
cityName: options.cityName,
|
|
150
150
|
addressName: options.addressName,
|
|
151
151
|
areaId: options.areaId,
|
|
152
|
+
provinceId: options.provinceId,
|
|
152
153
|
cityId: options.cityId,
|
|
153
154
|
...queryParams,
|
|
154
155
|
}
|
|
@@ -158,11 +159,11 @@ const onSelect = (keyword: ProductInfo) => {
|
|
|
158
159
|
delete queryParams[key]
|
|
159
160
|
}
|
|
160
161
|
})
|
|
161
|
-
if (options.
|
|
162
|
+
if (!options.jumpPageType) {
|
|
162
163
|
uni.$emit(`${getPreviousPageId()}_filter_change`, queryParams)
|
|
163
164
|
uni.navigateBack()
|
|
164
165
|
} else {
|
|
165
|
-
uni.
|
|
166
|
+
uni.redirectTo({
|
|
166
167
|
url: path + '?' + stringify(queryParams),
|
|
167
168
|
})
|
|
168
169
|
}
|
package/hooks/useLocation.api.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.17",
|
|
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.
|
|
14
|
+
"@tplc/wot": "0.1.73"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
|
@@ -19,6 +19,7 @@ export interface ChildHotAddress {
|
|
|
19
19
|
className?: string
|
|
20
20
|
cityId: string
|
|
21
21
|
areaId: string
|
|
22
|
+
provinceId: string
|
|
22
23
|
longitude?: string
|
|
23
24
|
weightSort?: string
|
|
24
25
|
addressInfo?: string
|
|
@@ -32,6 +33,7 @@ export interface LcbAddress {
|
|
|
32
33
|
keywords?: string
|
|
33
34
|
cityId: string
|
|
34
35
|
areaId: string
|
|
36
|
+
provinceId: string
|
|
35
37
|
hotAddressId: string
|
|
36
38
|
provinceCityName: string
|
|
37
39
|
area: string
|