@tplc/business 0.7.44 → 0.7.46

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,42 @@
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.7.46](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.44...v0.7.46) (2026-01-05)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.7.45 ([eeda9cf](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/eeda9cfaa15ada437d7552b89611f99739592fb6))
11
+
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ * **lcb-button:** add fontFamily prop to customize button text styling ([9f4ccd4](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9f4ccd497cbf49f0bf406da3f805f0662ed21cfe))
16
+ * **lcb-image:** add renderMode prop to control click behavior based on item.link ([0cd0b8b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0cd0b8b2fb6158f334b5ddc3171ae0cac6fc133c))
17
+
18
+ ### [0.7.45](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.41...v0.7.45) (2026-01-04)
19
+
20
+
21
+ ### ♻️ Code Refactoring | 代码重构
22
+
23
+ * **lcb-product-item:** simplify price display logic by removing unnecessary wrapper and adjusting item order ([e3dc932](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e3dc9329b5edb8fb82bc6ca3d795d8defc6331db))
24
+
25
+
26
+ ### 🚀 Chore | 构建/工程依赖/工具
27
+
28
+ * **release:** 0.7.42 ([9bc5145](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9bc514524e49585070a9a2c50d221de138c60c5f))
29
+ * **release:** 0.7.43 ([20234e7](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/20234e742ee6d5b2ce4d0c476e9412435f2393b1))
30
+ * **release:** 0.7.44 ([b9991cf](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/b9991cf032c58860f52ccd54baf446bf244326c8))
31
+ * **release:** 1.0.24 ([9d65575](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9d6557591271175bb34d17e758284e158c8e96bc))
32
+
33
+
34
+ ### ✨ Features | 新功能
35
+
36
+ * **lcb-image, lcb-product-item, wd-img:** add showMenuByLongpress prop for long press menu functionality in WeChat Mini Program ([033f73c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/033f73c2dcf09fc4369986d25ee05385f9f78f94))
37
+ * **lcb-image:** add renderMode prop to control click behavior based on item.link ([0cd0b8b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0cd0b8b2fb6158f334b5ddc3171ae0cac6fc133c))
38
+ * **lcb-nav:** refactor lcb-nav component to use lcb-action-view for action rendering and add actionViewProps to ICapsule interface ([20f911f](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/20f911f2ed5db75ecbd7a7a58afdf2498f600b37))
39
+ * **lcb-product-item, wd-img:** add titleOnImg prop to lcb-product-item and retain showMenuByLongpress in wd-img component ([3e40709](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/3e40709a04a4f7a7a8ab680d44eee7cfe27dab00))
40
+
5
41
  ### [0.7.44](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.43...v0.7.44) (2026-01-04)
6
42
 
7
43
 
@@ -45,6 +45,9 @@
45
45
  style="line-height: 1.54"
46
46
  class="whitespace-pre-wrap"
47
47
  :class="lineClamp ? `line-clamp-${lineClamp}` : ''"
48
+ :style="{
49
+ fontFamily: fontFamily,
50
+ }"
48
51
  >
49
52
  {{ innerValue }}
50
53
  </text>
@@ -39,4 +39,5 @@ export interface LcbButtonProps extends LcbBlockProps {
39
39
  dynamicActionKey?: string
40
40
  lineClamp?: number
41
41
  progressProps?: ExtractPropTypes<typeof progressProps>
42
+ fontFamily?: string
42
43
  }
@@ -23,6 +23,7 @@
23
23
  2: 'mutil',
24
24
  3: 'cell',
25
25
  }[styleGroup!],
26
+ styleGroup === 2 && itemFlexMode === 'row' ? 'mutil-row' : '',
26
27
  ]"
27
28
  >
28
29
  <lcb-action-view
@@ -40,17 +41,32 @@
40
41
  padding: `${transformValueUnit(itemVerticalPadding)} ${transformValueUnit(itemHorizontalPadding)}`,
41
42
  flexDirection: styleGroup === 3 ? 'row' : itemFlexMode,
42
43
  gap: transformValueUnit(iconTextMargin),
43
- boxShadow:
44
- itemShadowColor && itemShadowSize
45
- ? `0px 0px ${itemBlurSize}px ${itemShadowSize}px ${itemShadowColor}`
46
- : '',
44
+ boxShadow: itemShadowColor
45
+ ? `0 0 ${transformValueUnit(itemBlurSize)} ${transformValueUnit(itemShadowSize)} ${itemShadowColor}`
46
+ : '',
47
47
  marginRight: styleGroup === 1 ? transformValueUnit(itemGap) : 0,
48
48
  }"
49
49
  :class="{
50
50
  divider: divider && index !== (items || []).length - 1 && styleGroup === 3,
51
51
  }"
52
52
  >
53
- <view class="overflow-hidden">
53
+ <view
54
+ class="overflow-hidden"
55
+ :style="{
56
+ width: iconSize + 'rpx',
57
+ height: iconSize + 'rpx',
58
+ borderRadius: transformValueUnit(iconRadius),
59
+ border:
60
+ iconBorderColor && iconBorderWidth
61
+ ? `${transformValueUnit(iconBorderWidth)} solid ${iconBorderColor}`
62
+ : '',
63
+ padding: transformValueUnit(iconPadding),
64
+ boxSizing: 'border-box',
65
+ display: 'flex',
66
+ alignItems: 'center',
67
+ justifyContent: 'center',
68
+ }"
69
+ >
54
70
  <wd-icon
