@tplc/business 0.7.46 → 0.7.47

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,18 @@
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.47](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.46...v0.7.47) (2026-01-05)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * **lcb-img-nav:** add multi-line horizontal card layout with icon border customization ([34d1f27](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/34d1f27d0d8073eefcf3867ef6cc608d297de84c))
11
+
12
+
13
+ ### ♻️ Code Refactoring | 代码重构
14
+
15
+ * **lcb-img-nav:** update item styling properties to use rowItemProps for better customization ([8709982](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/8709982e6e81f907bdabcc1c004d56ea31ff1645))
16
+
5
17
  ### [0.7.46](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.44...v0.7.46) (2026-01-05)
6
18
 
7
19
 
@@ -36,14 +36,15 @@
36
36
  <view
37
37
  class="!flex justify-center items-center item"
38
38
  :style="{
39
- backgroundColor: itemBgColor,
40
- borderRadius: transformValueUnit(itemRadius),
39
+ backgroundColor: rowItemProps?.backgroundColor,
40
+ borderRadius: rowItemProps?.borderRadius ? `${rowItemProps?.borderRadius}px` : '',
41
41
  padding: `${transformValueUnit(itemVerticalPadding)} ${transformValueUnit(itemHorizontalPadding)}`,
42
42
  flexDirection: styleGroup === 3 ? 'row' : itemFlexMode,
43
43
  gap: transformValueUnit(iconTextMargin),
44
- boxShadow: itemShadowColor
45
- ? `0 0 ${transformValueUnit(itemBlurSize)} ${transformValueUnit(itemShadowSize)} ${itemShadowColor}`
46
- : '',
44
+ boxShadow:
45
+ rowItemProps?.shadowColor && rowItemProps?.shadowSize
46
+ ? `0px 0px ${rowItemProps?.blurSize}px ${rowItemProps?.shadowSize}px ${rowItemProps?.shadowColor}`
47
+ : '',
47
48
  marginRight: styleGroup === 1 ? transformValueUnit(itemGap) : 0,
48
49
  }"
49
50
  :class="{
@@ -55,12 +56,12 @@
55
56
  :style="{
56
57
  width: iconSize + 'rpx',
57
58
  height: iconSize + 'rpx',
58
- borderRadius: transformValueUnit(iconRadius),
59
+ borderRadius: iconRadius + 'px',
59
60
  border:
60
61
  iconBorderColor && iconBorderWidth
61
- ? `${transformValueUnit(iconBorderWidth)} solid ${iconBorderColor}`
62
+ ? `${iconBorderWidth}px solid ${iconBorderColor}`
62
63
  : '',
63
- padding: transformValueUnit(iconPadding),
64
+ padding: iconPadding + 'px',
64
65
  boxSizing: 'border-box',
65
66
  display: 'flex',
66
67
  alignItems: 'center',
@@ -185,12 +186,8 @@ const renderItems = computed(() => {
185
186
  }
186
187
 
187
188
  .mutil-row {
188
- :deep(.item) {
189
- justify-content: flex-start;
190
- }
191
189
  :deep(.title) {
192
- flex: 1;
193
- text-align: start;
190
+ flex: initial;
194
191
  }
195
192
  }
196
193
  .cell {
@@ -201,7 +198,6 @@ const renderItems = computed(() => {
201
198
  flex-direction: row;
202
199
  }
203
200
  :deep(.title) {
204
- flex: 1;
205
201
  text-align: start;
206
202
  margin-left: 24rpx;
207
203
  }
@@ -58,16 +58,18 @@ export interface LcbImgNavProps extends LcbBlockProps {
58
58
  titleKey?: string
59
59
  titleBottom?: number
60
60
 
61
- itemBgColor?: string
62
- itemRadius?: number
63
61
  itemVerticalPadding?: number
64
62
  itemHorizontalPadding?: number
65
63
  itemGap?: number
66
64
  itemFlexMode?: 'row' | 'column'
67
- /** 阴影颜色 */
68
- itemShadowColor?: string
69
- /** 阴影大小 */
70
- itemShadowSize?: number
71
- /** 模糊大小 */
72
- itemBlurSize?: number
65
+ rowItemProps?: {
66
+ /** 阴影颜色 */
67
+ shadowColor?: string
68
+ /** 阴影大小 */
69
+ shadowSize?: number
70
+ /** 模糊大小 */
71
+ blurSize?: number
72
+ backgroundColor?: string
73
+ borderRadius?: number
74
+ }
73
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.46",
3
+ "version": "0.7.47",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -53,16 +53,18 @@ export interface LcbImgNavProps extends LcbBlockProps {
53
53
  urlKey?: string
54
54
  titleKey?: string
55
55
  titleBottom?: number
56
- itemBgColor?: string
57
- itemRadius?: number
58
56
  itemVerticalPadding?: number
59
57
  itemHorizontalPadding?: number
60
58
  itemGap?: number
61
59
  itemFlexMode?: 'row' | 'column'
62
- /** 阴影颜色 */
63
- itemShadowColor?: string
64
- /** 阴影大小 */
65
- itemShadowSize?: number
66
- /** 模糊大小 */
67
- itemBlurSize?: number
60
+ rowItemProps?: {
61
+ /** 阴影颜色 */
62
+ shadowColor?: string
63
+ /** 阴影大小 */
64
+ shadowSize?: number
65
+ /** 模糊大小 */
66
+ blurSize?: number
67
+ backgroundColor?: string
68
+ borderRadius?: number
69
+ }
68
70
  }
@@ -39,12 +39,12 @@ declare const _default: import('vue').DefineComponent<
39
39
  >,
40
40
  {
41
41
  gap: number
42
- itemRadius: number
43
42
  itemVerticalPadding: number
44
43
  itemHorizontalPadding: number
45
44
  itemFontSize: number
46
45
  tagsMode: 'scroll' | 'tiled'
47
46
  itemBackgroundColor: string
47
+ itemRadius: number
48
48
  },
49
49
  {}
50
50
  >