@tplc/business 0.4.162 → 0.4.164

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,49 @@
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.164](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.161...v0.4.164) (2025-07-21)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.4.162 ([ba2a259](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ba2a259ebdb1c38e8b4b2d37153638085a701ffe))
11
+ * **release:** 0.4.163 ([9ced11c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9ced11cf16df2058a28d1d9e02231d2f96b3f5bc))
12
+
13
+
14
+ ### ✨ Features | 新功能
15
+
16
+ * 调整日历高度 ([7de6b26](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7de6b26c60f1ddce1056e54d56b3753b7e5805e1))
17
+ * 调整ds ([41c69d5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/41c69d5cf71f10d266c6cff16b56a023d40b97b4))
18
+ * 改造route tabbar ([544c8b8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/544c8b8c4ce29c7c89ccdadaef3bf4018bde3884))
19
+ * 新增index ([0632409](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/06324097a0d2103a9d055c4c3b4c137be4537eb5))
20
+ * nav页面 ([aa8f380](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/aa8f380e915a44b74036a24079027c14b8ce484a))
21
+ * nav页面 ([53b45b0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/53b45b0551d117641c9fd715028223caa6d9950a))
22
+
23
+ ### [0.4.163](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.154...v0.4.163) (2025-07-18)
24
+
25
+
26
+ ### 🚀 Chore | 构建/工程依赖/工具
27
+
28
+ * **release:** 0.1.92 ([fc7edda](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/fc7edda05581d622de73c354e3ce605c986d8882))
29
+ * **release:** 0.4.155 ([605f0ee](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/605f0eef84c270217dee31ea035a2139ed033fd4))
30
+ * **release:** 0.4.156 ([1cd33f4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1cd33f46f11c255a7cea1cf082113903eff58caa))
31
+ * **release:** 0.4.157 ([7b7bd1c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7b7bd1c6bdcb3e21edd54c9272d7e15a0a055a97))
32
+ * **release:** 0.4.158 ([e1f6f9b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e1f6f9b0b9e4c48c4e935c2d4c0b08b4db4c319b))
33
+ * **release:** 0.4.159 ([39eacda](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/39eacda6bfd87d698edbfffdc19db91630a412e2))
34
+ * **release:** 0.4.160 ([90767e4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/90767e45312f08c929681e80519f44cb836b84ba))
35
+ * **release:** 0.4.161 ([9a2d2c2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9a2d2c2cf5ac80bdc415edf88cedbf31caf207da))
36
+ * **release:** 0.4.162 ([ba2a259](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ba2a259ebdb1c38e8b4b2d37153638085a701ffe))
37
+
38
+
39
+ ### ✨ Features | 新功能
40
+
41
+ * full ([78257d3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/78257d345323092fbf088ed3f95f490114a7e2c2))
42
+ * nav ([9d145b7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9d145b710c31c1ff0baa42aa2cc27f09ff905ea3))
43
+ * nav页面 ([53b45b0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/53b45b0551d117641c9fd715028223caa6d9950a))
44
+ * 新增index ([0632409](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/06324097a0d2103a9d055c4c3b4c137be4537eb5))
45
+ * 调整cell inner ([5b3b603](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5b3b60325a7db199e209cc560bdc92b77744a244))
46
+ * 调整ds ([41c69d5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/41c69d5cf71f10d266c6cff16b56a023d40b97b4))
47
+
5
48
  ### [0.4.162](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.92...v0.4.162) (2025-07-16)
6
49
 
7
50
 
package/action.d.ts CHANGED
@@ -49,7 +49,7 @@ export interface LcbGlobal {
49
49
  mainConfig?: Record<string, any>
50
50
  otherConfig?: Record<string, any>
51
51
  }
52
- getIsTabbar: () => boolean
52
+ getIsTabbar: (route: string) => boolean
53
53
  layoutId: string
54
54
  internalPages: {
55
55
  webview: string
@@ -60,7 +60,7 @@ export interface LcbGlobal {
60
60
  authPhone: string
61
61
  userEdit: string
62
62
  drawdown: string
63
- notification:string
63
+ notification: string
64
64
  }
65
65
  }
66
66
 
@@ -40,6 +40,16 @@
40
40
  :key="item.action"
41
41
  :class="[capsuleList.length === 1 ? 'px-2' : 'px-2.5']"
42
42
  >
