@flozy/editor 1.4.7 → 1.4.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -31,9 +31,12 @@ const Grid = props => {
|
|
31
31
|
bgColor,
|
32
32
|
alignment,
|
33
33
|
backgroundImage,
|
34
|
-
borderColor,
|
35
34
|
size: elSize,
|
36
|
-
fgColor
|
35
|
+
fgColor,
|
36
|
+
borderWidth,
|
37
|
+
borderColor,
|
38
|
+
borderStyle,
|
39
|
+
borderRadius
|
37
40
|
} = element;
|
38
41
|
const {
|
39
42
|
left,
|
@@ -46,6 +49,12 @@ const Grid = props => {
|
|
46
49
|
horizantal,
|
47
50
|
flexDirection
|
48
51
|
} = alignment || {};
|
52
|
+
const {
|
53
|
+
topLeft,
|
54
|
+
topRight,
|
55
|
+
bottomLeft,
|
56
|
+
bottomRight
|
57
|
+
} = borderRadius || {};
|
49
58
|
const {
|
50
59
|
height: elHeight
|
51
60
|
} = elSize || {};
|
@@ -217,7 +226,10 @@ const Grid = props => {
|
|
217
226
|
background: bgColor,
|
218
227
|
alignContent: vertical,
|
219
228
|
backgroundImage: backgroundImage && backgroundImage !== "none" ? `url(${backgroundImage})` : "none",
|
220
|
-
|
229
|
+
borderColor: borderColor || "transparent",
|
230
|
+
borderWidth: borderWidth || "1px",
|
231
|
+
borderRadius: `${topLeft}px ${topRight}px ${bottomLeft}px ${bottomRight}px`,
|
232
|
+
borderStyle: borderStyle || "solid"
|
221
233
|
},
|
222
234
|
children: [fgColor && /*#__PURE__*/_jsx("div", {
|
223
235
|
style: {
|