@tplc/business 0.3.74 → 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,22 @@
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
+
7
+ ### [0.3.75](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.73...v0.3.75) (2025-03-10)
8
+
9
+
10
+ ### 🚀 Chore | 构建/工程依赖/工具
11
+
12
+ * **release:** 0.3.73 ([67f4357](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/67f435737746cd78ebd35097a9871f4272fd451d))
13
+ * **release:** 0.3.74 ([980976a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/980976aa06262c1f21f84558ea64eb9b4306212c))
14
+
15
+
16
+ ### ✨ Features | 新功能
17
+
18
+ * 新增search ([437606d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/437606d1cb6d7fdacb9a4d7622c7e57ce02cb358))
19
+ * 新增物流 ([b5403b4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b5403b46bcd9b05dac85900fa7d0a50aa1071d20))
20
+
5
21
  ### [0.3.74](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.73...v0.3.74) (2025-03-09)
6
22
 
7
23
 
@@ -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
@@ -26,7 +26,7 @@
26
26
  ]"
27
27
  >
28
28
  <lcb-action-view
29
- v-for="item in items"
29
+ v-for="(item, index) in items"
30
30
  :key="item.title"
31
31
  v-bind="item.link"
32
32
  @click="onItemClick(item)"
@@ -38,7 +38,7 @@
38
38
  backgroundColor: itemBgColor,
39
39
  borderRadius: transformValueUnit(itemRadius),
40
40
  padding: `${transformValueUnit(itemVerticalPadding)} ${transformValueUnit(itemHorizontalPadding)}`,
41
- flexDirection: itemFlexMode,
41
+ flexDirection: styleGroup === 3 ? 'row' : itemFlexMode,
42
42
  gap: transformValueUnit(iconTextMargin),
43
43
  boxShadow:
44
44
  itemShadowColor && itemShadowSize
@@ -46,6 +46,9 @@
46
46
  : '',
47
47
  marginRight: styleGroup === 1 ? transformValueUnit(itemGap) : 0,
48
48
  }"
49
+ :class="{
50
+ divider: divider && index !== (items || []).length - 1 && styleGroup === 3,
51
+ }"
49
52
  >
50
53
  <view class="overflow-hidden">
51
54
  <wd-icon
@@ -76,7 +79,12 @@
76
79
  >
77
80
  {{ item[titleKey] }}
78
81
  </view>
79
- <wd-icon v-if="styleGroup === 3" name="chevron-right" size="22"></wd-icon>
82
+ <wd-icon
83
+ v-if="styleGroup === 3"
84
+ name="chevron-right"
85
+ :size="transformValueUnit(arrowSize)"
86
+ :color="arrowColor"
87
+ ></wd-icon>
80
88
  </view>
81
89
  </lcb-action-view>
82
90
  </view>
@@ -116,6 +124,9 @@ withDefaults(defineProps<LcbImgNavProps>(), {
116
124
  itemGap: 24,
117
125
  titleBottom: 40,
118
126
  textFontWeight: 400,
127
+ divider: true,
128
+ arrowSize: 44,
129
+ arrowColor: '#212121',
119
130
  })
120
131
  </script>
121
132
 
@@ -150,4 +161,8 @@ withDefaults(defineProps<LcbImgNavProps>(), {
150
161
  letter-spacing: 0;
151
162
  white-space: nowrap;
152
163
  }
164
+
165
+ .divider {
166
+ border-bottom: 1px solid #e5e5e5;
167
+ }
153
168
  </style>
@@ -24,6 +24,12 @@ export interface LcbImgNavProps extends LcbBlockProps {
24
24
  iconTextMargin?: number
25
25
  textFontWeight?: number
26
26
 
27
+ divider?: boolean
28
+ /** 箭头颜色 */
29
+ arrowColor?: string
30
+ /** 箭头大小 */
31
+ arrowSize?: number
32
+
27
33
  // 是否显示标题
28
34
  showTitle?: boolean
29
35
  title?: string
@@ -43,7 +43,7 @@
43
43
  alignSelf: moreVerticalAlign,
44
44
  }"
45
45
  >
46
- 更多
46
+ {{ moreText }}
47
47
  <wd-icon name="xiangyou" classPrefix="lcb" :size="transformValueUnit(moreFontSize)" />
48
48
  </view>
49
49
  </lcb-action-view>
@@ -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.74",
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
  /** 图片圆角 */
@@ -18,6 +18,9 @@ declare const _default: import('vue').DefineComponent<
18
18
  itemGap: number
19
19
  titleBottom: number
20
20
  textFontWeight: number
21
+ divider: boolean
22
+ arrowSize: number
23
+ arrowColor: string
21
24
  }
22
25
  >,
23
26
  {},
@@ -51,6 +54,9 @@ declare const _default: import('vue').DefineComponent<
51
54
  itemGap: number
52
55
  titleBottom: number
53
56
  textFontWeight: number
57
+ divider: boolean
58
+ arrowSize: number
59
+ arrowColor: string
54
60
  }
55
61
  >
56
62
  >
@@ -67,6 +73,9 @@ declare const _default: import('vue').DefineComponent<
67
73
  iconRadius: number
68
74
  iconTextMargin: number
69
75
  textFontWeight: number
76
+ divider: boolean
77
+ arrowColor: string
78
+ arrowSize: number
70
79
  textSize: number
71
80
  urlKey: string
72
81
  titleKey: string
@@ -22,6 +22,11 @@ export interface LcbImgNavProps extends LcbBlockProps {
22
22
  /** 文字与图标距离 */
23
23
  iconTextMargin?: number
24
24
  textFontWeight?: number
25
+ divider?: boolean
26
+ /** 箭头颜色 */
27
+ arrowColor?: string
28
+ /** 箭头大小 */
29
+ arrowSize?: number
25
30
  showTitle?: boolean
26
31
  title?: string
27
32
  fontWeight?: number
@@ -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