@tplc/business 0.0.55 → 0.0.57
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 +15 -0
- package/components/lcb-action-view/lcb-action-view.vue +1 -0
- package/components/lcb-grid/lcb-grid.vue +56 -20
- package/components/lcb-grid/types.ts +8 -0
- package/components/lcb-title/lcb-title.vue +3 -2
- package/components/lcb-title/types.ts +6 -0
- package/package.json +1 -1
- package/types/components/lcb-grid/lcb-grid.vue.d.ts +12 -3
- package/types/components/lcb-grid/types.d.ts +8 -0
- package/types/components/lcb-title/lcb-title.vue.d.ts +8 -0
- package/types/components/lcb-title/types.d.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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.0.57](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.56...v0.0.57) (2024-11-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* version 0.0.56 ([3a13a45](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3a13a4574d37d9f1b53b42c36ce5601498d6f2c6))
|
|
11
|
+
|
|
12
|
+
### [0.0.56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.55...v0.0.56) (2024-11-03)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* shadow ([d2de6bf](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d2de6bf135619c73db1a6a1cc027b1ba94002228))
|
|
18
|
+
* 丰富grid ([e306107](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e306107d2964146f047862b5c3e7e5f8a368ae81))
|
|
19
|
+
|
|
5
20
|
### [0.0.55](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.54...v0.0.55) (2024-11-02)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -1,23 +1,56 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
<view
|
|
3
|
+
class="grid"
|
|
4
|
+
:style="{
|
|
5
|
+
'grid-template-columns': `repeat(${cols}, minmax(0, 1fr))`,
|
|
6
|
+
'grid-gap': transformValueUnit(gap),
|
|
7
|
+
gap: transformValueUnit(gap),
|
|
8
|
+
margin: `0 ${transformValueUnit(marginHorizontal)}`,
|
|
9
|
+
}"
|
|
10
|
+
>
|
|
11
|
+
<lcb-action-view v-for="(item, index) in items" :key="index" v-bind="item.link">
|
|
12
|
+
<view
|
|
13
|
+
class="flex flex-col overflow-hidden box-border"
|
|
14
|
+
:style="{
|
|
15
|
+
borderRadius: transformValueUnit(radius),
|
|
16
|
+
boxShadow:
|
|
17
|
+
shadowColor && shadowSize
|
|
18
|
+
? `${shadowColor} 0px ${shadowSize}rpx ${blurSize}rpx 0px `
|
|
19
|
+
: '',
|
|
20
|
+
}"
|
|
21
|
+
>
|
|
22
|
+
<view
|
|
23
|
+
:style="{
|
|
24
|
+
backgroundColor: imgBgColor,
|
|
25
|
+
padding: transformValueUnit(imgPadding),
|
|
26
|
+
}"
|
|
27
|
+
>
|
|
28
|
+
<wd-img
|
|
29
|
+
:src="item.url"
|
|
30
|
+
:height="transformValueUnit(height)"
|
|
31
|
+
:radius="transformValueUnit(imgRadius)"
|
|
32
|
+
:width="width ? transformValueUnit(width) : '100%'"
|
|
33
|
+
mode="aspectFill"
|
|
34
|
+
custom-class="!inline-block"
|
|
35
|
+
/>
|
|
36
|
+
</view>
|
|
37
|
+
|
|
38
|
+
<view
|
|
39
|
+
v-if="item.title"
|
|
40
|
+
class="w-full box-border"
|
|
41
|
+
:style="{
|
|
42
|
+
textAlign,
|
|
43
|
+
backgroundColor: textBgColor,
|
|
44
|
+
color,
|
|
45
|
+
fontSize: transformValueUnit(fontSize),
|
|
46
|
+
padding: `${transformValueUnit(textPV)} ${transformValueUnit(textPH)}`,
|
|
47
|
+
}"
|
|
48
|
+
>
|
|
49
|
+
{{ item.title }}
|
|
50
|
+
</view>
|
|
51
|
+
</view>
|
|
52
|
+
</lcb-action-view>
|
|
53
|
+
</view>
|
|
21
54
|
</template>
|
|
22
55
|
|
|
23
56
|
<script setup lang="ts">
|
|
@@ -35,7 +68,10 @@ withDefaults(defineProps<LcbGridProps>(), {
|
|
|
35
68
|
marginHorizontal: 24,
|
|
36
69
|
height: 100,
|
|
37
70
|
cols: 2,
|
|
38
|
-
|
|
71
|
+
gap: 16,
|
|
72
|
+
textAlign: 'center',
|
|
73
|
+
imgRadius: 8,
|
|
74
|
+
fontSize: 28,
|
|
39
75
|
})
|
|
40
76
|
</script>
|
|
41
77
|
<style lang="scss" scoped></style>
|
|
@@ -3,6 +3,14 @@ import { ActionView } from 'action'
|
|
|
3
3
|
export interface LcbGridProps extends LcbBlockProps {
|
|
4
4
|
items?: ActionView[]
|
|
5
5
|
height?: number
|
|
6
|
+
width?: number
|
|
6
7
|
cols?: number
|
|
7
8
|
gap?: number
|
|
9
|
+
imgRadius?: number
|
|
10
|
+
imgBgColor?: string
|
|
11
|
+
imgPadding?: number
|
|
12
|
+
textAlign?: 'left' | 'center' | 'right'
|
|
13
|
+
textBgColor?: string
|
|
14
|
+
textPH?: number
|
|
15
|
+
textPV?: number
|
|
8
16
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
...$props,
|
|
5
5
|
}"
|
|
6
6
|
>
|
|
7
|
-
<lcb-action-view customClass="
|
|
7
|
+
<lcb-action-view :customClass="`!flex items-center ${justify}`" v-bind="action">
|
|
8
8
|
<text
|
|
9
9
|
:style="{
|
|
10
10
|
fontWeight,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
>
|
|
13
13
|
{{ title }}
|
|
14
14
|
</text>
|
|
15
|
-
<text class="text-24rpx ml-3">
|
|
15
|
+
<text class="text-24rpx ml-3" v-if="hint">
|
|
16
16
|
{{ hint }}
|
|
17
17
|
</text>
|
|
18
18
|
<text v-if="showMore" class="flex-1 text-end text-24rpx">更多</text>
|
|
@@ -36,6 +36,7 @@ withDefaults(defineProps<LcbTitleProps>(), {
|
|
|
36
36
|
fontSize: 28,
|
|
37
37
|
color: '#333',
|
|
38
38
|
title: '标题',
|
|
39
|
+
justify: 'justify-start',
|
|
39
40
|
})
|
|
40
41
|
</script>
|
|
41
42
|
<style lang="scss" scoped></style>
|
package/package.json
CHANGED
|
@@ -6,7 +6,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
6
6
|
marginHorizontal: number
|
|
7
7
|
height: number
|
|
8
8
|
cols: number
|
|
9
|
-
|
|
9
|
+
gap: number
|
|
10
|
+
textAlign: string
|
|
11
|
+
imgRadius: number
|
|
12
|
+
fontSize: number
|
|
10
13
|
}
|
|
11
14
|
>,
|
|
12
15
|
{},
|
|
@@ -26,16 +29,22 @@ declare const _default: import('vue').DefineComponent<
|
|
|
26
29
|
marginHorizontal: number
|
|
27
30
|
height: number
|
|
28
31
|
cols: number
|
|
29
|
-
|
|
32
|
+
gap: number
|
|
33
|
+
textAlign: string
|
|
34
|
+
imgRadius: number
|
|
35
|
+
fontSize: number
|
|
30
36
|
}
|
|
31
37
|
>
|
|
32
38
|
>
|
|
33
39
|
>,
|
|
34
40
|
{
|
|
35
41
|
height: number
|
|
36
|
-
radius: number
|
|
37
42
|
marginHorizontal: number
|
|
43
|
+
fontSize: number
|
|
44
|
+
textAlign: 'left' | 'center' | 'right'
|
|
38
45
|
cols: number
|
|
46
|
+
gap: number
|
|
47
|
+
imgRadius: number
|
|
39
48
|
},
|
|
40
49
|
{}
|
|
41
50
|
>
|
|
@@ -3,6 +3,14 @@ import { ActionView } from 'action'
|
|
|
3
3
|
export interface LcbGridProps extends LcbBlockProps {
|
|
4
4
|
items?: ActionView[]
|
|
5
5
|
height?: number
|
|
6
|
+
width?: number
|
|
6
7
|
cols?: number
|
|
7
8
|
gap?: number
|
|
9
|
+
imgRadius?: number
|
|
10
|
+
imgBgColor?: string
|
|
11
|
+
imgPadding?: number
|
|
12
|
+
textAlign?: 'left' | 'center' | 'right'
|
|
13
|
+
textBgColor?: string
|
|
14
|
+
textPH?: number
|
|
15
|
+
textPV?: number
|
|
8
16
|
}
|
|
@@ -8,6 +8,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
8
8
|
fontSize: number
|
|
9
9
|
color: string
|
|
10
10
|
title: string
|
|
11
|
+
justify: string
|
|
11
12
|
}
|
|
12
13
|
>,
|
|
13
14
|
{},
|
|
@@ -29,6 +30,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
29
30
|
fontSize: number
|
|
30
31
|
color: string
|
|
31
32
|
title: string
|
|
33
|
+
justify: string
|
|
32
34
|
}
|
|
33
35
|
>
|
|
34
36
|
>
|
|
@@ -38,6 +40,12 @@ declare const _default: import('vue').DefineComponent<
|
|
|
38
40
|
color: string
|
|
39
41
|
marginHorizontal: number
|
|
40
42
|
fontSize: number
|
|
43
|
+
justify:
|
|
44
|
+
| 'justify-start'
|
|
45
|
+
| 'justify-end'
|
|
46
|
+
| 'justify-center'
|
|
47
|
+
| 'justify-between'
|
|
48
|
+
| 'justify-around'
|
|
41
49
|
fontWeight: number
|
|
42
50
|
},
|
|
43
51
|
{}
|