@tplc/business 0.4.122 → 0.4.123
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 +9 -0
- package/components/lcb-list/types.ts +4 -0
- package/components/lcb-product/lcb-product.vue +1 -1
- package/components/lcb-product/types.ts +4 -0
- package/components/lcb-product-item/lcb-product-item.vue +10 -0
- package/components/lcb-product-item/types.ts +4 -0
- package/components/lcb-tabs/components/Imgs/index.vue +3 -4
- package/components/lcb-tabs/lcb-tabs.vue +1 -1
- package/components/lcb-tabs/types.ts +1 -1
- package/package.json +1 -1
- package/types/components/lcb-list/lcb-list.vue.d.ts +1 -0
- package/types/components/lcb-list/types.d.ts +3 -0
- package/types/components/lcb-product/types.d.ts +3 -0
- package/types/components/lcb-product-item/types.d.ts +3 -0
- package/types/components/lcb-tabs/lcb-tabs.vue.d.ts +3 -3
- package/types/components/lcb-tabs/types.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.4.123](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.122...v0.4.123) (2025-06-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 支持小程序provider ([9ed5502](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9ed550208b2fa5d90beb32238f170afef3723211))
|
|
11
|
+
* 新增数据 ([d162dec](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d162decf41744c97cf6c62182f6363f5d089ae46))
|
|
12
|
+
* 新增边框模式 ([cf9cc02](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cf9cc027d2442facf6d27cec91907b7c489dcfe6))
|
|
13
|
+
|
|
5
14
|
### [0.4.122](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.121...v0.4.122) (2025-05-24)
|
|
6
15
|
|
|
7
16
|
### [0.4.121](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.118...v0.4.121) (2025-05-24)
|
|
@@ -19,6 +19,10 @@ export interface LcbListProps extends LcbBlockProps {
|
|
|
19
19
|
itemWidth?: number // 列表项宽度
|
|
20
20
|
dynamicScope?: string
|
|
21
21
|
gap?: number
|
|
22
|
+
|
|
23
|
+
borderWidth?: number
|
|
24
|
+
borderColor?: string
|
|
25
|
+
borderMode?: 'full' | 'content'
|
|
22
26
|
}
|
|
23
27
|
export interface Option {
|
|
24
28
|
label: string
|
|
@@ -93,6 +93,14 @@ defineSlots<{
|
|
|
93
93
|
coverImgSection(): any
|
|
94
94
|
contentSection(): any
|
|
95
95
|
}>()
|
|
96
|
+
|
|
97
|
+
const borderStyle = computed(() => {
|
|
98
|
+
return {
|
|
99
|
+
borderWidth: transformValueUnit(props.borderWidth),
|
|
100
|
+
borderColor: props.borderColor,
|
|
101
|
+
borderStyle: 'solid',
|
|
102
|
+
}
|
|
103
|
+
})
|
|
96
104
|
const itemStyle = computed(() => {
|
|
97
105
|
return {
|
|
98
106
|
borderRadius: transformValueUnit(props.borderRadius),
|
|
@@ -100,6 +108,7 @@ const itemStyle = computed(() => {
|
|
|
100
108
|
props.shadowColor && props.shadowSize
|
|
101
109
|
? `0px 0px ${props.blurSize}px ${props.shadowSize}px ${props.shadowColor}`
|
|
102
110
|
: '',
|
|
111
|
+
...(props.borderMode === 'full' ? borderStyle.value : {}),
|
|
103
112
|
}
|
|
104
113
|
})
|
|
105
114
|
</script>
|
|
@@ -142,6 +151,7 @@ const itemStyle = computed(() => {
|
|
|
142
151
|
:class="{
|
|
143
152
|
grayscale: attrs.rightBottomFlag,
|
|
144
153
|
}"
|
|
154
|
+
:style="props.borderMode === 'content' ? borderStyle : {}"
|
|
145
155
|
>
|
|
146
156
|
<slot name="contentSection" />
|
|
147
157
|
<view class="flex flex-col gap-[5px] overflow-hidden">
|
|
@@ -19,16 +19,15 @@
|
|
|
19
19
|
}"
|
|
20
20
|
:style="{
|
|
21
21
|
fontSize: transformValueUnit(itemFontSize),
|
|
22
|
-
|
|
22
|
+
height: transformValueUnit(imgHeight),
|
|
23
23
|
gap: transformValueUnit(imgTitleGap),
|
|
24
24
|
color: current === index ? activeColor : inactiveColor,
|
|
25
25
|
}"
|
|
26
26
|
@click="handleTagClick(item.name, index)"
|
|
27
27
|
>
|
|
28
28
|
<wd-img
|
|
29
|
-
:
|
|
30
|
-
|
|
31
|
-
mode="widthFix"
|
|
29
|
+
:height="transformValueUnit(imgHeight)"
|
|
30
|
+
mode="heightFix"
|
|
32
31
|
:src="current === index ? item.activeUrl : item.inactiveUrl"
|
|
33
32
|
/>
|
|
34
33
|
<view v-if="showTitle" class="truncate px-2">{{ item.title }}</view>
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
6
6
|
itemFontSize: number
|
|
7
7
|
tagsMode: string
|
|
8
8
|
gap: number
|
|
9
|
-
|
|
9
|
+
imgHeight: number
|
|
10
10
|
}
|
|
11
11
|
>,
|
|
12
12
|
{},
|
|
@@ -26,16 +26,16 @@ declare const _default: import('vue').DefineComponent<
|
|
|
26
26
|
itemFontSize: number
|
|
27
27
|
tagsMode: string
|
|
28
28
|
gap: number
|
|
29
|
-
|
|
29
|
+
imgHeight: number
|
|
30
30
|
}
|
|
31
31
|
>
|
|
32
32
|
>
|
|
33
33
|
>,
|
|
34
34
|
{
|
|
35
|
-
imgWidth: number
|
|
36
35
|
gap: number
|
|
37
36
|
itemFontSize: number
|
|
38
37
|
tagsMode: 'scroll' | 'tiled'
|
|
38
|
+
imgHeight: number
|
|
39
39
|
},
|
|
40
40
|
{}
|
|
41
41
|
>
|