55
71
  v-if="iconType === 0"
56
72
  class-prefix="lcb"
@@ -61,9 +77,9 @@
61
77
  <image
62
78
  v-else
63
79
  :style="{
64
- width: iconSize + 'rpx',
65
- height: iconSize + 'rpx',
66
- borderRadius: iconRadius + 'rpx',
80
+ width: '100%',
81
+ height: '100%',
82
+ borderRadius: transformValueUnit(iconRadius),
67
83
  }"
68
84
  :src="item[urlKey]"
69
85
  mode="aspectFit"
@@ -117,6 +133,8 @@ const props = withDefaults(defineProps<LcbImgNavProps>(), {
117
133
  textColor: '#212121',
118
134
  iconColor: '#212121',
119
135
  iconRadius: 0,
136
+ iconBorderColor: '',
137
+ iconBorderWidth: 0,
120
138
  paddingVertical: 36,
121
139
  iconSize: 80,
122
140
  paddingHorizontal: 0,
@@ -165,6 +183,16 @@ const renderItems = computed(() => {
165
183
  display: grid;
166
184
  row-gap: 36rpx;
167
185
  }
186
+
187
+ .mutil-row {
188
+ :deep(.item) {
189
+ justify-content: flex-start;
190
+ }
191
+ :deep(.title) {
192
+ flex: 1;
193
+ text-align: start;
194
+ }
195
+ }
168
196
  .cell {
169
197
  display: flex;
170
198
  flex-direction: column;
@@ -29,6 +29,13 @@ export interface LcbImgNavProps extends LcbBlockProps {
29
29
  iconSize?: number
30
30
  /** 图标圆角 默认 0 */
31
31
  iconRadius?: number
32
+ /** 图标边框颜色(为空则不显示) */
33
+ iconBorderColor?: string
34
+ /** 图标边框宽度(单位:rpx) */
35
+ iconBorderWidth?: number
36
+ /** 图标边框圆角(单位:rpx) */
37
+ iconBorderRadius?: number
38
+ iconPadding?: number
32
39
  /** 文字与图标距离 */
33
40
  iconTextMargin?: number
34
41
  textFontWeight?: number
@@ -7,6 +7,7 @@
7
7
  :direction="direction"
8
8
  :speed="speed"
9
9
  @click="handleClick"
10
+ :delay="delay"
10
11
  custom-class="!p-0 !rounded-none"
11
12
  >
12
13
  <template #prefix v-if="iconType !== -1 && icon">
@@ -12,4 +12,5 @@ export interface LcbNoticeBarProps extends LcbBlockProps {
12
12
  rightArrow?: boolean
13
13
  icon?: string
14
14
  iconSize?: number
15
+ delay?: number
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.44",
3
+ "version": "0.7.46",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -35,4 +35,5 @@ export interface LcbButtonProps extends LcbBlockProps {
35
35
  dynamicActionKey?: string
36
36
  lineClamp?: number
37
37
  progressProps?: ExtractPropTypes<typeof progressProps>
38
+ fontFamily?: string
38
39
  }
@@ -6,6 +6,8 @@ declare const _default: import('vue').DefineComponent<
6
6
  textColor: string
7
7
  iconColor: string
8
8
  iconRadius: number
9
+ iconBorderColor: string
10
+ iconBorderWidth: number
9
11
  paddingVertical: number
10
12
  iconSize: number
11
13
  paddingHorizontal: number
@@ -43,6 +45,8 @@ declare const _default: import('vue').DefineComponent<
43
45
  textColor: string
44
46
  iconColor: string
45
47
  iconRadius: number
48
+ iconBorderColor: string
49
+ iconBorderWidth: number
46
50
  paddingVertical: number
47
51
  iconSize: number
48
52
  paddingHorizontal: number
@@ -73,6 +77,8 @@ declare const _default: import('vue').DefineComponent<
73
77
  textColor: string
74
78
  pictureDistribution: 3 | 4 | 5
75
79
  iconRadius: number
80
+ iconBorderColor: string
81
+ iconBorderWidth: number
76
82
  iconTextMargin: number
77
83
  textFontWeight: number
78
84
  divider: boolean
@@ -28,6 +28,13 @@ export interface LcbImgNavProps extends LcbBlockProps {
28
28
  iconSize?: number
29
29
  /** 图标圆角 默认 0 */
30
30
  iconRadius?: number
31
+ /** 图标边框颜色(为空则不显示) */
32
+ iconBorderColor?: string
33
+ /** 图标边框宽度(单位:rpx) */
34
+ iconBorderWidth?: number
35
+ /** 图标边框圆角(单位:rpx) */
36
+ iconBorderRadius?: number
37
+ iconPadding?: number
31
38
  /** 文字与图标距离 */
32
39
  iconTextMargin?: number
33
40
  textFontWeight?: number
@@ -11,4 +11,5 @@ export interface LcbNoticeBarProps extends LcbBlockProps {
11
11
  rightArrow?: boolean
12
12
  icon?: string
13
13
  iconSize?: number
14
+ delay?: number
14
15
  }