react-crud-mobile 1.0.613 → 1.0.615
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 -20
- 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 -20
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIList.tsx +8 -6
|
@@ -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,21 +98,24 @@ 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
|
}
|
|
104
107
|
return (
|
|
105
108
|
<TouchableHighlight
|
|
106
109
|
key={`k-${index}`}
|
|
107
|
-
style={getRowStyle()}
|
|
108
110
|
underlayColor={'transparent'}
|
|
109
111
|
onPress={e => {
|
|
110
112
|
e.stopPropagation();
|
|
111
113
|
onClick(item);
|
|
112
114
|
}}
|
|
113
115
|
>
|
|
114
|
-
{
|
|
116
|
+
<UIChildren scope={row} crud={row.crud}>
|
|
117
|
+
{children}
|
|
118
|
+
</UIChildren>
|
|
115
119
|
</TouchableHighlight>
|
|
116
120
|
);
|
|
117
121
|
};
|
|
@@ -130,9 +134,7 @@ export default function UIList(props: ChildType) {
|
|
|
130
134
|
<Empty />
|
|
131
135
|
{items.map((item: any, i: number) => (
|
|
132
136
|
<RowItem index={i} item={item}>
|
|
133
|
-
|
|
134
|
-
{props.children}
|
|
135
|
-
</UIListRow>
|
|
137
|
+
{props.children}
|
|
136
138
|
</RowItem>
|
|
137
139
|
))}
|
|
138
140
|
{isShowAdd() && <>{add}</>}
|