react-crud-mobile 1.3.222 → 1.3.223
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 +6 -5
- 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 +6 -5
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UISelect.tsx +5 -4
package/package.json
CHANGED
@@ -15,7 +15,7 @@ import UI from '../UI';
|
|
15
15
|
export default function UISelect(props: ChildType) {
|
16
16
|
const [modalVisible, setModalVisible] = useState(false);
|
17
17
|
const scope = props.scope;
|
18
|
-
const
|
18
|
+
const original = scope.original;
|
19
19
|
const items = Utils.nvl(scope.getOptions(), []);
|
20
20
|
const placeholder = scope.attr('placeholder', 'Selecione...');
|
21
21
|
const value = scope.getDisplayValue();
|
@@ -32,7 +32,7 @@ export default function UISelect(props: ChildType) {
|
|
32
32
|
const onClick = ({ crud, value }: MethodType) => {
|
33
33
|
let val = value as any;
|
34
34
|
|
35
|
-
if (
|
35
|
+
if (original.isObject && val?.object) {
|
36
36
|
scope.changeValue(val?.object);
|
37
37
|
} else if (val?.value) {
|
38
38
|
scope.changeValue(val?.value);
|
@@ -111,13 +111,14 @@ export default function UISelect(props: ChildType) {
|
|
111
111
|
data={items}
|
112
112
|
name={scope.getName('list')}
|
113
113
|
layout="card"
|
114
|
+
search={original.search === true}
|
114
115
|
click={onClick}
|
115
116
|
rowStyle={{
|
116
117
|
paddingLeft: 15,
|
117
118
|
paddinRight: 15,
|
118
|
-
...
|
119
|
+
...original?.rowStyle,
|
119
120
|
}}
|
120
|
-
{...
|
121
|
+
{...original?.listProps}
|
121
122
|
>
|
122
123
|
<UI.Value value="#{@this.label}" />
|
123
124
|
</UI.List>
|