@faasjs/ant-design 0.0.3-beta.76 → 0.0.3-beta.77
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/index.js +9 -11
- package/dist/index.mjs +9 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -468,17 +468,15 @@ function Description(props) {
|
|
|
468
468
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd6.Descriptions, {
|
|
469
469
|
...props,
|
|
470
470
|
title: (0, import_lodash_es4.isFunction)(props.renderTitle) ? props.renderTitle(props.dataSource) : props.title,
|
|
471
|
-
children: props.items.map((item) => {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}, item.id) : null;
|
|
481
|
-
}).filter(Boolean)
|
|
471
|
+
children: props.items.map((item) => item && (!item.if || item.if(props.dataSource)) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd6.Descriptions.Item, {
|
|
472
|
+
label: item.title || (0, import_lodash_es4.upperFirst)(item.id),
|
|
473
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DescriptionItemContent, {
|
|
474
|
+
item,
|
|
475
|
+
value: props.dataSource[item.id],
|
|
476
|
+
values: props.dataSource,
|
|
477
|
+
extendTypes: props.extendTypes
|
|
478
|
+
})
|
|
479
|
+
}, item.id) : null).filter(Boolean)
|
|
482
480
|
});
|
|
483
481
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FaasDataWrapper, {
|
|
484
482
|
render: ({ data }) => {
|
package/dist/index.mjs
CHANGED
|
@@ -433,17 +433,15 @@ function Description(props) {
|
|
|
433
433
|
return /* @__PURE__ */ jsx8(Descriptions, {
|
|
434
434
|
...props,
|
|
435
435
|
title: isFunction(props.renderTitle) ? props.renderTitle(props.dataSource) : props.title,
|
|
436
|
-
children: props.items.map((item) => {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}, item.id) : null;
|
|
446
|
-
}).filter(Boolean)
|
|
436
|
+
children: props.items.map((item) => item && (!item.if || item.if(props.dataSource)) ? /* @__PURE__ */ jsx8(Descriptions.Item, {
|
|
437
|
+
label: item.title || upperFirst2(item.id),
|
|
438
|
+
children: /* @__PURE__ */ jsx8(DescriptionItemContent, {
|
|
439
|
+
item,
|
|
440
|
+
value: props.dataSource[item.id],
|
|
441
|
+
values: props.dataSource,
|
|
442
|
+
extendTypes: props.extendTypes
|
|
443
|
+
})
|
|
444
|
+
}, item.id) : null).filter(Boolean)
|
|
447
445
|
});
|
|
448
446
|
return /* @__PURE__ */ jsx8(FaasDataWrapper, {
|
|
449
447
|
render: ({ data }) => {
|