@tplc/business 0.4.128 → 0.4.130
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 +20 -0
- package/components/lcb-list/types.ts +6 -0
- package/components/lcb-product/types.ts +2 -0
- package/components/lcb-product-item/lcb-product-item.vue +15 -3
- package/components/lcb-product-item/types.ts +6 -0
- package/package.json +1 -1
- package/types/components/lcb-list/lcb-list.vue.d.ts +6 -0
- package/types/components/lcb-list/types.d.ts +6 -0
- package/types/components/lcb-product/types.d.ts +2 -0
- package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +18 -0
- package/types/components/lcb-product-item/types.d.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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.130](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.129...v0.4.130) (2025-06-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 新增product 上下内间距 ([38c0a45](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/38c0a45eec20cf178a20efbbb5fdb81288a808cf))
|
|
11
|
+
* 新增卡片样式 ([e626818](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e62681866d4cac8344d7cbcd19cd3facd0d49611))
|
|
12
|
+
|
|
13
|
+
### [0.4.129](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.127...v0.4.129) (2025-06-17)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
17
|
+
|
|
18
|
+
* **release:** 0.4.128 ([85a4bd7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/85a4bd7877408669d4ab44be9243e2bf4112094d))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
22
|
+
|
|
23
|
+
* pruduct border ([40232e2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/40232e2fe4f2240d2f0b44691e280d33f411184e))
|
|
24
|
+
|
|
5
25
|
### [0.4.128](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.126...v0.4.128) (2025-06-15)
|
|
6
26
|
|
|
7
27
|
|
|
@@ -23,6 +23,12 @@ export interface LcbListProps extends LcbBlockProps {
|
|
|
23
23
|
borderWidth?: number
|
|
24
24
|
borderColor?: string
|
|
25
25
|
borderMode?: 'full' | 'content'
|
|
26
|
+
itemVerticalPadding?: number
|
|
27
|
+
itemHorizontalPadding?: number
|
|
28
|
+
itemContentPt?: number
|
|
29
|
+
itemContentPr?: number
|
|
30
|
+
itemContentPb?: number
|
|
31
|
+
itemContentPl?: number
|
|
26
32
|
}
|
|
27
33
|
export interface Option {
|
|
28
34
|
label: string
|
|
@@ -53,6 +53,12 @@ const props = withDefaults(defineProps<LcbProductItemProps>(), {
|
|
|
53
53
|
shadowSize: 1,
|
|
54
54
|
shadowColor: '#D6D7DA',
|
|
55
55
|
blurSize: 5,
|
|
56
|
+
itemVerticalPadding: 0,
|
|
57
|
+
itemHorizontalPadding: 0,
|
|
58
|
+
itemContentPt: 20,
|
|
59
|
+
itemContentPr: 20,
|
|
60
|
+
itemContentPb: 20,
|
|
61
|
+
itemContentPl: 20,
|
|
56
62
|
})
|
|
57
63
|
const attrs = useAttrs() as Record<string, any>
|
|
58
64
|
provide('lcb-product-item-props', props)
|
|
@@ -114,7 +120,7 @@ const itemStyle = computed(() => {
|
|
|
114
120
|
...(props.borderMode === 'full' && attrs.listType === 'list' && !attrs.isLast
|
|
115
121
|
? borderStyle.value
|
|
116
122
|
: {}),
|
|
117
|
-
padding:
|
|
123
|
+
padding: `${transformValueUnit(props.itemVerticalPadding)} ${transformValueUnit(props.itemHorizontalPadding)}`,
|
|
118
124
|
}
|
|
119
125
|
})
|
|
120
126
|
</script>
|
|
@@ -153,11 +159,17 @@ const itemStyle = computed(() => {
|
|
|
153
159
|
</template>
|
|
154
160
|
</ItemValue>
|
|
155
161
|
<view
|
|
156
|
-
class="flex flex-col flex-1 text-26rpx overflow-hidden relative"
|
|
162
|
+
class="flex flex-col flex-1 text-26rpx overflow-hidden relative box-border"
|
|
157
163
|
:class="{
|
|
158
164
|
grayscale: attrs.rightBottomFlag,
|
|
159
165
|
}"
|
|
160
|
-
:style="
|
|
166
|
+
:style="{
|
|
167
|
+
...(props.borderMode === 'content' ? borderStyle : {}),
|
|
168
|
+
paddingTop: transformValueUnit(props.itemContentPt),
|
|
169
|
+
paddingRight: transformValueUnit(props.itemContentPr),
|
|
170
|
+
paddingBottom: transformValueUnit(props.itemContentPb),
|
|
171
|
+
paddingLeft: transformValueUnit(props.itemContentPl),
|
|
172
|
+
}"
|
|
161
173
|
>
|
|
162
174
|
<slot name="contentSection" />
|
|
163
175
|
<view class="flex flex-col gap-[5px] overflow-hidden">
|
|
@@ -129,4 +129,10 @@ export interface LcbProductItemProps {
|
|
|
129
129
|
borderWidth?: number
|
|
130
130
|
borderColor?: string
|
|
131
131
|
borderMode?: 'full' | 'content'
|
|
132
|
+
itemVerticalPadding?: number
|
|
133
|
+
itemHorizontalPadding?: number
|
|
134
|
+
itemContentPt?: number
|
|
135
|
+
itemContentPr?: number
|
|
136
|
+
itemContentPb?: number
|
|
137
|
+
itemContentPl?: number
|
|
132
138
|
}
|
package/package.json
CHANGED
|
@@ -65,6 +65,8 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
65
65
|
imageHeight: number
|
|
66
66
|
dynamicScope: string
|
|
67
67
|
border: boolean
|
|
68
|
+
itemVerticalPadding: number
|
|
69
|
+
itemHorizontalPadding: number
|
|
68
70
|
listType: 'list' | 'horizontal' | 'grid' | 'waterfall'
|
|
69
71
|
pageFilterType: string
|
|
70
72
|
pageListProps: import('./components/FilterList/type').PageListProps
|
|
@@ -74,6 +76,10 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
74
76
|
layoutType: 'vertical' | 'horizontal'
|
|
75
77
|
itemWidth: number
|
|
76
78
|
borderMode: 'full' | 'content'
|
|
79
|
+
itemContentPt: number
|
|
80
|
+
itemContentPr: number
|
|
81
|
+
itemContentPb: number
|
|
82
|
+
itemContentPl: number
|
|
77
83
|
},
|
|
78
84
|
{}
|
|
79
85
|
>
|
|
@@ -21,6 +21,12 @@ export interface LcbListProps extends LcbBlockProps {
|
|
|
21
21
|
borderWidth?: number
|
|
22
22
|
borderColor?: string
|
|
23
23
|
borderMode?: 'full' | 'content'
|
|
24
|
+
itemVerticalPadding?: number
|
|
25
|
+
itemHorizontalPadding?: number
|
|
26
|
+
itemContentPt?: number
|
|
27
|
+
itemContentPr?: number
|
|
28
|
+
itemContentPb?: number
|
|
29
|
+
itemContentPl?: number
|
|
24
30
|
}
|
|
25
31
|
export interface Option {
|
|
26
32
|
label: string
|
|
@@ -109,6 +109,12 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
109
109
|
shadowSize: number
|
|
110
110
|
shadowColor: string
|
|
111
111
|
blurSize: number
|
|
112
|
+
itemVerticalPadding: number
|
|
113
|
+
itemHorizontalPadding: number
|
|
114
|
+
itemContentPt: number
|
|
115
|
+
itemContentPr: number
|
|
116
|
+
itemContentPb: number
|
|
117
|
+
itemContentPl: number
|
|
112
118
|
}
|
|
113
119
|
>,
|
|
114
120
|
{},
|
|
@@ -164,6 +170,12 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
164
170
|
shadowSize: number
|
|
165
171
|
shadowColor: string
|
|
166
172
|
blurSize: number
|
|
173
|
+
itemVerticalPadding: number
|
|
174
|
+
itemHorizontalPadding: number
|
|
175
|
+
itemContentPt: number
|
|
176
|
+
itemContentPr: number
|
|
177
|
+
itemContentPb: number
|
|
178
|
+
itemContentPl: number
|
|
167
179
|
}
|
|
168
180
|
>
|
|
169
181
|
>
|
|
@@ -173,8 +185,14 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
173
185
|
shadowSize: number
|
|
174
186
|
blurSize: number
|
|
175
187
|
borderRadius: number
|
|
188
|
+
itemVerticalPadding: number
|
|
189
|
+
itemHorizontalPadding: number
|
|
176
190
|
titleLineClamp: number
|
|
177
191
|
layoutType: 'vertical' | 'horizontal'
|
|
192
|
+
itemContentPt: number
|
|
193
|
+
itemContentPr: number
|
|
194
|
+
itemContentPb: number
|
|
195
|
+
itemContentPl: number
|
|
178
196
|
priceUnit: any
|
|
179
197
|
scribePriceUnit: any
|
|
180
198
|
tagOverflowWrap: boolean
|
|
@@ -122,4 +122,10 @@ export interface LcbProductItemProps {
|
|
|
122
122
|
borderWidth?: number
|
|
123
123
|
borderColor?: string
|
|
124
124
|
borderMode?: 'full' | 'content'
|
|
125
|
+
itemVerticalPadding?: number
|
|
126
|
+
itemHorizontalPadding?: number
|
|
127
|
+
itemContentPt?: number
|
|
128
|
+
itemContentPr?: number
|
|
129
|
+
itemContentPb?: number
|
|
130
|
+
itemContentPl?: number
|
|
125
131
|
}
|