@tplc/business 0.4.163 → 0.4.165

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,28 @@
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.165](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.164...v0.4.165) (2025-07-21)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * area 支持 position ([acf7ad6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/acf7ad6c905cbcfcc87e505f7b4ba010305e8085))
11
+
12
+ ### [0.4.164](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.162...v0.4.164) (2025-07-21)
13
+
14
+
15
+ ### 🚀 Chore | 构建/工程依赖/工具
16
+
17
+ * **release:** 0.4.163 ([9ced11c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9ced11cf16df2058a28d1d9e02231d2f96b3f5bc))
18
+
19
+
20
+ ### ✨ Features | 新功能
21
+
22
+ * nav页面 ([aa8f380](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/aa8f380e915a44b74036a24079027c14b8ce484a))
23
+ * 改造route tabbar ([544c8b8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/544c8b8c4ce29c7c89ccdadaef3bf4018bde3884))
24
+ * 调整ds ([41c69d5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/41c69d5cf71f10d266c6cff16b56a023d40b97b4))
25
+ * 调整日历高度 ([7de6b26](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7de6b26c60f1ddce1056e54d56b3753b7e5805e1))
26
+
5
27
  ### [0.4.163](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.154...v0.4.163) (2025-07-18)
6
28
 
7
29
 
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
 
@@ -1,5 +1,11 @@
1
1
  <template>
2
- <lcb-block v-bind="$props" v-if="showArea">
2
+ <lcb-block
3
+ v-bind="$props"
4
+ v-if="showArea"
5
+ :customStyle="{
6
+ width: position === 'absolute' ? '100%' : '',
7
+ }"
8
+ >
3
9
  <view
4
10
  class="h-full"
5
11
  :style="{
@@ -21,4 +21,5 @@ export interface LcbAreaProps extends LcbBlockProps {
21
21
  keyFromUser?: boolean
22
22
  reverse?: boolean
23
23
  dependKeyCompareValue?: string
24
+ position?: 'relative' | 'absolute'
24
25
  }
@@ -16,6 +16,7 @@
16
16
  fontWeight,
17
17
  borderColor,
18
18
  zIndex,
19
+ position,
19
20
  borderWidth: transformValueUnit(borderWidth),
20
21
  boxShadow:
21
22
  shadowColor && shadowSize ? `0px 0px ${blurSize}px ${shadowSize}px ${shadowColor}` : '',
@@ -49,6 +50,7 @@ const props = withDefaults(defineProps<LcbBlockInnerProps>(), {
49
50
  backgroundPosition: `top center`,
50
51
  opacity: 1,
51
52
  fontSize: 24,
53
+ position: 'relative',
52
54
  })
53
55
  // 透明度+颜色
54
56
  const innerBackgroundColor = computed(() => {
@@ -26,7 +26,7 @@ export interface LcbBlockProps {
26
26
  paddingLeft?: number
27
27
  paddingRight?: number
28
28
  zIndex?: number
29
-
29
+ position?: 'relative' | 'absolute'
30
30
  color?: string
31
31
  fontSize?: number
32
32
  fontWeight?: number
@@ -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',
@@ -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.163",
3
+ "version": "0.4.165",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -21,4 +21,5 @@ export interface LcbAreaProps extends LcbBlockProps {
21
21
  keyFromUser?: boolean
22
22
  reverse?: boolean
23
23
  dependKeyCompareValue?: string
24
+ position?: 'relative' | 'absolute'
24
25
  }
@@ -11,6 +11,7 @@ declare const __VLS_component: import('vue').DefineComponent<
11
11
  backgroundPosition: string
12
12
  opacity: number
13
13
  fontSize: number
14
+ position: string
14
15
  }
15
16
  >,
16
17
  {},
@@ -32,6 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<
32
33
  backgroundPosition: string
33
34
  opacity: number
34
35
  fontSize: number
36
+ position: string
35
37
  }
36
38
  >
37
39
  >
@@ -25,6 +25,7 @@ export interface LcbBlockProps {
25
25
  paddingLeft?: number
26
26
  paddingRight?: number
27
27
  zIndex?: number
28
+ position?: 'relative' | 'absolute'
28
29
  color?: string
29
30
  fontSize?: number
30
31
  fontWeight?: number
@@ -26,6 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<
26
26
  customClass: string
27
27
  zIndex: number
28
28
  radius: number
29
+ position: 'relative' | 'absolute'
29
30
  backgroundImage: string
30
31
  imageRadius: number
31
32
  marginHorizontal: number