react-crud-mobile 1.3.412 → 1.3.413
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 +8 -13
- 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 -14
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIList.tsx +7 -10
|
@@ -1076,7 +1076,7 @@ function UIList(props) {
|
|
|
1076
1076
|
var add = reactCrudUtils.ComponentUtils.getDefine(props, 'add');
|
|
1077
1077
|
var hideAddWhenEmpty = original.hideAddWhenEmpty;
|
|
1078
1078
|
var hideEmpty = original.hideEmpty;
|
|
1079
|
-
//
|
|
1079
|
+
//v2
|
|
1080
1080
|
var getStyle = function getStyle(key, extra) {
|
|
1081
1081
|
return scope.getStyle(key, _extends({}, extra, styles[key]));
|
|
1082
1082
|
};
|
|
@@ -1158,18 +1158,13 @@ function UIList(props) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
return /*#__PURE__*/jsxRuntime.jsxs(reactNative.View, {
|
|
1160
1160
|
style: getContainerStyle(),
|
|
1161
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Empty, {}),
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
item: item,
|
|
1169
|
-
scope: scope,
|
|
1170
|
-
children: props.children
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1161
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Empty, {}), items.map(function (item, i) {
|
|
1162
|
+
return /*#__PURE__*/jsxRuntime.jsx(UIListRow, {
|
|
1163
|
+
index: i,
|
|
1164
|
+
item: item,
|
|
1165
|
+
scope: scope,
|
|
1166
|
+
children: props.children
|
|
1167
|
+
});
|
|
1173
1168
|
}), isShowAdd() && /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
1174
1169
|
children: add
|
|
1175
1170
|
})]
|