43
+ <wd-badge
44
+ :model-value="messageCount"
45
+ v-if="item.action === 'notification' && messageCount > 0"
46
+ >
47
+ <wd-icon
48
+ :name="iconMap[item.action] || item.icon"
49
+ size="40rpx"
50
+ :color="contentColor"
51
+ />
52
+ </wd-badge>
43
53
  <wd-icon
44
54
  v-bind="{
45
55
  ...(item.action === 'notification'
@@ -51,6 +61,7 @@
51
61
  :name="iconMap[item.action] || item.icon"
52
62
  size="40rpx"
53
63
  :color="contentColor"
64
+ v-else
54
65
  />
55
66
  </view>
56
67
  </view>
@@ -125,6 +136,7 @@ import Search from './Search/index.vue'
125
136
  import { Locale } from '@tplc/wot'
126
137
  import usePageScroll from '../../hooks/usePageScroll'
127
138
  import SharePopup from './SharePopup/index.vue'
139
+ import { getCurrentPage } from '../../utils/utils'
128
140
  defineOptions({
129
141
  name: 'LcbNav',
130
142
  options: {
@@ -153,9 +165,11 @@ const iconMap = {
153
165
  home: 'shouye_home1',
154
166
  notification: 'notification',
155
167
  }
168
+ const route = getCurrentPage().route
156
169
  const showShare = ref(false)
157
170
  const [scrollTop] = usePageScroll()
158
171
  const injectScrollTop = inject('page-scroll-top', { value: 0 })
172
+ const messageCount = inject('message-count', 0)
159
173
  const props = withDefaults(defineProps<NavProps>(), {
160
174
  styleGroup: 1,
161
175
  titleLocation: 'center',
@@ -237,7 +251,7 @@ const capsuleList = computed(() => {
237
251
  })
238
252
  }
239
253
  /** 如果超过俩个的层级的话并且支持返回 */
240
- if (moreThanTwoPages() || (!uni.$lcb.getIsTabbar() && !canBack.value)) {
254
+ if (moreThanTwoPages() || (!uni.$lcb.getIsTabbar(route) && !canBack.value)) {
241
255
  list.push({
242
256
  icon: 'shouye_home1',
243
257
  action: 'home',
@@ -8,7 +8,9 @@
8
8
  v-if="list.length"
9
9
  >
10
10
  <view class="p-1 pt-3 box-border">
11
- <view class="flex justify-between items-center text-white pl-2 pr-1.5 box-border w-full">
11
+ <view
12
+ class="flex justify-between items-center text-white pl-2 pr-1.5 box-border w-full min-h-4"
13
+ >
12
14
  <lcb-action-view
13
15
  v-bind="titleLink"
14
16
  custom-class="!flex !items-center !justify-center gap-1.5"
@@ -16,7 +18,11 @@
16
18
  <wd-icon :name="calendarIcon" class-prefix="lcb" size="30rpx" v-if="calendarIcon" />
17
19
  {{ title }}
18
20
  </lcb-action-view>
19
- <lcb-action-view v-bind="link" custom-class="!flex !items-center !justify-center gap-1.5">
21
+ <lcb-action-view
22
+ v-bind="link"
23
+ custom-class="!flex !items-center !justify-center gap-1.5"
24
+ v-if="linkTitle"
25
+ >
20
26
  <view class="font-bold text-3.5">{{ linkTitle }}</view>
21
27
  <wd-icon name="a-xingzhuang97" class-prefix="lcb" size="22rpx" />
22
28
  </lcb-action-view>
@@ -1,9 +1,11 @@
1
1
  import { getRect, isH5 } from '@tplc/wot/components/common/util'
2
2
  import { getCurrentInstance, onMounted, ref } from 'vue'
3
+ import { getCurrentPage } from '../utils/utils'
3
4
 
4
5
  const useAutoHeight = (id = 'pagingTop') => {
5
6
  const { proxy } = getCurrentInstance() as any
6
- const isTabBar = uni.$lcb.getIsTabbar()
7
+ const route = getCurrentPage().route
8
+ const isTabBar = uni.$lcb.getIsTabbar(route)
7
9
  const viewPageHeight = isH5 ? window.innerHeight : uni.getWindowInfo().screenHeight
8
10
  const height = ref('')
9
11
  const top = ref(0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.162",
3
+ "version": "0.4.164",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],