@tplc/business 0.2.55 → 0.2.56

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,22 @@
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.2.56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.53...v0.2.56) (2025-01-03)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.2.54 ([0e50489](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0e5048983ebc7b98802b57fbf7b0abe128567206))
11
+ * **release:** 0.2.55 ([8639fd2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8639fd2ccd4611729f3d84b8c008a76b700320ac))
12
+
13
+
14
+ ### ✨ Features | 新功能
15
+
16
+ * nav 如果页面俩层以上支持home ([0d9607a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0d9607aab7406ec0baeefd00b6434ba53d2ff11d))
17
+ * 修改city选择字段 ([f07078f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f07078fe0ad2bd0f7406202ab784a2714838ac02))
18
+ * 图片尺寸 ([1450d12](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1450d126ee919f47df16f74dd4d170ef30c38e32))
19
+ * 城市选择显示详细地址信息 ([e81331f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e81331f9b303d14468cb659a1b8b7cf16b299dc9))
20
+
5
21
  ### [0.2.55](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.54...v0.2.55) (2025-01-02)
6
22
 
7
23
  ### [0.2.54](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.50...v0.2.54) (2025-01-02)
@@ -27,7 +27,7 @@
27
27
  <view class="navbar-left z-1">
28
28
  <!-- 返回按钮 -->
29
29
  <view
30
- v-if="styleGroup === 3 && capsuleList.length"
30
+ v-if="(styleGroup === 3 || moreThanTwoPages()) && capsuleList.length"
31
31
  class="navbar-capsule flex justify-center items-center"
32
32
  :class="[capsuleMode]"
33
33
  >
@@ -132,6 +132,11 @@ const isLastPage = () => {
132
132
  const pages = getCurrentPages()
133
133
  return pages.length === 1
134
134
  }
135
+ // 超过俩个页面
136
+ const moreThanTwoPages = () => {
137
+ const pages = getCurrentPages()
138
+ return pages.length > 2
139
+ }
135
140
 
136
141
  // 透明度
137
142
  const navbarBgOpacity = computed(() => {
@@ -170,6 +175,13 @@ const capsuleList = computed(() => {
170
175
  action: 'back',
171
176
  })
172
177
  }
178
+ /** 如果超过俩个的层级的话并且支持返回 */
179
+ if (moreThanTwoPages()) {
180
+ list.push({
181
+ icon: 'home',
182
+ action: 'home',
183
+ })
184
+ }
173
185
 
174
186
  return [...list, ...(props.capsules || [])] as ICapsule[]
175
187
  })
@@ -297,8 +309,8 @@ const toBack = () => {
297
309
  }
298
310
 
299
311
  .dark {
300
- border-color: rgba(255, 255, 255, 0.25);
301
- background-color: rgba(0, 0, 0, 0.15);
312
+ border-color: rgba(255, 255, 255, 0.25) !important;
313
+ background-color: rgba(0, 0, 0, 0.15) !important;
302
314
  color: #fff;
303
315
  > view {
304
316
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.55",
3
+ "version": "0.2.56",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],