react-crud-mobile 1.3.48 → 1.3.50
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 +14 -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 +14 -13
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +11 -5
- package/src/elements/core/UISelect.tsx +9 -5
package/package.json
CHANGED
|
@@ -113,6 +113,7 @@ export default function UIModal(props: ChildType) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
const headerRight = ComponentUtils.getDefine(props, 'header', 'right');
|
|
116
|
+
const bottom = ComponentUtils.getDefine(props, 'bottom');
|
|
116
117
|
|
|
117
118
|
scope.put('scrollRef', scrollRef);
|
|
118
119
|
|
|
@@ -154,12 +155,21 @@ export default function UIModal(props: ChildType) {
|
|
|
154
155
|
nestedScrollEnabled={true}
|
|
155
156
|
ref={scrollRef}
|
|
156
157
|
>
|
|
157
|
-
<View
|
|
158
|
+
<View
|
|
159
|
+
style={{
|
|
160
|
+
flex: 1,
|
|
161
|
+
paddingLeft: 15,
|
|
162
|
+
paddingRight: 15,
|
|
163
|
+
paddingTop: 10,
|
|
164
|
+
paddingBottom: 10,
|
|
165
|
+
}}
|
|
166
|
+
>
|
|
158
167
|
<UIChildren scope={scope} crud={scope.currentDialog}>
|
|
159
168
|
{props.children}
|
|
160
169
|
</UIChildren>
|
|
161
170
|
</View>
|
|
162
171
|
</ScrollView>
|
|
172
|
+
{bottom}
|
|
163
173
|
</SafeAreaView>
|
|
164
174
|
<UIToast />
|
|
165
175
|
</Modal>
|
|
@@ -191,9 +201,5 @@ const styles = StyleSheet.create({
|
|
|
191
201
|
modalContent: {
|
|
192
202
|
flex: 1,
|
|
193
203
|
backgroundColor: 'background',
|
|
194
|
-
paddingTop: 10,
|
|
195
|
-
paddingBottom: 10,
|
|
196
|
-
paddingLeft: 15,
|
|
197
|
-
paddingRight: 15,
|
|
198
204
|
},
|
|
199
205
|
});
|
|
@@ -104,7 +104,15 @@ export default function UISelect(props: ChildType) {
|
|
|
104
104
|
nestedScrollEnabled={true}
|
|
105
105
|
ref={scrollRef}
|
|
106
106
|
>
|
|
107
|
-
<View
|
|
107
|
+
<View
|
|
108
|
+
style={{
|
|
109
|
+
flex: 1,
|
|
110
|
+
paddingLeft: 15,
|
|
111
|
+
paddingRight: 15,
|
|
112
|
+
paddingTop: 10,
|
|
113
|
+
paddingBottom: 10,
|
|
114
|
+
}}
|
|
115
|
+
>
|
|
108
116
|
<UI.List
|
|
109
117
|
data={items}
|
|
110
118
|
name={scope.getName('list')}
|
|
@@ -165,9 +173,5 @@ const styles = StyleSheet.create({
|
|
|
165
173
|
modalContent: {
|
|
166
174
|
flex: 1,
|
|
167
175
|
backgroundColor: 'background',
|
|
168
|
-
paddingTop: 10,
|
|
169
|
-
paddingBottom: 10,
|
|
170
|
-
paddingLeft: 15,
|
|
171
|
-
paddingRight: 15,
|
|
172
176
|
},
|
|
173
177
|
});
|