react-crud-mobile 1.0.608 → 1.0.610
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.
- package/dist/react-crud-mobile.cjs.development.js +16 -7
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +16 -7
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIList.tsx +21 -11
|
@@ -705,13 +705,6 @@ function UIList(props) {
|
|
|
705
705
|
var getStyle = function getStyle(key, extra) {
|
|
706
706
|
return scope.getStyle(key, _extends({}, extra, styles[key]));
|
|
707
707
|
};
|
|
708
|
-
var getRowStyle = function getRowStyle(extra) {
|
|
709
|
-
var row = getStyle('row', {});
|
|
710
|
-
if (cols > 0) {
|
|
711
|
-
row.width = rowWidth;
|
|
712
|
-
}
|
|
713
|
-
return row;
|
|
714
|
-
};
|
|
715
708
|
var getContainerStyle = function getContainerStyle(extra) {
|
|
716
709
|
var row = getStyle('container', {});
|
|
717
710
|
if (cols > 1) {
|
|
@@ -758,6 +751,22 @@ function UIList(props) {
|
|
|
758
751
|
var item = _ref.item,
|
|
759
752
|
index = _ref.index,
|
|
760
753
|
children = _ref.children;
|
|
754
|
+
var name = "" + scope.key('row', index, '');
|
|
755
|
+
var row = reactCrudUtils.ScopeUtils.create(_extends({}, original, {
|
|
756
|
+
parent: scope,
|
|
757
|
+
name: name,
|
|
758
|
+
crud: scope.crud,
|
|
759
|
+
index: index,
|
|
760
|
+
type: 'row',
|
|
761
|
+
data: item
|
|
762
|
+
}));
|
|
763
|
+
var getRowStyle = function getRowStyle() {
|
|
764
|
+
var css = row.getStyle('row', _extends({}, styles.row));
|
|
765
|
+
if (cols > 0) {
|
|
766
|
+
css.width = rowWidth;
|
|
767
|
+
}
|
|
768
|
+
return css;
|
|
769
|
+
};
|
|
761
770
|
if (!original.click) {
|
|
762
771
|
return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
|
|
763
772
|
style: getRowStyle(),
|