@tplc/business 0.4.168 → 0.4.170

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,15 @@
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.170](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.97...v0.4.170) (2025-07-26)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 兼容点击 ([8b5912f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8b5912f9fde9b1265464aa19f4e9ef115a2a78ac))
11
+
12
+ ### [0.4.169](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.96...v0.4.169) (2025-07-25)
13
+
5
14
  ### [0.4.168](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.94...v0.4.168) (2025-07-25)
6
15
 
7
16
  ### [0.4.167](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.96...v0.4.167) (2025-07-23)
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <view class="lcb-banner" :class="{ 'full-screen-background': fullScreenBackground }">
2
+ <view
3
+ class="lcb-banner"
4
+ :class="{ 'full-screen-background': fullScreenBackground }"
5
+ :style="{ filter: `blur(${Math.min(scrollTop / 100, 10)}px)` }"
6
+ >
3
7
  <lcb-block v-bind="$props" custom-class="overflow-visible lcb-banner-block">
4
8
  <wd-swiper
5
9
  value-key="url"
@@ -30,9 +34,10 @@
30
34
  </template>
31
35
 
32
36
  <script setup lang="ts">
33
- import { computed } from 'vue'
37
+ import { computed, ref } from 'vue'
34
38
  import { LcbBannerProps } from './types'
35
39
  import { transformValueUnit } from '../../utils/transform'
40
+ import { onPageScroll } from '@dcloudio/uni-app'
36
41
  defineOptions({
37
42
  name: 'LcbBanner',
38
43
  options: {
@@ -46,6 +51,7 @@ const props = withDefaults(defineProps<LcbBannerProps>(), {
46
51
  radius: 0,
47
52
  slidingStyle: 1,
48
53
  })
54
+ const scrollTop = ref(0)
49
55
  const supplementProps = computed(() => {
50
56
  if (props.styleGroup === 2) {
51
57
  return {
@@ -67,6 +73,11 @@ const indicatorCustomStyle = computed(() => {
67
73
  const customStyle = computed(() => {
68
74
  return props.paddingBottom ? `padding-bottom: ${transformValueUnit(props.paddingBottom)}` : ''
69
75
  })
76
+ onPageScroll((e) => {
77
+ if (props.fullScreenBackground) {
78
+ scrollTop.value = e.scrollTop
79
+ }
80
+ })
70
81
  </script>
71
82
  <style lang="scss" scoped>
72
83
  .lcb-banner {
@@ -78,14 +89,10 @@ const customStyle = computed(() => {
78
89
  width: 100%;
79
90
  height: 100%;
80
91
  z-index: 0;
81
- position: absolute;
92
+ position: fixed;
82
93
  top: 0;
83
94
  left: 0;
84
- .lcb-banner-block {
85
- width: 100%;
86
- height: 100%;
87
- }
88
- :deep(.wd-swiper, uni-swiper, .uni-swiper-wrapper, .uni-swiper-wrapper) {
95
+ :deep(.wd-swiper, uni-swiper, .uni-swiper-wrapper, .uni-swiper-wrapper, .lcb-banner-block) {
89
96
  width: 100% !important;
90
97
  height: 100% !important;
91
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.168",
3
+ "version": "0.4.170",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.94"
14
+ "@tplc/wot": "0.1.97"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",