@@ -32,74 +32,73 @@ const Warpper = styled.div<{
32
32
} > `
33
33
height: 100%;
34
34
width: 100%;
35
- .ant-card-small > .ant-card-head {
36
- background-color: ${ ( props ) => props . $headerStyle ?. background } !important;
37
- border: ${ ( props ) => props . $headerStyle ?. border } ;
38
- border-style: ${ ( props ) => props . $headerStyle ?. borderStyle } ;
39
- border-width: ${ ( props ) => props . $headerStyle ?. borderWidth } ;
40
- border-radius: ${ ( props ) => props . $headerStyle ?. radius } ;
41
- font-size: ${ ( props ) => props . $headerStyle ?. textSize } ;
42
- font-style: ${ ( props ) => props . $headerStyle ?. fontStyle } ;
43
- font-family: ${ ( props ) => props . $headerStyle ?. fontFamily } ;
44
- font-weight: ${ ( props ) => props . $headerStyle ?. textWeight } ;
45
- text-transform: ${ ( props ) => props . $headerStyle ?. textTransform } ;
46
- text-decoration: ${ ( props ) => props . $headerStyle ?. textDecoration } ;
47
- color: ${ ( props ) => props . $headerStyle ?. text } ;
48
- rotate: ${ ( props ) => props . $headerStyle ?. rotation } ;
49
- margin: ${ ( props ) => props . $headerStyle ?. margin } ;
50
- padding: ${ ( props ) => props . $headerStyle ?. padding } ;
51
- }
35
+ .ant-card-small >.ant-card-head {
36
+ background-color: ${ props => props . $headerStyle ?. background } !important;
37
+ border: ${ props => props . $headerStyle ?. border } ;
38
+ border-style: ${ props => props . $headerStyle ?. borderStyle } ;
39
+ border-width: ${ props => props . $headerStyle ?. borderWidth } ;
40
+ border-radius: ${ props => props . $headerStyle ?. radius } ;
41
+ font-size: ${ props => props . $headerStyle ?. textSize } ;
42
+ font-style: ${ props => props . $headerStyle ?. fontStyle } ;
43
+ font-family: ${ props => props . $headerStyle ?. fontFamily } ;
44
+ font-weight: ${ props => props . $headerStyle ?. textWeight } ;
45
+ text-transform: ${ props => props . $headerStyle ?. textTransform } ;
46
+ text-decoration: ${ props => props . $headerStyle ?. textDecoration } ;
47
+ color: ${ props => props . $headerStyle ?. text } ;
48
+ rotate: ${ props => props . $headerStyle ?. rotation } ;
49
+ margin: ${ props => props . $headerStyle ?. margin } ;
50
+ padding: ${ props => props . $headerStyle ?. padding } ;
52
51
.ant-card .ant-card-actions {
53
- border-top: 1px solid ${ ( props ) => props . $style ?. border } ;
52
+ border-top: 1px solid ${ props => props . $style ?. border } ;
54
53
}
55
- .ant-card .ant-card-actions > li:not(:last-child) {
56
- border-inline-end: 1px solid ${ ( props ) => props . $style ?. border } ;
54
+ .ant-card .ant-card-actions> li:not(:last-child) {
55
+ border-inline-end: 1px solid ${ props => props . $style ?. border } ;
57
56
}
58
57
.ant-card .ant-card-actions {
59
- background-color: ${ ( props ) => props . $style ?. background } ;
58
+ background-color: ${ props => props . $style ?. background } ;
60
59
}
61
60
.ant-card .ant-card-body {
62
- background-color: ${ ( props ) => props . $bodyStyle ?. background } !important;
63
- border: ${ ( props ) => props . $bodyStyle ?. border } ;
64
- border-style: ${ ( props ) => props . $bodyStyle ?. borderStyle } ;
65
- border-width: ${ ( props ) => props . $bodyStyle ?. borderWidth } ;
66
- border-radius: ${ ( props ) => props . $bodyStyle ?. radius } ;
67
- rotate: ${ ( props ) => props . $bodyStyle ?. rotation } ;
68
- margin: ${ ( props ) => props . $bodyStyle ?. margin } ;
69
- padding: ${ ( props ) => props . $bodyStyle ?. padding } ;
61
+ background-color: ${ props => props . $bodyStyle ?. background } !important;
62
+ border: ${ props => props . $bodyStyle ?. border } ;
63
+ border-style: ${ props => props . $bodyStyle ?. borderStyle } ;
64
+ border-width: ${ props => props . $bodyStyle ?. borderWidth } ;
65
+ border-radius: ${ props => props . $bodyStyle ?. radius } ;
66
+ rotate: ${ props => props . $bodyStyle ?. rotation } ;
67
+ margin: ${ props => props . $bodyStyle ?. margin } ;
68
+ padding: ${ props => props . $bodyStyle ?. padding } ;
70
69
}
71
70
.ant-card {
72
71
display: flex;
73
72
flex-direction: column;
74
73
justify-content: space-between;
75
- background-color: ${ ( props ) => props . $style ?. background } ;
76
- border: ${ ( props ) => props . $style ?. border } ;
77
- border-style: ${ ( props ) => props . $style ?. borderStyle } ;
78
- border-radius: ${ ( props ) => props . $style ?. radius } ;
79
- border-width: ${ ( props ) => props . $style ?. borderWidth } ;
74
+ background-color: ${ props => props . $style ?. background } ;
75
+ border: ${ props => props . $style ?. border } ;
76
+ border-style: ${ props => props . $style ?. borderStyle } ;
77
+ border-radius: ${ props => props . $style ?. radius } ;
78
+ border-width: ${ props => props . $style ?. borderWidth } ;
80
79
${ props => props . $animationStyle }
81
80
}
82
81
.ant-card-body {
83
- display: ${ ( props ) => ( props . $showMate ? '' : 'none' ) } ;
84
- height: ${ ( props ) => ( props . $cardType == 'custom' ? '100%' : 'auto' ) } ;
82
+ display: ${ props => props . $showMate ? '' : 'none' } ;
83
+ height: ${ props => props . $cardType == 'custom' ? '100%' : 'auto' } ;
85
84
}
86
- .ant-card-body .ant-card-meta .ant-card-meta-title {
87
- color: ${ ( props ) => props . $bodyStyle ?. text } !important;
88
- font-size: ${ ( props ) => props . $bodyStyle ?. textSize } ;
89
- font-style: ${ ( props ) => props . $bodyStyle ?. fontStyle } ;
90
- font-family: ${ ( props ) => props . $bodyStyle ?. fontFamily } ;
91
- font-weight: ${ ( props ) => props . $bodyStyle ?. textWeight } ;
92
- text-transform: ${ ( props ) => props . $bodyStyle ?. textTransform } ;
93
- text-decoration: ${ ( props ) => props . $bodyStyle ?. textDecoration } ;
85
+ .ant-card-body .ant-card-meta .ant-card-meta-title{
86
+ color: ${ props => props . $bodyStyle ?. text } !important;
87
+ font-size: ${ props => props . $bodyStyle ?. textSize } ;
88
+ font-style: ${ props => props . $bodyStyle ?. fontStyle } ;
89
+ font-family: ${ props => props . $bodyStyle ?. fontFamily } ;
90
+ font-weight: ${ props => props . $bodyStyle ?. textWeight } ;
91
+ text-transform: ${ props => props . $bodyStyle ?. textTransform } ;
92
+ text-decoration: ${ props => props . $bodyStyle ?. textDecoration } ;
94
93
}
95
- .ant-card-body .ant-card-meta .ant-card-meta-description {
96
- color: ${ ( props ) => props . $bodyStyle ?. text } !important;
97
- font-size: ${ ( props ) => props . $bodyStyle ?. textSize } ;
98
- font-style: ${ ( props ) => props . $bodyStyle ?. fontStyle } ;
99
- font-family: ${ ( props ) => props . $bodyStyle ?. fontFamily } ;
100
- font-weight: ${ ( props ) => props . $bodyStyle ?. textWeight } ;
101
- text-transform: ${ ( props ) => props . $bodyStyle ?. textTransform } ;
102
- text-decoration: ${ ( props ) => props . $bodyStyle ?. textDecoration } ;
94
+ .ant-card-body .ant-card-meta .ant-card-meta-description{
95
+ color: ${ props => props . $bodyStyle ?. text } !important;
96
+ font-size: ${ props => props . $bodyStyle ?. textSize } ;
97
+ font-style: ${ props => props . $bodyStyle ?. fontStyle } ;
98
+ font-family: ${ props => props . $bodyStyle ?. fontFamily } ;
99
+ font-weight: ${ props => props . $bodyStyle ?. textWeight } ;
100
+ text-transform: ${ props => props . $bodyStyle ?. textTransform } ;
101
+ text-decoration: ${ props => props . $bodyStyle ?. textDecoration } ;
103
102
}
104
103
` ;
105
104
@@ -168,10 +167,7 @@ export const ContainerBaseComp = (function () {
168
167
extraTitle : withDefault ( StringControl , trans ( 'card.more' ) ) ,
169
168
cardType : dropdownControl ( cardTypeOption , 'common' ) ,
170
169
CoverImg : BoolControl . DEFAULT_TRUE ,
171
- imgSrc : withDefault (
172
- StringControl ,
173
- 'https://lowcoder.cloud/images/e0a89736c6be4393893d2981ac1fd753.png'
174
- ) ,
170
+ imgSrc : withDefault ( StringControl , "https://lowcoder.cloud/images/e0a89736c6be4393893d2981ac1fd753.png" ) ,
175
171
imgHeight : withDefault ( StringControl , 'auto' ) ,
176
172
showMeta : BoolControl . DEFAULT_TRUE ,
177
173
metaTitle : withDefault ( StringControl , trans ( 'card.metaTitle' ) ) ,
0 commit comments