@tplc/business 0.5.9 → 0.5.11

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,23 @@
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.5.11](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.7...v0.5.11) (2025-10-11)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.5.10 ([73c5431](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/73c543155d9fa335e22762b6da94d44a411e1222))
11
+ * **release:** 0.5.8 ([45d7edf](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/45d7edf63b61948f2ba0673aae3ea3c8cda53c4d))
12
+ * **release:** 0.5.9 ([eb3203d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/eb3203d62bd52848bff29e18164e6bfbdc162cab))
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * 支持 address ([c812459](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c812459276927d7225cfff0dcd4ce1b3267723ea))
18
+ * 调整参数 ([fa298c9](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/fa298c94d7b34b3374f3d9fa82a22b50ccc8ac6d))
19
+
20
+ ### [0.5.10](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.9...v0.5.10) (2025-10-10)
21
+
5
22
  ### [0.5.9](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.8...v0.5.9) (2025-10-10)
6
23
 
7
24
  ### [0.5.8](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.2...v0.5.8) (2025-10-10)
@@ -14,6 +14,7 @@
14
14
  :style="{
15
15
  boxShadow:
16
16
  shadowColor && shadowSize ? `0px 0px ${blurSize}px ${shadowSize}px ${shadowColor}` : '',
17
+ borderRadius: transformValueUnit(imageRadius),
17
18
  }"
18
19
  >
19
20
  <lcb-action-view v-bind="item.link" custom-class="w-full" v-if="item.url">
@@ -24,7 +25,6 @@
24
25
  :mode="imageHeight ? 'aspectFill' : 'widthFix'"
25
26
  :height="imageHeight ? transformValueUnit(imageHeight) : 'auto'"
26
27
  custom-class="overflow-hidden block"
27
- :radius="transformValueUnit(imageRadius)"
28
28
  />
29
29
  </lcb-action-view>
30
30
  <view
@@ -33,21 +33,31 @@ withDefaults(defineProps<AddressCommunityProps>(), {
33
33
  color: '#000',
34
34
  width: 240,
35
35
  })
36
+ const constantsStore = uni.$lcb.constantsStore?.()
36
37
  const value = defineModel<string>('')
37
38
  const title = ref<string>('地址社区')
38
39
  const options = computed(() => {
39
- return uni.$lcb.constantsStore?.().mainConfig?.addressList
40
+ return constantsStore?.mainConfig?.addressList
40
41
  })
42
+ const setCurrentAddress = (addressId?: string) => {
43
+ if (addressId) {
44
+ title.value = options.value.find((item) => item.addressId === addressId)?.addressName
45
+ value.value = addressId
46
+ }
47
+ }
48
+ setCurrentAddress(
49
+ constantsStore?.mainConfig?.address?.addressId ||
50
+ constantsStore?.mainConfig?.addressList?.[0]?.addressId ||
51
+ '',
52
+ )
41
53
  watch(
42
- () => uni.$lcb.constantsStore?.().mainConfig?.address,
43
- ({ addressId }: { addressId: string }) => {
44
- if (addressId) {
45
- title.value = options.value.find((item) => item.addressId === addressId)?.addressName
46
- value.value = addressId
47
- }
54
+ () => constantsStore?.mainConfig?.address,
55
+ (address) => {
56
+ setCurrentAddress(address?.addressId)
48
57
  },
49
58
  {
50
59
  immediate: true,
60
+ deep: true,
51
61
  },
52
62
  )
53
63
 
@@ -192,7 +192,7 @@ const props = withDefaults(defineProps<NavProps>(), {
192
192
  fontWeight: 500,
193
193
  textColor: '#000000',
194
194
  keyFromUser: false,
195
- showAddressCommunity: true,
195
+ showAddressCommunity: false,
196
196
  })
197
197
  const navbarBgColor = computed(() => {
198
198
  return props.backgroundType === 'color' ? props.backColor : ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],