@tplc/business 0.7.29 → 0.7.31

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,15 @@
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.7.31](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.30...v0.7.31) (2025-12-23)
6
+
7
+ ### [0.7.30](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.29...v0.7.30) (2025-12-22)
8
+
9
+
10
+ ### ✨ Features | 新功能
11
+
12
+ * 修复title ([d7035fb](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d7035fbe2641b3aa4f172d204419decff18ed169))
13
+
5
14
  ### [0.7.29](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.28...v0.7.29) (2025-12-22)
6
15
 
7
16
 
@@ -27,13 +27,7 @@
27
27
  <view class="navbar-left z-1">
28
28
  <AddressCommunity
29
29
  v-if="showAddressCommunity || pageInfo.frontConfig?.chooseFlag"
30
- v-bind="{
31
- ...addressCommunityProps,
32
- switchType: pageInfo.frontConfig?.chooseFlag
33
- ? 'merchant'
34
- : addressCommunityProps?.switchType,
35
- ...pageInfo.frontConfig?.merchant,
36
- }"
30
+ v-bind="navAddressCommunityProps"
37
31
  />
38
32
  <view
39
33
  v-if="(styleGroup === 3 || moreThanTwoPages() || !canBack) && capsuleList.length"
@@ -203,6 +197,24 @@ const props = withDefaults(defineProps<NavProps>(), {
203
197
  keyFromUser: false,
204
198
  showAddressCommunity: false,
205
199
  })
200
+ /** 导航地址社区属性 */
201
+ const navAddressCommunityProps = computed(() => {
202
+ let addressCommunityProps = props.addressCommunityProps
203
+ // 不存在的则获取本地缓存
204
+ if (!props.showAddressCommunity) {
205
+ addressCommunityProps = uni.getStorageSync('addressCommunityProps')
206
+ } else {
207
+ // 存在则设置本地缓存
208
+ uni.setStorageSync('addressCommunityProps', addressCommunityProps)
209
+ }
210
+ return {
211
+ ...props.addressCommunityProps,
212
+ switchType: pageInfo.value.frontConfig?.chooseFlag
213
+ ? 'merchant'
214
+ : props.addressCommunityProps?.switchType,
215
+ ...pageInfo.value.frontConfig?.merchant,
216
+ }
217
+ })
206
218
  const navbarBgColor = computed(() => {
207
219
  return props.backgroundType === 'color' ? props.backColor : ''
208
220
  })
@@ -3,7 +3,9 @@
3
3
  v-bind="{
4
4
  ...$props,
5
5
  }"
6
- customStyle="width:auto !important;"
6
+ :customStyle="{
7
+ width: 'auto !important',
8
+ }"
7
9
  v-if="showTitle"
8
10
  >
9
11
  <lcb-action-view :customClass="`!flex ${justify} !leading-none`" v-bind="action">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.29",
3
+ "version": "0.7.31",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],