@tplc/business 0.4.191 → 0.4.192

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,19 @@
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.192](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.190...v0.4.192) (2025-08-18)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.4.191 ([d030e41](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d030e41babc0f69317a087c3d8eb9c3e021e901b))
11
+
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ * area auto ([7df0e63](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7df0e6312d2ea031bc2474d8894fefc071edaaa4))
16
+ * 兼容跳转 ([13b1e44](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13b1e4494dfdf2d13764fcc685b6f062353aa57a))
17
+
5
18
  ### [0.4.191](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.189...v0.4.191) (2025-08-15)
6
19
 
7
20
 
@@ -70,14 +70,25 @@
70
70
  }"
71
71
  />
72
72
  </lcb-block>
73
+ <wd-icon
74
+ name="chevron-down"
75
+ size="40px"
76
+ color="#fff"
77
+ custom-class="z-1 absolute bottom-20 left-0 right-0 m-auto w-fit"
78
+ v-if="fullScreenBackground && supportClickScroll"
79
+ @click="handleScrollToBottom"
80
+ />
73
81
  </view>
82
+
83
+ <view class="h-100vh w-full" v-if="fullScreenBackground && supportClickScroll" />
74
84
  </template>
75
85
 
76
86
  <script setup lang="ts">
77
- import { computed, ref } from 'vue'
87
+ import { computed, inject, Ref, ref } from 'vue'
78
88
  import { LcbBannerProps } from './types'
79
89
  import { transformValueUnit } from '../../utils/transform'
80
90
  import { onPageScroll } from '@dcloudio/uni-app'
91
+ import { SHOW_TABBAR } from '../../constants'
81
92
  defineOptions({
82
93
  name: 'LcbBanner',
83
94
  options: {
@@ -95,10 +106,12 @@ const props = withDefaults(defineProps<LcbBannerProps>(), {
95
106
  titleTop: 100,
96
107
  titleLeft: 100,
97
108
  fontWeight: 500,
109
+ supportClickScroll: false,
98
110
  })
99
111
  const scrollTop = ref(0)
100
112
 
101
113
  const pageHeight = uni.getWindowInfo().screenHeight
114
+ const showTabbar = inject(SHOW_TABBAR) as Ref<boolean>
102
115
 
103
116
  // Touch gesture handling
104
117
  const touchStartY = ref(0)
@@ -141,6 +154,13 @@ onPageScroll((e) => {
141
154
  if (props.fullScreenBackground || props.fullBannerFlow) {
142
155
  scrollTop.value = e.scrollTop
143
156
  }
157
+ if (props.supportClickScroll) {
158
+ if (e.scrollTop > 100) {
159
+ showTabbar.value = true
160
+ } else {
161
+ showTabbar.value = false
162
+ }
163
+ }
144
164
  })
145
165
 
146
166
  // Touch event handlers
@@ -176,6 +196,13 @@ const handleTouchMove = (e: TouchEvent) => {
176
196
  const handleTouchEnd = () => {
177
197
  isTouching.value = false
178
198
  }
199
+ const handleScrollToBottom = () => {
200
+ const statusBarHeight = uni.getWindowInfo().statusBarHeight
201
+ uni.pageScrollTo({
202
+ scrollTop: pageHeight - statusBarHeight - 44,
203
+ duration: 300,
204
+ })
205
+ }
179
206
  </script>
180
207
  <style lang="scss" scoped>
181
208
  .lcb-banner {
@@ -195,7 +222,7 @@ const handleTouchEnd = () => {
195
222
  .full-screen-swiper {
196
223
  :deep(.wd-swiper, uni-swiper, .uni-swiper-wrapper, .uni-swiper-wrapper, .lcb-banner-block) {
197
224
  width: 100% !important;
198
- height: 100% !important;
225
+ height: 100vh !important;
199
226
  }
200
227
  }
201
228
  .full-screen-flow {
@@ -57,6 +57,8 @@ export interface LcbBannerProps extends LcbBlockProps {
57
57
  slidingStyle?: 1 | 2
58
58
  maskBgColor?: string
59
59
  fullScreenBackground?: boolean
60
+ // 支持点击滚动页面
61
+ supportClickScroll?: boolean
60
62
  /** 是否全屏流式banner */
61
63
  fullBannerFlow?: boolean
62
64
  titleColor?: string
package/constants.ts CHANGED
@@ -13,3 +13,5 @@ export const LIST_FORM_CHOOSER_VALUES = 'list_form_chooser_values'
13
13
  export const PAGE_DYNAMIC_DATA = 'page_dynamic_data'
14
14
  /** 列表页表单选择项 */
15
15
  export const WRAPPER_ITEM_KEY = 'wrapper_item_key'
16
+ /** 是否显示tabbar */
17
+ export const SHOW_TABBAR = 'show_tabbar'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.191",
3
+ "version": "0.4.192",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,6 +11,7 @@ declare const _default: import('vue').DefineComponent<
11
11
  titleTop: number
12
12
  titleLeft: number
13
13
  fontWeight: number
14
+ supportClickScroll: boolean
14
15
  }
15
16
  >,
16
17
  {},
@@ -35,6 +36,7 @@ declare const _default: import('vue').DefineComponent<
35
36
  titleTop: number
36
37
  titleLeft: number
37
38
  fontWeight: number
39
+ supportClickScroll: boolean
38
40
  }
39
41
  >
40
42
  >
@@ -44,6 +46,7 @@ declare const _default: import('vue').DefineComponent<
44
46
  fontWeight: number
45
47
  styleGroup: 1 | 2
46
48
  slidingStyle: 1 | 2
49
+ supportClickScroll: boolean
47
50
  titleColor: string
48
51
  titleFontSize: number
49
52
  titleTop: number
@@ -54,6 +54,7 @@ export interface LcbBannerProps extends LcbBlockProps {
54
54
  slidingStyle?: 1 | 2
55
55
  maskBgColor?: string
56
56
  fullScreenBackground?: boolean
57
+ supportClickScroll?: boolean
57
58
  /** 是否全屏流式banner */
58
59
  fullBannerFlow?: boolean
59
60
  titleColor?: string
@@ -13,3 +13,5 @@ export declare const LIST_FORM_CHOOSER_VALUES = 'list_form_chooser_values'
13
13
  export declare const PAGE_DYNAMIC_DATA = 'page_dynamic_data'
14
14
  /** 列表页表单选择项 */
15
15
  export declare const WRAPPER_ITEM_KEY = 'wrapper_item_key'
16
+ /** 是否显示tabbar */
17
+ export declare const SHOW_TABBAR = 'show_tabbar'