@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 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 :src="innerValue" :width="imageWidth" :height="imageHeight" mode="aspectFit" />
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 }}
@@ -81,7 +81,7 @@ onMounted(async () => {
81
81
  addressRef.value = data
82
82
  })
83
83
  const locationAddress = computed<HotAddress[]>(() => {
84
- return props.location
84
+ return props.location && props.location.openFlag
85
85
  ? ([
86
86
  {
87
87
  categoryName: '定位',
@@ -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
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.99",
3
+ "version": "0.4.101",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -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 declare const getUserLocation: (data?: {
14
15
  userLongitude: string