react-crud-mobile 1.0.629 → 1.0.631
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 +9 -1
- 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 +9 -1
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/elements/core/UIList.tsx +12 -3
|
@@ -771,6 +771,13 @@ function UIList(props) {
|
|
|
771
771
|
}) == null ? void 0 : _repeat$list[original.type];
|
|
772
772
|
var add = reactCrudUtils.ComponentUtils.getDefine(props, 'add');
|
|
773
773
|
var hideAddWhenEmpty = original.hideAddWhenEmpty;
|
|
774
|
+
var _useState = React.useState(0),
|
|
775
|
+
index = _useState[0],
|
|
776
|
+
setIndex = _useState[1];
|
|
777
|
+
scope.update = function () {
|
|
778
|
+
scope.updateIndex = ++index;
|
|
779
|
+
setIndex(index);
|
|
780
|
+
};
|
|
774
781
|
var getStyle = function getStyle(key, extra) {
|
|
775
782
|
return scope.getStyle(key, _extends({}, extra, styles[key]));
|
|
776
783
|
};
|
|
@@ -816,6 +823,7 @@ function UIList(props) {
|
|
|
816
823
|
children: empty
|
|
817
824
|
});
|
|
818
825
|
};
|
|
826
|
+
var keyData = scope.key('data');
|
|
819
827
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
820
828
|
children: [original.search !== false && /*#__PURE__*/jsxRuntime.jsx(UI.Text, {
|
|
821
829
|
placeholder: "Pesquisar...",
|
|
@@ -838,7 +846,7 @@ function UIList(props) {
|
|
|
838
846
|
}), isShowAdd() && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
839
847
|
children: add
|
|
840
848
|
})]
|
|
841
|
-
})]
|
|
849
|
+
}, keyData)]
|
|
842
850
|
});
|
|
843
851
|
}
|
|
844
852
|
var stylesList$1 = /*#__PURE__*/reactNative.StyleSheet.create({
|