@tplc/business 0.4.16 → 0.4.18
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 +41 -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-list/components/TreeSelect/index.vue +12 -3
- package/components/lcb-search/lcb-search.vue +3 -2
- package/hooks/useLocation.api.ts +1 -0
- package/package.json +1 -1
- 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,47 @@
|
|
|
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.18](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.17...v0.4.18) (2025-03-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 新增provinceId ([c3651bf](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c3651bf906a82f19b3ced7d6d4279d54e6a073c2))
|
|
11
|
+
|
|
12
|
+
### [0.4.17](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.4...v0.4.17) (2025-03-25)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* prodcut 单列也支持itemWidth ([216470d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/216470de894322367ad74054244cd7a4a0a72b74))
|
|
18
|
+
* 修改地址 ([dba8297](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dba82970fccf44096fed203b46316c7da2f9f9b9))
|
|
19
|
+
* 修改字段 ([659d081](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/659d081b746f63f4502abd03b7137d1247419453))
|
|
20
|
+
* 搜索条件处理 ([56fb8cd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/56fb8cd2a4909b885d493809e92eff59ed784c08))
|
|
21
|
+
* 新增historuy ([7a2fd5d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7a2fd5d467365d068080ff8affc01d8d0124ccbd))
|
|
22
|
+
* 新增search list ([d3aef1e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d3aef1ef5a024280946071d17e54b2c70057e56a))
|
|
23
|
+
* 新增数据 ([79f5a41](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/79f5a4134e246fa22f6f01b99b6e1de78dc1581e))
|
|
24
|
+
* 新增过滤属性 ([1550bf8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1550bf828d51340111c293d3e6e856397d02480f))
|
|
25
|
+
* 调整全局 ([c7ef8db](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c7ef8db507c2b199cebfed02c6051bc81fd6d6ff))
|
|
26
|
+
* 调整日历 ([89734b6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/89734b6488f7f06e0ce0acc6bb3926c2ff443284))
|
|
27
|
+
* 选中 ([9647c0b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9647c0b3f06a1479baa8c8877ca69e5adcc51c96))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
31
|
+
|
|
32
|
+
* **release:** 0.1.73 ([25060fe](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/25060fec56e40d93bc72c16252c2de61c246667c))
|
|
33
|
+
* **release:** 0.4.10 ([79f133e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/79f133e84b573b4ec17c427b58dbb8d7edc0f417))
|
|
34
|
+
* **release:** 0.4.11 ([70b2d74](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/70b2d74be4249bc5c44faf23e767dc79014c570e))
|
|
35
|
+
* **release:** 0.4.12 ([4c8eae0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4c8eae0439c09e6bfd040305468fcbbc04ad7983))
|
|
36
|
+
* **release:** 0.4.13 ([38231bf](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38231bf185451075448d113d72cb05e75cb11b02))
|
|
37
|
+
* **release:** 0.4.14 ([5de7dae](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5de7daeb9c37b8064336f38948686a978e38c35e))
|
|
38
|
+
* **release:** 0.4.15 ([ebc5e83](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ebc5e8364f1e6cf1af96b54e83386322a969cf9a))
|
|
39
|
+
* **release:** 0.4.16 ([c915ea8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c915ea8dbf3c40172a865cb6e87f4dd0cde4112c))
|
|
40
|
+
* **release:** 0.4.5 ([fffd7c5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/fffd7c56475cdd29eaf63c210b0e2a873eefeca1))
|
|
41
|
+
* **release:** 0.4.6 ([f437a16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f437a16a28f45f8e38d49de925e226c779ef728a))
|
|
42
|
+
* **release:** 0.4.7 ([38fd7ee](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38fd7ee8de57e93ddb7dc7c1395a53ebb67aed7c))
|
|
43
|
+
* **release:** 0.4.8 ([57a030f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/57a030f7e18a150a2846ed5da2533819e637d445))
|
|
44
|
+
* **release:** 0.4.9 ([c592177](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c5921773be664a74b551f5eae79d91ebe7efce4a))
|
|
45
|
+
|
|
5
46
|
### [0.4.16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.73...v0.4.16) (2025-03-25)
|
|
6
47
|
|
|
7
48
|
|
|
@@ -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
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
</view>
|
|
56
56
|
</scroll-view>
|
|
57
57
|
</view>
|
|
58
|
-
<ActionView :disabled="
|
|
58
|
+
<ActionView :disabled="disabled" @cancel="onCancel" @submit="onSubmit" />
|
|
59
59
|
</view>
|
|
60
60
|
</template>
|
|
61
61
|
|
|
62
62
|
<script setup lang="ts">
|
|
63
|
-
import { getCurrentInstance, nextTick, watch, ref } from 'vue'
|
|
63
|
+
import { getCurrentInstance, nextTick, watch, ref, computed, onMounted } from 'vue'
|
|
64
64
|
import { TreeSelectProps } from './type'
|
|
65
65
|
import useSelect from '../../hooks/useSelect'
|
|
66
66
|
import SelectTagView from '../SelectTagView/index.vue'
|
|
@@ -88,6 +88,9 @@ const onOpen = () => {
|
|
|
88
88
|
...props.filterValue,
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
+
const disabled = computed(() => {
|
|
92
|
+
return modelKeys.value?.every((v) => !extraModel.value[v]) && !innerValue.value
|
|
93
|
+
})
|
|
91
94
|
const { onItemClick, options, getChecked } = useSelect(props, {
|
|
92
95
|
model: innerValue,
|
|
93
96
|
extraModel,
|
|
@@ -138,7 +141,13 @@ const onGridScroll = (e) => {
|
|
|
138
141
|
}
|
|
139
142
|
const onCancel = () => {
|
|
140
143
|
innerValue.value = undefined
|
|
141
|
-
extraModel.value =
|
|
144
|
+
extraModel.value = modelKeys.value!.reduce(
|
|
145
|
+
(acc, v) => {
|
|
146
|
+
acc[v] = undefined
|
|
147
|
+
return acc
|
|
148
|
+
},
|
|
149
|
+
{} as Record<string, any>,
|
|
150
|
+
)
|
|
142
151
|
}
|
|
143
152
|
</script>
|
|
144
153
|
<style lang="scss" scoped>
|
|
@@ -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
|
@@ -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
|