ronds-metadata 1.1.67 → 1.1.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -229,10 +229,13 @@ var TableArray = function TableArray(props) {
|
|
229
229
|
});
|
230
230
|
};
|
231
231
|
|
232
|
+
var getCellHeight = React.useCallback(function (_readonly) {
|
233
|
+
return _readonly ? 30 : 33;
|
234
|
+
}, []);
|
232
235
|
return /*#__PURE__*/React.createElement("div", {
|
233
236
|
style: {
|
234
237
|
width: '100%',
|
235
|
-
height: "".concat(rowNumber *
|
238
|
+
height: addButtonHidden || readonly ? "".concat(rowNumber * getCellHeight(readonly) + 45, "px") : "".concat(rowNumber * getCellHeight(readonly) + 45 + 40, "px")
|
236
239
|
}
|
237
240
|
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
238
241
|
name: name,
|
@@ -256,7 +259,7 @@ var TableArray = function TableArray(props) {
|
|
256
259
|
tableProps: {
|
257
260
|
scroll: {
|
258
261
|
x: '100%',
|
259
|
-
y: "".concat(rowNumber *
|
262
|
+
y: "".concat(rowNumber * getCellHeight(readonly) + 45, "px")
|
260
263
|
}
|
261
264
|
}
|
262
265
|
})));
|