@tplc/business 0.4.26 → 0.4.27

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.27](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.24...v0.4.27) (2025-03-27)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.4.25 ([2ad40e5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2ad40e5abc837b15a5cc2a9ece27d8c30e4db150))
11
+ * **release:** 0.4.26 ([2057c24](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2057c245e4692eecd64f8ec1f0850792ba6672ca))
12
+
13
+
14
+ ### ✨ Features | 新功能
15
+
16
+ * 修改数据 ([e068701](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e0687014bb0d3fef33658acc50f742326d60a783))
17
+ * 支持过滤 ([7fd93ce](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7fd93ce323e2276b4a8e837340eeda1fe1926981))
18
+
5
19
  ### [0.4.26](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.25...v0.4.26) (2025-03-26)
6
20
 
7
21
  ### [0.4.25](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.18...v0.4.25) (2025-03-26)
@@ -71,7 +71,7 @@
71
71
  :size="iconSize"
72
72
  :color="iconColor"
73
73
  v-if="form.keywords"
74
- @click="form.keywords = ''"
74
+ @touchend.prevent="form.keywords = ''"
75
75
  />
76
76
  </view>
77
77
  <lcb-action-view v-bind="link" :urlParams="stringify(addressCity)" v-else>
@@ -118,7 +118,7 @@ import { ChildHotAddress } from '../lcb-city-select/api'
118
118
  import useLocation from '../../hooks/useLocation'
119
119
  import { getHistoryCity } from '../../utils/history'
120
120
  import { parse, stringify } from 'qs'
121
- import { inject, Ref, ref, watchEffect } from 'vue'
121
+ import { inject, Ref, ref, watch, watchEffect } from 'vue'
122
122
  import { FORM_KEY } from '../../constants'
123
123
  import LcbSearchHistory from './components/SearchHistory/index.vue'
124
124
  import LcbSearchList from './components/SearchList/index.vue'
@@ -168,12 +168,10 @@ const popupProvide = inject('wd-popup', {
168
168
  getLocation()
169
169
  const form = inject(FORM_KEY) as Ref<Record<string, any>>
170
170
  const onSearch = async (e: { detail: { value: string } }) => {
171
- if (form?.value?.keywords) {
172
- uni.$emit(`${getPreviousPageId()}_filter_change`, {
173
- keywords: form?.value?.keywords,
174
- })
175
- uni.navigateBack()
176
- }
171
+ uni.$emit(`${getPreviousPageId()}_filter_change`, {
172
+ keywords: form?.value?.keywords,
173
+ })
174
+ uni.navigateBack()
177
175
  }
178
176
  const onSelect = (keyword: ProductInfo) => {
179
177
  searchHistoryRef.value?.saveHistory(keyword)
@@ -213,6 +211,26 @@ const onCancel = () => {
213
211
  watchEffect(() => {
214
212
  popupProvide.value = form.value?.keywords && props.productTypeList && top
215
213
  })
214
+ watch(
215
+ () => addressCity.value,
216
+ (val) => {
217
+ if (val) {
218
+ const params: Record<string, any> = {
219
+ cityId: val?.cityId,
220
+ areaId: val?.areaId,
221
+ provinceId: val?.provinceId,
222
+ addressName: val?.addressName,
223
+ }
224
+ if (val.keywords) {
225
+ params.keywords = val.keywords
226
+ }
227
+ form.value = {
228
+ ...form.value,
229
+ ...params,
230
+ }
231
+ }
232
+ },
233
+ )
216
234
  </script>
217
235
 
218
236
  <style lang="scss" scoped>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.26",
3
+ "version": "0.4.27",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],