@tplc/business 0.2.52 → 0.2.55
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,27 @@
|
|
|
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.2.55](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.54...v0.2.55) (2025-01-02)
|
|
6
|
+
|
|
7
|
+
### [0.2.54](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.50...v0.2.54) (2025-01-02)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
11
|
+
|
|
12
|
+
* **release:** 0.2.51 ([4077050](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/40770500dbd47f5032e197089eefc802540bd8d0))
|
|
13
|
+
* **release:** 0.2.52 ([7fe16e9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7fe16e9ec73f051c887af60bfe894c4dcae51ee9))
|
|
14
|
+
* **release:** 0.2.53 ([70acc28](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/70acc282222053ca8bd81bc9e5896954c9492ad1))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### ✨ Features | 新功能
|
|
18
|
+
|
|
19
|
+
* home-search cityName ([265572a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/265572a3c7b2dc5a9ff203129551df0ec2a6dd20))
|
|
20
|
+
* 兼容location ([cfeae91](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cfeae9129e034ecec8055d930255894bfa05ebd9))
|
|
21
|
+
* 图片尺寸 ([1450d12](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1450d126ee919f47df16f74dd4d170ef30c38e32))
|
|
22
|
+
* 城市选择显示详细地址信息 ([e81331f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e81331f9b303d14468cb659a1b8b7cf16b299dc9))
|
|
23
|
+
|
|
24
|
+
### [0.2.53](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.52...v0.2.53) (2025-01-02)
|
|
25
|
+
|
|
5
26
|
### [0.2.52](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.51...v0.2.52) (2025-01-02)
|
|
6
27
|
|
|
7
28
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<!-- eslint-disable vue/valid-v-for -->
|
|
1
2
|
<template>
|
|
2
3
|
<view class="h-full pb-3" v-if="letterList.length">
|
|
3
4
|
<wd-index-bar ref="indexBarRef">
|
|
@@ -23,20 +24,21 @@
|
|
|
23
24
|
:class="item.categoryName.includes('字母') ? 'grid-cols-8' : 'grid-cols-4'"
|
|
24
25
|
>
|
|
25
26
|
<view
|
|
26
|
-
class="address-tag"
|
|
27
|
+
class="flex justify-center items-center address-tag"
|
|
27
28
|
:class="{
|
|
28
29
|
'current-address': modelValue && modelValue.cityId === city.cityId,
|
|
29
30
|
[city.className || '']: true,
|
|
30
31
|
}"
|
|
31
32
|
v-for="city in item.childHotAddress"
|
|
32
|
-
:key="city.addr"
|
|
33
33
|
@click="onAddrClick(city, item.categoryName.includes('字母'))"
|
|
34
34
|
:style="{
|
|
35
35
|
fontSize: city.addr.length > 4 ? '20rpx' : '24rpx',
|
|
36
36
|
}"
|
|
37
37
|
>
|
|
38
|
-
<
|
|
39
|
-
|
|
38
|
+
<view class="tag-view">
|
|
39
|
+
<wd-icon v-if="city.icon" :name="city.icon" class="mr-0.5" />
|
|
40
|
+
{{ city.addr }}
|
|
41
|
+
</view>
|
|
40
42
|
</view>
|
|
41
43
|
</view>
|
|
42
44
|
<view
|
|
@@ -84,7 +86,7 @@ const locationAddress = computed<HotAddress[]>(() => {
|
|
|
84
86
|
{
|
|
85
87
|
categoryName: '定位',
|
|
86
88
|
hint: '当前位置',
|
|
87
|
-
tips: props.location.haveNotTip
|
|
89
|
+
tips: props.location.haveNotTip,
|
|
88
90
|
childHotAddress: [
|
|
89
91
|
{
|
|
90
92
|
addr: props.location.haveNotCityName || props.location.cityName,
|
|
@@ -126,12 +128,16 @@ const onAddrClick = (city: ChildHotAddress, letter = false) => {
|
|
|
126
128
|
indexBarRef.value?.scrollToIndex(city.addr)
|
|
127
129
|
return
|
|
128
130
|
}
|
|
129
|
-
|
|
131
|
+
const currentCity = {
|
|
132
|
+
...city,
|
|
133
|
+
className: '',
|
|
134
|
+
}
|
|
135
|
+
modelValue.value = currentCity
|
|
130
136
|
historyAddress.value = historyAddress.value.filter((item) => item.cityId !== city.cityId)
|
|
131
137
|
if (historyAddress.value.length === 8) {
|
|
132
|
-
historyAddress.value = [
|
|
138
|
+
historyAddress.value = [currentCity, ...historyAddress.value.slice(0, 7)]
|
|
133
139
|
} else {
|
|
134
|
-
historyAddress.value = [
|
|
140
|
+
historyAddress.value = [currentCity, ...historyAddress.value]
|
|
135
141
|
}
|
|
136
142
|
}
|
|
137
143
|
const indexBars = computed<HotAddress[]>(() => {
|
|
@@ -156,15 +162,23 @@ const indexBars = computed<HotAddress[]>(() => {
|
|
|
156
162
|
|
|
157
163
|
.address-tag {
|
|
158
164
|
background: #f7f7f7;
|
|
159
|
-
height:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
justify-content: center;
|
|
163
|
-
padding: 0 16rpx;
|
|
165
|
+
height: 62rpx;
|
|
166
|
+
padding: 0rpx 16rpx;
|
|
167
|
+
box-sizing: border-box;
|
|
164
168
|
border-radius: 10rpx;
|
|
165
169
|
font-size: 24rpx;
|
|
166
170
|
text-align: center;
|
|
167
171
|
overflow: hidden;
|
|
172
|
+
line-height: 30rpx;
|
|
173
|
+
}
|
|
174
|
+
.tag-view {
|
|
175
|
+
display: -webkit-box;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
text-overflow: ellipsis;
|
|
178
|
+
-webkit-line-clamp: 2;
|
|
179
|
+
line-clamp: 2;
|
|
180
|
+
-webkit-box-orient: vertical;
|
|
181
|
+
box-sizing: border-box;
|
|
168
182
|
}
|
|
169
183
|
|
|
170
184
|
.current-address {
|
|
@@ -103,7 +103,7 @@ const value = computed(() => {
|
|
|
103
103
|
<view :class="`relative ${className}`" :style="style">
|
|
104
104
|
<wd-img :src="value" mode="aspectFill" width="100%" height="100%" />
|
|
105
105
|
<!-- imgBottomIcon -->
|
|
106
|
-
<view class="absolute bottom-0 left-0 w-full
|
|
106
|
+
<view class="absolute bottom-0 left-0 w-full" v-if="itemProps.imgBottomIcon">
|
|
107
107
|
<wd-img
|
|
108
108
|
:src="itemProps.imgBottomIcon"
|
|
109
109
|
custom-class="block"
|
|
@@ -113,7 +113,7 @@ const value = computed(() => {
|
|
|
113
113
|
/>
|
|
114
114
|
</view>
|
|
115
115
|
<!-- imgCornerIcon -->
|
|
116
|
-
<view class="absolute top-0 left-0 h-8
|
|
116
|
+
<view class="absolute top-0 left-0 h-8" v-if="itemProps.imgCornerIcon">
|
|
117
117
|
<wd-img
|
|
118
118
|
:src="itemProps.imgCornerIcon"
|
|
119
119
|
width="auto"
|