@tplc/business 0.4.99 → 0.4.101
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 +14 -0
- package/components/lcb-button/lcb-button.vue +6 -1
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +1 -1
- package/components/lcb-search/components/SearchHistory/index.vue +1 -1
- package/components/lcb-search/lcb-search.vue +2 -1
- package/hooks/useLocation.api.ts +1 -0
- package/package.json +1 -1
- package/types/hooks/useLocation.api.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.101](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.100...v0.4.101) (2025-05-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 屏蔽字段 ([fb1e476](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/fb1e4762822aa2009604a5625c4761a6d8e4f097))
|
|
11
|
+
|
|
12
|
+
### [0.4.100](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.99...v0.4.100) (2025-05-08)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
16
|
+
|
|
17
|
+
* search undifend ([a3f2677](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a3f26778a15ebb98d59f3e0e8b00c93ccd9d103b))
|
|
18
|
+
|
|
5
19
|
### [0.4.99](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.98...v0.4.99) (2025-05-08)
|
|
6
20
|
|
|
7
21
|
### [0.4.98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.97...v0.4.98) (2025-05-08)
|
|
@@ -26,7 +26,12 @@
|
|
|
26
26
|
:color="iconColor"
|
|
27
27
|
/>
|
|
28
28
|
<template v-if="mode === 'image'">
|
|
29
|
-
<wd-img
|
|
29
|
+
<wd-img
|
|
30
|
+
:src="innerValue"
|
|
31
|
+
:width="imageWidth"
|
|
32
|
+
:mode="imageHeight ? 'aspectFill' : 'widthFix'"
|
|
33
|
+
:height="imageHeight ? imageHeight : 'auto'"
|
|
34
|
+
/>
|
|
30
35
|
</template>
|
|
31
36
|
<template v-else>
|
|
32
37
|
{{ innerValue }}
|
|
@@ -58,7 +58,7 @@ const historyList = ref<ProductInfo[]>([])
|
|
|
58
58
|
const getHistory = () => {
|
|
59
59
|
try {
|
|
60
60
|
const history = uni.getStorageSync(props.storageKey)
|
|
61
|
-
historyList.value = history || []
|
|
61
|
+
historyList.value = (history || []).filter((v) => v.productName)
|
|
62
62
|
} catch (error) {
|
|
63
63
|
historyList.value = []
|
|
64
64
|
}
|
|
@@ -190,6 +190,7 @@ const onSearch = async () => {
|
|
|
190
190
|
link: {
|
|
191
191
|
jumpUrl: `/pages/lowcode/lowcode?pageType=${options.backPageType}&keywords=${form?.value?.keywords || ''}`,
|
|
192
192
|
},
|
|
193
|
+
productName: form?.value?.keywords || '',
|
|
193
194
|
} as unknown as ProductInfo)
|
|
194
195
|
} else {
|
|
195
196
|
uni.$emit(`${getPreviousPageId()}_filter_change`, {
|
|
@@ -199,7 +200,7 @@ const onSearch = async () => {
|
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
202
|
const onSelect = (keyword: ProductInfo) => {
|
|
202
|
-
if (keyword.link) {
|
|
203
|
+
if (keyword.link && keyword.productName) {
|
|
203
204
|
searchHistoryRef.value?.saveHistory(keyword)
|
|
204
205
|
}
|
|
205
206
|
|
package/hooks/useLocation.api.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface UserLocation {
|
|
|
9
9
|
haveNotAddressInfo: string
|
|
10
10
|
haveNotTip: string
|
|
11
11
|
showName: string
|
|
12
|
+
openFlag: boolean
|
|
12
13
|
}
|
|
13
14
|
export const getUserLocation = (data?: { userLongitude: string; userLatitude: string }) =>
|
|
14
15
|
uni.$lcb.http.post<UserLocation>('/address/userLocation', data)
|
package/package.json
CHANGED