@tplc/business 0.4.23 → 0.4.24

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,13 @@
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.24](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.23...v0.4.24) (2025-03-26)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 支持联动 ([6954a8a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6954a8a102218e67bfae301187d1739b9787f1eb))
11
+
5
12
  ### [0.4.23](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.22...v0.4.23) (2025-03-26)
6
13
 
7
14
 
@@ -111,7 +111,7 @@
111
111
  </template>
112
112
 
113
113
  <script setup lang="ts">
114
- import { computed, ref, reactive, watchEffect, inject } from 'vue'
114
+ import { computed, ref, watchEffect, inject, Ref } from 'vue'
115
115
  import { LcbHomeSearch } from './types'
116
116
  import dayjs from 'dayjs/esm'
117
117
  import useLocation from '../../hooks/useLocation'
@@ -145,17 +145,7 @@ const props = withDefaults(defineProps<LcbHomeSearch>(), {
145
145
  })
146
146
 
147
147
  const current = ref(0)
148
- const form = inject(FORM_KEY, {
149
- categoryTags: '',
150
- keywords: '',
151
- startDate: '',
152
- endDate: '',
153
- cityId: '',
154
- areaId: '',
155
- provinceId: '',
156
- addressName: '',
157
- cityName: '',
158
- })
148
+ const form = inject(FORM_KEY) as Ref<Record<string, any>>
159
149
 
160
150
  // 今天 明天 后天 周...
161
151
  const getDayName = (time: number) => {
@@ -172,22 +162,22 @@ const getDayName = (time: number) => {
172
162
  }
173
163
 
174
164
  watchEffect(() => {
175
- form.categoryTags = props.tabs[current.value].value
165
+ form.value.categoryTags = props.tabs[current.value].value
176
166
  })
177
167
 
178
168
  watchEffect(() => {
179
- form.startDate = dayjs(dayRange.value[0]).format('YYYY-MM-DD')
180
- form.endDate = dayjs(dayRange.value[1]).format('YYYY-MM-DD')
169
+ form.value.startDate = dayjs(dayRange.value[0]).format('YYYY-MM-DD')
170
+ form.value.endDate = dayjs(dayRange.value[1]).format('YYYY-MM-DD')
181
171
  })
182
172
 
183
173
  watchEffect(() => {
184
174
  if (addressCity.value) {
185
- form.cityId = addressCity.value.cityId
186
- form.areaId = addressCity.value.areaId
187
- form.provinceId = addressCity.value.provinceId
188
- form.addressName = addressCity.value.addressName
175
+ form.value.cityId = addressCity.value.cityId
176
+ form.value.areaId = addressCity.value.areaId
177
+ form.value.provinceId = addressCity.value.provinceId
178
+ form.value.addressName = addressCity.value.addressName
189
179
  if (addressCity.value.keywords) {
190
- form.keywords = addressCity.value.keywords
180
+ form.value.keywords = addressCity.value.keywords
191
181
  }
192
182
  }
193
183
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],