react-crud-mobile 1.0.612 → 1.0.614

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.
@@ -671,13 +671,6 @@ function UIList(props) {
671
671
  }) == null ? void 0 : _repeat$list[original.type];
672
672
  var add = reactCrudUtils.ComponentUtils.getDefine(props, 'add');
673
673
  var hideAddWhenEmpty = original.hideAddWhenEmpty;
674
- var onClick = function onClick(item) {
675
- scope.call('click', {
676
- value: item,
677
- item: item,
678
- edit: true
679
- });
680
- };
681
674
  var getStyle = function getStyle(key, extra) {
682
675
  return scope.getStyle(key, _extends({}, extra, styles[key]));
683
676
  };
@@ -725,7 +718,8 @@ function UIList(props) {
725
718
  };
726
719
  var RowItem = function RowItem(_ref) {
727
720
  var item = _ref.item,
728
- index = _ref.index;
721
+ index = _ref.index,
722
+ children = _ref.children;
729
723
  var name = "" + scope.key('row', index, '');
730
724
  var row = reactCrudUtils.ScopeUtils.create(_extends({}, original, {
731
725
  parent: scope,
@@ -742,12 +736,20 @@ function UIList(props) {
742
736
  }
743
737
  return css;
744
738
  };
739
+ var onClick = function onClick(item) {
740
+ row.call('click', {
741
+ value: item,
742
+ item: item,
743
+ edit: true
744
+ });
745
+ };
745
746
  if (!original.click) {
746
747
  return /*#__PURE__*/jsxRuntime.jsx(reactNative.View, {
747
748
  style: getRowStyle(),
748
749
  children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
749
750
  scope: row,
750
- children: props.children
751
+ crud: row.crud,
752
+ children: children
751
753
  })
752
754
  }, "k-" + index);
753
755
  }
@@ -760,7 +762,8 @@ function UIList(props) {
760
762
  },
761
763
  children: /*#__PURE__*/jsxRuntime.jsx(UIChildren, {
762
764
  scope: row,
763
- children: props.children
765
+ crud: row.crud,
766
+ children: children
764
767
  })
765
768
  }, "k-" + index);
766
769
  };
@@ -779,7 +782,8 @@ function UIList(props) {
779
782
  children: [/*#__PURE__*/jsxRuntime.jsx(Empty, {}), items.map(function (item, i) {
780
783
  return /*#__PURE__*/jsxRuntime.jsx(RowItem, {
781
784
  index: i,
782
- item: item
785
+ item: item,
786
+ children: props.children
783
787
  });
784
788
  }), isShowAdd() && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
785
789
  children: add