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 {
11
11
} from "../containerComp/containerView" ;
12
12
import { TriContainerViewProps } from "../triContainerComp/triContainerCompBuilder" ;
13
13
import { Coolshape } from "coolshapes-react" ;
14
+ import { getBackgroundStyle } from "@lowcoder-ee/util/styleUtils" ;
14
15
15
16
const getStyle = ( style : ContainerStyleType ) => {
16
17
return css `
@@ -19,16 +20,8 @@ const getStyle = (style: ContainerStyleType) => {
19
20
border-radius : ${ style . radius } ;
20
21
overflow : hidden;
21
22
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 ) }
32
25
` ;
33
26
} ;
34
27
You can’t perform that action at this time.
0 commit comments