1
- import {
2
- ContainerStyleType ,
3
- } from "comps/controls/styleControlConstants" ;
1
+ import { ContainerStyleType } from "comps/controls/styleControlConstants" ;
4
2
import { EditorContext } from "comps/editorState" ;
5
3
import { BackgroundColorContext } from "comps/utils/backgroundColorContext" ;
6
4
import { HintPlaceHolder , ScrollBar } from "lowcoder-design" ;
@@ -122,19 +120,24 @@ export function ShapeTriContainer(props: TriContainerProps) {
122
120
} }
123
121
hideScrollbar = { ! scrollbars }
124
122
>
125
- < div style = { { position : "relative" } } >
123
+ < div style = { { position : "relative" , height : "100%" } } >
124
+ < Coolshape
125
+ type = { shape ?. value as any }
126
+ index = { shape . index }
127
+ styles = { {
128
+ position : "absolute" ,
129
+ top : "0" ,
130
+ left : "50%" ,
131
+ transform : "translateX(-50%)" ,
132
+ } }
133
+ />
126
134
< BodyInnerGrid
127
- $showBorder = { showHeader }
135
+ $showBorder = { false }
128
136
{ ...otherBodyProps }
129
137
items = { gridItemCompToGridItems ( bodyItems ) }
130
138
autoHeight = { container . autoHeight }
131
139
emptyRows = { 14 }
132
- minHeight = { showHeader ? "143px" : "142px" }
133
- containerPadding = {
134
- ( showHeader && showFooter ) || showHeader
135
- ? [ paddingWidth , 11.5 ]
136
- : [ paddingWidth , 11 ]
137
- }
140
+ minHeight = { "142px" }
138
141
hintPlaceholder = { props . hintPlaceholder ?? HintPlaceHolder }
139
142
$backgroundColor = { bodyStyle ?. background || "transparent" }
140
143
$borderColor = { style ?. border }
@@ -145,20 +148,9 @@ export function ShapeTriContainer(props: TriContainerProps) {
145
148
$backgroundImagePosition = { bodyStyle ?. backgroundImagePosition }
146
149
$backgroundImageOrigin = { bodyStyle ?. backgroundImageOrigin }
147
150
style = { {
148
- padding : bodyStyle . containerBodyPadding ,
149
151
zIndex : 999 ,
150
152
} }
151
153
/>
152
- < Coolshape
153
- type = { shape ?. value as any }
154
- index = { shape . index }
155
- styles = { {
156
- position : "absolute" ,
157
- top : "0" ,
158
- left : "50%" ,
159
- transform : "translateX(-50%)" ,
160
- } }
161
- />
162
154
</ div >
163
155
</ ScrollBar >
164
156
</ BackgroundColorContext . Provider >
0 commit comments