@faasjs/ant-design 0.0.2-beta.455 → 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 +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +2 -2
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,
|
|
@@ -1231,7 +1233,7 @@ function Table(props) {
|
|
|
1231
1233
|
if (!item.render)
|
|
1232
1234
|
item.render = (value) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, {
|
|
1233
1235
|
items: item.object,
|
|
1234
|
-
dataSource: value,
|
|
1236
|
+
dataSource: value || {},
|
|
1235
1237
|
column: 1
|
|
1236
1238
|
});
|
|
1237
1239
|
break;
|
|
@@ -1239,7 +1241,7 @@ function Table(props) {
|
|
|
1239
1241
|
if (!item.render)
|
|
1240
1242
|
item.render = (value) => value.map((v, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Description, {
|
|
1241
1243
|
items: item.object,
|
|
1242
|
-
dataSource: v,
|
|
1244
|
+
dataSource: v || [],
|
|
1243
1245
|
column: 1
|
|
1244
1246
|
}, i));
|
|
1245
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,
|
|
@@ -1229,7 +1231,7 @@ function Table(props) {
|
|
|
1229
1231
|
if (!item.render)
|
|
1230
1232
|
item.render = (value) => /* @__PURE__ */ jsx11(Description, {
|
|
1231
1233
|
items: item.object,
|
|
1232
|
-
dataSource: value,
|
|
1234
|
+
dataSource: value || {},
|
|
1233
1235
|
column: 1
|
|
1234
1236
|
});
|
|
1235
1237
|
break;
|
|
@@ -1237,7 +1239,7 @@ function Table(props) {
|
|
|
1237
1239
|
if (!item.render)
|
|
1238
1240
|
item.render = (value) => value.map((v, i) => /* @__PURE__ */ jsx11(Description, {
|
|
1239
1241
|
items: item.object,
|
|
1240
|
-
dataSource: v,
|
|
1242
|
+
dataSource: v || [],
|
|
1241
1243
|
column: 1
|
|
1242
1244
|
}, i));
|
|
1243
1245
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
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.
|
|
31
|
+
"@faasjs/react": "^0.0.2-beta.456",
|
|
32
32
|
"react-router-dom": "*",
|
|
33
33
|
"dayjs": "*"
|
|
34
34
|
},
|