react-crud-mobile 1.3.351 → 1.3.353
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 +5 -4
- 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 +5 -4
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/UIElement.tsx +11 -9
package/package.json
CHANGED
@@ -309,6 +309,7 @@ export default function UIElement(props: ElementType) {
|
|
309
309
|
};
|
310
310
|
|
311
311
|
const isShowInner = () => {
|
312
|
+
if (scope.isType('icon')) return false;
|
312
313
|
if (hasChildren()) {
|
313
314
|
return false;
|
314
315
|
}
|
@@ -380,15 +381,6 @@ export default function UIElement(props: ElementType) {
|
|
380
381
|
)}
|
381
382
|
</UIButton>
|
382
383
|
)}
|
383
|
-
{scope.is('type', 'icon') && (
|
384
|
-
<UIIcon
|
385
|
-
{...defaultsUI}
|
386
|
-
onClick={onClick}
|
387
|
-
variant={scope.attr('variant', 'outlined')}
|
388
|
-
>
|
389
|
-
{scope.getDisplayValue()}
|
390
|
-
</UIIcon>
|
391
|
-
)}
|
392
384
|
{scope.is('type', 'link') && (
|
393
385
|
<UILink
|
394
386
|
{...defaultsUI}
|
@@ -553,6 +545,16 @@ export default function UIElement(props: ElementType) {
|
|
553
545
|
<UIView {...props} scope={scope} crud={crud} />
|
554
546
|
)}
|
555
547
|
|
548
|
+
{scope.is('type', 'icon') && (
|
549
|
+
<UIIcon
|
550
|
+
{...defaultsUI}
|
551
|
+
onClick={onClick}
|
552
|
+
variant={scope.attr('variant', 'outlined')}
|
553
|
+
>
|
554
|
+
{scope.getDisplayValue()}
|
555
|
+
</UIIcon>
|
556
|
+
)}
|
557
|
+
|
556
558
|
{isShowChild() && (
|
557
559
|
<UIChildren
|
558
560
|
{...props}
|