react-crud-mobile 1.0.613 → 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.
- package/dist/react-crud-mobile.cjs.development.js +22 -19
- 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 +22 -19
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIList.tsx +8 -5
|
@@ -4,6 +4,7 @@ import { StyleSheet, Text, TouchableHighlight, View } from 'react-native';
|
|
|
4
4
|
import UIListRow from './UIListRow';
|
|
5
5
|
import UI from '../UI';
|
|
6
6
|
import { Ionicons } from '@expo/vector-icons';
|
|
7
|
+
import UIChildren from '../UIChildren';
|
|
7
8
|
|
|
8
9
|
export default function UIList(props: ChildType) {
|
|
9
10
|
const scope = props.scope;
|
|
@@ -97,7 +98,9 @@ export default function UIList(props: ChildType) {
|
|
|
97
98
|
if (!original.click) {
|
|
98
99
|
return (
|
|
99
100
|
<View key={`k-${index}`} style={getRowStyle()}>
|
|
100
|
-
{
|
|
101
|
+
<UIChildren scope={row} crud={row.crud}>
|
|
102
|
+
{children}
|
|
103
|
+
</UIChildren>
|
|
101
104
|
</View>
|
|
102
105
|
);
|
|
103
106
|
}
|
|
@@ -111,7 +114,9 @@ export default function UIList(props: ChildType) {
|
|
|
111
114
|
onClick(item);
|
|
112
115
|
}}
|
|
113
116
|
>
|
|
114
|
-
{
|
|
117
|
+
<UIChildren scope={row} crud={row.crud}>
|
|
118
|
+
{children}
|
|
119
|
+
</UIChildren>
|
|
115
120
|
</TouchableHighlight>
|
|
116
121
|
);
|
|
117
122
|
};
|
|
@@ -130,9 +135,7 @@ export default function UIList(props: ChildType) {
|
|
|
130
135
|
<Empty />
|
|
131
136
|
{items.map((item: any, i: number) => (
|
|
132
137
|
<RowItem index={i} item={item}>
|
|
133
|
-
|
|
134
|
-
{props.children}
|
|
135
|
-
</UIListRow>
|
|
138
|
+
{props.children}
|
|
136
139
|
</RowItem>
|
|
137
140
|
))}
|
|
138
141
|
{isShowAdd() && <>{add}</>}
|