@tplc/business 0.3.75 → 0.3.76

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,8 @@
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.3.76](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.75...v0.3.76) (2025-03-10)
6
+
5
7
  ### [0.3.75](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.73...v0.3.75) (2025-03-10)
6
8
 
7
9
 
@@ -1,9 +1,10 @@
1
1
  <template>
2
2
  <view class="lcb-banner">
3
- <lcb-block v-bind="$props">
3
+ <lcb-block v-bind="$props" custom-class="overflow-visible">
4
4
  <wd-swiper
5
5
  value-key="url"
6
6
  action
7
+ custom-indicator-class="custom-indicator-class"
7
8
  v-bind="{
8
9
  list: items,
9
10
  loop,
@@ -18,6 +19,8 @@
18
19
  customNextImageClass,
19
20
  interval,
20
21
  indicator: indicator ? { type: indicator } : false,
22
+ indicatorCustomStyle,
23
+ customStyle,
21
24
  ...supplementProps,
22
25
  }"
23
26
  />
@@ -57,6 +60,12 @@ const supplementProps = computed(() => {
57
60
  }
58
61
  return {}
59
62
  })
63
+ const indicatorCustomStyle = computed(() => {
64
+ return props.indicatorBottom ? `bottom: ${transformValueUnit(props.indicatorBottom)}` : ''
65
+ })
66
+ const customStyle = computed(() => {
67
+ return props.paddingBottom ? `padding-bottom: ${transformValueUnit(props.paddingBottom)}` : ''
68
+ })
60
69
  </script>
61
70
  <style lang="scss" scoped>
62
71
  .lcb-banner {
@@ -35,6 +35,9 @@ export interface LcbBannerProps extends LcbBlockProps {
35
35
  | 'bottom-right'
36
36
  | 'right'
37
37
  /** 边距是否应用到第一个、最后一个元素 */
38
+ paddingBottom?: number
39
+ /** 指示器底部距离 */
40
+ indicatorBottom?: number
38
41
  snapToEdge?: boolean
39
42
  // 图片之间距离
40
43
  itemPadding?: number
@@ -1,11 +1,5 @@
1
1
  <template>
2
- <lcb-block
3
- v-bind="{
4
- ...$props,
5
- backgroundColor: bgStyle === 1 ? backgroundColor : '',
6
- backgroundImage: bgStyle === 2 ? backgroundImage : '',
7
- }"
8
- >
2
+ <lcb-block v-bind="$props">
9
3
  <view
10
4
  class="anyTopGap"
11
5
  :style="{
@@ -155,7 +149,6 @@ withDefaults(defineProps<LcbUserTopProps>(), {
155
149
  editText: '编辑资料',
156
150
  editSize: 28,
157
151
  rightIconSize: 28,
158
- bgStyle: 1,
159
152
  })
160
153
  const padTop = computed(() => {
161
154
  return addUnit(statusBarHeight || 0)
@@ -7,7 +7,6 @@ export interface LcbUserTopProps extends LcbBlockProps {
7
7
  photoSize?: number
8
8
  textSize?: number
9
9
  textColor?: string
10
- bgStyle?: 1 | 2
11
10
  backgroundColor?: string
12
11
  backgroundImage?: string
13
12
  moreIcon?: boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.75",
3
+ "version": "0.3.76",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -34,6 +34,9 @@ export interface LcbBannerProps extends LcbBlockProps {
34
34
  | 'bottom-right'
35
35
  | 'right'
36
36
  /** 边距是否应用到第一个、最后一个元素 */
37
+ paddingBottom?: number
38
+ /** 指示器底部距离 */
39
+ indicatorBottom?: number
37
40
  snapToEdge?: boolean
38
41
  itemPadding?: number
39
42
  /** 图片圆角 */
@@ -17,7 +17,6 @@ declare const _default: import('vue').DefineComponent<
17
17
  editText: string
18
18
  editSize: number
19
19
  rightIconSize: number
20
- bgStyle: number
21
20
  }
22
21
  >,
23
22
  {},
@@ -48,7 +47,6 @@ declare const _default: import('vue').DefineComponent<
48
47
  editText: string
49
48
  editSize: number
50
49
  rightIconSize: number
51
- bgStyle: number
52
50
  }
53
51
  >
54
52
  >
@@ -64,7 +62,6 @@ declare const _default: import('vue').DefineComponent<
64
62
  textSize: number
65
63
  photoRound: boolean
66
64
  photoSize: number
67
- bgStyle: 1 | 2
68
65
  moreIcon: boolean
69
66
  editText: string
70
67
  editSize: number
@@ -5,7 +5,6 @@ export interface LcbUserTopProps extends LcbBlockProps {
5
5
  photoSize?: number
6
6
  textSize?: number
7
7
  textColor?: string
8
- bgStyle?: 1 | 2
9
8
  backgroundColor?: string
10
9
  backgroundImage?: string
11
10
  moreIcon?: boolean