@tplc/business 0.4.106 → 0.4.107

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,8 @@
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.107](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.106...v0.4.107) (2025-05-09)
6
+
5
7
  ### [0.4.106](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.105...v0.4.106) (2025-05-09)
6
8
 
7
9
  ### [0.4.105](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.104...v0.4.105) (2025-05-09)
@@ -69,6 +69,7 @@ import { setHistoryCity } from '../../utils/history'
69
69
  import { cleanOutSizeKeys } from '../../utils/transform'
70
70
  import { getCurrentPage } from '../../utils/utils'
71
71
  import { FORM_KEY } from '../../constants'
72
+ import isEqual from 'lodash-es/isEqual'
72
73
  defineOptions({
73
74
  name: 'LcbCitySelect',
74
75
  options: {
@@ -192,7 +193,7 @@ watch(
192
193
  )
193
194
 
194
195
  const onSelectChange = (val: ChildHotAddress) => {
195
- if (JSON.stringify(val) !== JSON.stringify(modelValue.value)) {
196
+ if (!isEqual(val, modelValue.value)) {
196
197
  modelValue.value = {
197
198
  addressName: val.addressName,
198
199
  cityId: val.cityId,
@@ -7,6 +7,7 @@ import { transformValueUnit } from '../../utils/transform'
7
7
  import { calculateImageHeight } from '../../utils/utils'
8
8
  import UnconditionedLayout from '../lcb-list/components/UnconditionedLayout/index.vue'
9
9
  import { LcbProductProps } from './types'
10
+ import isEqual from 'lodash-es/isEqual'
10
11
 
11
12
  const uWaterfallRef = ref()
12
13
  defineOptions({
@@ -84,7 +85,7 @@ watch(
84
85
  uWaterfallRef.value?.clear?.()
85
86
  }
86
87
  /** 如果是请求模式 */
87
- if (props.sourceMode === 2 && JSON.stringify(oldValue) !== JSON.stringify(newValue)) {
88
+ if (props.sourceMode === 2 && !isEqual(oldValue, newValue)) {
88
89
  getData()
89
90
  }
90
91
  },
@@ -49,7 +49,6 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
49
49
 
50
50
  const getLocation = async (force = false) => {
51
51
  // 如果不是force并且当前位置有值,则不刷新
52
- console.log('currentLocation.value', currentLocation.value, force)
53
52
  if (!force && currentLocation.value) return
54
53
  if ((await checkLocationPermission()) !== false) {
55
54
  locationIng.value = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.106",
3
+ "version": "0.4.107",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],