react-crud-mobile 1.3.377 → 1.3.379
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 +3 -4
- 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 +3 -4
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIOrder.tsx +10 -7
@@ -1720,6 +1720,7 @@ var styles$9 = /*#__PURE__*/StyleSheet.create({
|
|
1720
1720
|
var ITEM_HEIGHT = 70;
|
1721
1721
|
function UIOrder(props) {
|
1722
1722
|
var scope = props.scope;
|
1723
|
+
var element = scope.original;
|
1723
1724
|
var initial = scope.getOptions();
|
1724
1725
|
var _useState = useState(initial),
|
1725
1726
|
items = _useState[0],
|
@@ -1888,7 +1889,7 @@ function UIOrder(props) {
|
|
1888
1889
|
}), /*#__PURE__*/jsx(Text, {
|
1889
1890
|
style: styles$a.itemText,
|
1890
1891
|
children: item.label
|
1891
|
-
}), /*#__PURE__*/jsx(TouchableOpacity, {
|
1892
|
+
}), element.remove && /*#__PURE__*/jsx(TouchableOpacity, {
|
1892
1893
|
onPress: function onPress() {
|
1893
1894
|
return removeItem(item.value);
|
1894
1895
|
},
|
@@ -1907,9 +1908,7 @@ function UIOrder(props) {
|
|
1907
1908
|
}
|
1908
1909
|
var styles$a = /*#__PURE__*/StyleSheet.create({
|
1909
1910
|
container: {
|
1910
|
-
flex: 1
|
1911
|
-
paddingHorizontal: 20,
|
1912
|
-
backgroundColor: '#f5f7fb'
|
1911
|
+
flex: 1
|
1913
1912
|
},
|
1914
1913
|
title: {
|
1915
1914
|
fontSize: 18,
|