@tplc/business 0.4.191 → 0.4.193

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,26 @@
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.193](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.192...v0.4.193) (2025-08-18)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 支持supportClickScroll ([1c0113f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1c0113f9574401a24a1482f92e242d2061a89362))
11
+
12
+ ### [0.4.192](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.190...v0.4.192) (2025-08-18)
13
+
14
+
15
+ ### 🚀 Chore | 构建/工程依赖/工具
16
+
17
+ * **release:** 0.4.191 ([d030e41](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d030e41babc0f69317a087c3d8eb9c3e021e901b))
18
+
19
+
20
+ ### ✨ Features | 新功能
21
+
22
+ * area auto ([7df0e63](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7df0e6312d2ea031bc2474d8894fefc071edaaa4))
23
+ * 兼容跳转 ([13b1e44](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13b1e4494dfdf2d13764fcc685b6f062353aa57a))
24
+
5
25
  ### [0.4.191](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.189...v0.4.191) (2025-08-15)
6
26
 
7
27
 
@@ -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,15 +106,20 @@ 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)
105
118
  const touchStartX = ref(0)
106
119
  const isTouching = ref(false)
120
+ if (props.supportClickScroll) {
121
+ showTabbar.value = false
122
+ }
107
123
 
108
124
  const supplementProps = computed(() => {
109
125
  if (props.styleGroup === 2) {
@@ -141,6 +157,13 @@ onPageScroll((e) => {
141
157
  if (props.fullScreenBackground || props.fullBannerFlow) {
142
158
  scrollTop.value = e.scrollTop
143
159
  }
160
+ if (props.supportClickScroll) {
161
+ if (e.scrollTop > 100) {
162
+ showTabbar.value = true
163
+ } else {
164
+ showTabbar.value = false
165
+ }
166
+ }
144
167
  })
145
168
 
146
169
  // Touch event handlers
@@ -176,6 +199,13 @@ const handleTouchMove = (e: TouchEvent) => {
176
199
  const handleTouchEnd = () => {
177
200
  isTouching.value = false
178
201
  }
202
+ const handleScrollToBottom = () => {
203
+ const statusBarHeight = uni.getWindowInfo().statusBarHeight
204
+ uni.pageScrollTo({
205
+ scrollTop: pageHeight - statusBarHeight - 44,
206
+ duration: 300,
207
+ })
208
+ }
179
209
  </script>
180
210
  <style lang="scss" scoped>
181
211
  .lcb-banner {
@@ -195,7 +225,7 @@ const handleTouchEnd = () => {
195
225
  .full-screen-swiper {
196
226
  :deep(.wd-swiper, uni-swiper, .uni-swiper-wrapper, .uni-swiper-wrapper, .lcb-banner-block) {
197
227
  width: 100% !important;
198
- height: 100% !important;
228
+ height: 100vh !important;
199
229
  }
200
230
  }
201
231
  .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.193",
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'