@@ -7,16 +7,22 @@ import {
7
7
} from "../triContainerComp/triContainerCompBuilder" ;
8
8
import { disabledPropertyView , hiddenPropertyView } from "comps/utils/propertyUtils" ;
9
9
import { trans } from "i18n" ;
10
- import { BoolCodeControl } from "comps/controls/codeControl" ;
11
- import { BoolControl } from "@lowcoder-ee/ comps/controls/boolControl" ;
10
+ import { BoolCodeControl , StringControl } from "comps/controls/codeControl" ;
11
+ import { BoolControl } from "comps/controls/boolControl" ;
12
12
import { useContext , useEffect , useRef , useState } from "react" ;
13
13
import { EditorContext } from "comps/editorState" ;
14
- import { ButtonEventHandlerControl , IconControl , MultiCompBuilder , CardStyleType , StringControl , clickEvent , dropdownControl , eventHandlerControl , heightCalculator , optionsControl , refreshEvent , styleControl , widthCalculator , withDefault , CardStyle , CardEventHandlerControl } from "@lowcoder-ee/index.sdk" ;
15
14
import { Card } from "antd" ;
16
15
import styled from "styled-components" ;
16
+ import { CardStyle , CardStyleType } from "comps/controls/styleControlConstants" ;
17
+ import { MultiCompBuilder , withDefault } from "comps/generators" ;
18
+ import { IconControl } from "comps/controls/iconControl" ;
19
+ import { ButtonEventHandlerControl , CardEventHandlerControl , clickEvent , refreshEvent } from "comps/controls/eventHandlerControl" ;
20
+ import { optionsControl } from "comps/controls/optionsControl" ;
21
+ import { dropdownControl } from "comps/controls/dropdownControl" ;
22
+ import { styleControl } from "comps/controls/styleControl" ;
17
23
const { Meta } = Card ;
18
24
19
- const Warpper = styled . div < { $style : CardStyleType | undefined , showMate : boolean , cardType : string } > `
25
+ const Warpper = styled . div < { $style : CardStyleType | undefined , $ showMate : boolean , $ cardType : string } > `
20
26
height: 100%;
21
27
width: 100%;
22
28
.ant-card-small >.ant-card-head {
@@ -31,7 +37,7 @@ const Warpper = styled.div<{ $style: CardStyleType | undefined, showMate: boolea
31
37
border-inline-end: 1px solid ${ props => props . $style ?. border } ;
32
38
}
33
39
.ant-card-small >.ant-card-body {
34
- padding: ${ props => props . cardType == 'custom' ? '0px' : '10px' } ;
40
+ padding: ${ props => props . $ cardType == 'custom' ? '0px' : '10px' } ;
35
41
}
36
42
.ant-card .ant-card-head {
37
43
background-color: ${ props => props . $style ?. background } ;
@@ -44,7 +50,7 @@ const Warpper = styled.div<{ $style: CardStyleType | undefined, showMate: boolea
44
50
background-color: ${ props => props . $style ?. background } ;
45
51
}
46
52
.ant-card .ant-card-body {
47
- padding: ${ props => props . cardType == 'custom' ? '0px' : '10px' } ;
53
+ padding: ${ props => props . $ cardType == 'custom' ? '0px' : '10px' } ;
48
54
}
49
55
.ant-card {
50
56
display: flex;
@@ -53,8 +59,8 @@ const Warpper = styled.div<{ $style: CardStyleType | undefined, showMate: boolea
53
59
background-color: ${ props => props . $style ?. background } ;
54
60
}
55
61
.ant-card-body {
56
- display: ${ props => props . showMate ? '' : 'none' } ;
57
- height: ${ props => props . cardType == 'custom' ? '100%' : 'auto' } ;
62
+ display: ${ props => props . $ showMate ? '' : 'none' } ;
63
+ height: ${ props => props . $ cardType == 'custom' ? '100%' : 'auto' } ;
58
64
}
59
65
` ;
60
66
@@ -163,8 +169,8 @@ export const ContainerBaseComp = (function () {
163
169
< Warpper
164
170
ref = { conRef }
165
171
$style = { props . style }
166
- showMate = { props . showMeta || props . cardType == 'custom' }
167
- cardType = { props . cardType }
172
+ $ showMate= { props . showMeta || props . cardType == 'custom' }
173
+ $ cardType= { props . cardType }
168
174
onMouseEnter = { ( ) => props . onEvent ( 'focus' ) }
169
175
onMouseLeave = { ( ) => props . onEvent ( 'blur' ) }
170
176
onClick = { ( ) => props . onEvent ( 'click' ) }
0 commit comments