File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
client/packages/lowcoder/src/comps/comps/shapeComp Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
1111} from "../containerComp/containerView" ;
1212import { TriContainerViewProps } from "../triContainerComp/triContainerCompBuilder" ;
1313import { Coolshape } from "coolshapes-react" ;
14+ import { getBackgroundStyle } from "@lowcoder-ee/util/styleUtils" ;
1415
1516const getStyle = ( style : ContainerStyleType ) => {
1617 return css `
@@ -19,16 +20,8 @@ const getStyle = (style: ContainerStyleType) => {
1920 border-radius : ${ style . radius } ;
2021 overflow : hidden;
2122 padding : ${ style . padding } ;
22- ${ style . background && `background-color: ${ style . background } ;` }
23- ${ style . backgroundImage && `background-image: ${ style . backgroundImage } ;` }
24- ${ style . backgroundImageRepeat &&
25- `background-repeat: ${ style . backgroundImageRepeat } ;` }
26- ${ style . backgroundImageSize &&
27- `background-size: ${ style . backgroundImageSize } ;` }
28- ${ style . backgroundImagePosition &&
29- `background-position: ${ style . backgroundImagePosition } ;` }
30- ${ style . backgroundImageOrigin &&
31- `background-origin: ${ style . backgroundImageOrigin } ;` }
23+
24+ ${ getBackgroundStyle ( style ) }
3225 ` ;
3326} ;
3427
You can’t perform that action at this time.
0 commit comments