react-crud-mobile 1.3.234 → 1.3.235
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 +7 -0
- 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 +7 -0
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +9 -0
package/package.json
CHANGED
@@ -581,6 +581,15 @@ export default function UIElement(props: ElementType) {
|
|
581
581
|
let Card = (props: any) => {
|
582
582
|
let isCard = scope.is('type|layout', 'card');
|
583
583
|
|
584
|
+
if (scope.isType('list')) {
|
585
|
+
let empty = scope.getPart('empty', null, undefined);
|
586
|
+
let items = scope.getItems();
|
587
|
+
|
588
|
+
if (empty === false && Utils.isEmpty(items)) {
|
589
|
+
isCard = false;
|
590
|
+
}
|
591
|
+
}
|
592
|
+
|
584
593
|
if (isCard) {
|
585
594
|
let box = {
|
586
595
|
...getStyle('box', { ...boxStyle.box, alignSelf: 'stretch' }),
|