react-crud-mobile 1.3.28 → 1.3.30
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 -3
- 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 +8 -3
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UISelect.tsx +10 -2
package/package.json
CHANGED
|
@@ -33,6 +33,7 @@ export default function UISelect(props: ChildType) {
|
|
|
33
33
|
const modalColor = Utils.nvl(headerStyle.color, 'white');
|
|
34
34
|
const defaults = { color: modalColor };
|
|
35
35
|
const onClick = ({ crud, value }: MethodType) => {
|
|
36
|
+
console.log(crud);
|
|
36
37
|
let val = value as any;
|
|
37
38
|
|
|
38
39
|
if (element.isObject && val?.object) {
|
|
@@ -62,7 +63,10 @@ export default function UISelect(props: ChildType) {
|
|
|
62
63
|
}, [modalVisible]);
|
|
63
64
|
|
|
64
65
|
return (
|
|
65
|
-
<View
|
|
66
|
+
<View
|
|
67
|
+
key={scope.getName(`${scope.getPart('modal')}_${modalVisible}`)}
|
|
68
|
+
style={style('selectRoot')}
|
|
69
|
+
>
|
|
66
70
|
<TouchableOpacity onPress={handlePress} style={style('selectInput')}>
|
|
67
71
|
<Text style={style('selectLabel')}>
|
|
68
72
|
{Utils.nvl(value, placeholder)}
|
|
@@ -102,7 +106,11 @@ export default function UISelect(props: ChildType) {
|
|
|
102
106
|
name={scope.getName('list')}
|
|
103
107
|
layout="card"
|
|
104
108
|
click={onClick}
|
|
105
|
-
rowStyle={
|
|
109
|
+
rowStyle={{
|
|
110
|
+
paddingLeft: 15,
|
|
111
|
+
paddinRight: 15,
|
|
112
|
+
...scope.original?.rowStyle,
|
|
113
|
+
}}
|
|
106
114
|
>
|
|
107
115
|
<UI.Value value="#{@this.label}" />
|
|
108
116
|
</UI.List>
|