@tplc/business 0.7.45 → 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 +13 -0
- package/components/lcb-img-nav/lcb-img-nav.vue +36 -8
- package/components/lcb-img-nav/types.ts +7 -0
- package/components/lcb-notice/lcb-notice.vue +1 -0
- package/components/lcb-notice/types.ts +1 -0
- package/package.json +1 -1
- package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +6 -0
- package/types/components/lcb-img-nav/types.d.ts +7 -0
- package/types/components/lcb-notice/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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
|
+
|
|
5
18
|
### [0.7.45](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.41...v0.7.45) (2026-01-04)
|
|
6
19
|
|
|
7
20
|
|
|
@@ -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
|
-
|
|
45
|
-
|
|
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
|
|
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:
|
|
65
|
-
height:
|
|
66
|
-
borderRadius: iconRadius
|
|
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
|
package/package.json
CHANGED
|
@@ -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
|