@faasjs/ant-design 0.0.2-beta.454 → 0.0.2-beta.456

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 CHANGED
@@ -271,6 +271,8 @@ function DescriptionItemContent(props) {
271
271
  children: computedProps.value.format("YYYY-MM-DD")
272
272
  });
273
273
  case "object":
274
+ if (!computedProps.value)
275
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Blank, {});
274
276
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, {
275
277
  items: computedProps.item.object,
276
278
  dataSource: computedProps.value,
@@ -461,6 +463,7 @@ function FormItem(props) {
461
463
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd5.Form.Item, {
462
464
  ...computedProps,
463
465
  noStyle: true,
466
+ rules: [],
464
467
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd5.Input, {
465
468
  hidden: true
466
469
  })
@@ -1230,7 +1233,7 @@ function Table(props) {
1230
1233
  if (!item.render)
1231
1234
  item.render = (value) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, {
1232
1235
  items: item.object,
1233
- dataSource: value,
1236
+ dataSource: value || {},
1234
1237
  column: 1
1235
1238
  });
1236
1239
  break;
@@ -1238,7 +1241,7 @@ function Table(props) {
1238
1241
  if (!item.render)
1239
1242
  item.render = (value) => value.map((v, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, {
1240
1243
  items: item.object,
1241
- dataSource: v,
1244
+ dataSource: v || [],
1242
1245
  column: 1
1243
1246
  }, i));
1244
1247
  break;
package/dist/index.mjs CHANGED
@@ -232,6 +232,8 @@ function DescriptionItemContent(props) {
232
232
  children: computedProps.value.format("YYYY-MM-DD")
233
233
  });
234
234
  case "object":
235
+ if (!computedProps.value)
236
+ return /* @__PURE__ */ jsx3(Blank, {});
235
237
  return /* @__PURE__ */ jsx3(Description, {
236
238
  items: computedProps.item.object,
237
239
  dataSource: computedProps.value,
@@ -441,6 +443,7 @@ function FormItem(props) {
441
443
  return /* @__PURE__ */ jsx6(AntdForm.Item, {
442
444
  ...computedProps,
443
445
  noStyle: true,
446
+ rules: [],
444
447
  children: /* @__PURE__ */ jsx6(Input, {
445
448
  hidden: true
446
449
  })
@@ -1228,7 +1231,7 @@ function Table(props) {
1228
1231
  if (!item.render)
1229
1232
  item.render = (value) => /* @__PURE__ */ jsx11(Description, {
1230
1233
  items: item.object,
1231
- dataSource: value,
1234
+ dataSource: value || {},
1232
1235
  column: 1
1233
1236
  });
1234
1237
  break;
@@ -1236,7 +1239,7 @@ function Table(props) {
1236
1239
  if (!item.render)
1237
1240
  item.render = (value) => value.map((v, i) => /* @__PURE__ */ jsx11(Description, {
1238
1241
  items: item.object,
1239
- dataSource: v,
1242
+ dataSource: v || [],
1240
1243
  column: 1
1241
1244
  }, i));
1242
1245
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.2-beta.454",
3
+ "version": "0.0.2-beta.456",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,7 +28,7 @@
28
28
  "lodash": "*",
29
29
  "react": "*",
30
30
  "react-dom": "*",
31
- "@faasjs/react": "^0.0.2-beta.454",
31
+ "@faasjs/react": "^0.0.2-beta.456",
32
32
  "react-router-dom": "*",
33
33
  "dayjs": "*"
34
34
  },