@faasjs/ant-design 0.0.3-beta.40 → 0.0.3-beta.41
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/README.md +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -258,6 +258,9 @@ interface FaasItemProps extends BaseItemProps {
|
|
|
258
258
|
*/
|
|
259
259
|
type?: FaasItemType;
|
|
260
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* convert options to { label, value }[]
|
|
263
|
+
*/
|
|
261
264
|
declare function transferOptions(options: BaseOption[]): {
|
|
262
265
|
label: string;
|
|
263
266
|
value?: string | number;
|
package/dist/index.js
CHANGED
|
@@ -330,7 +330,7 @@ function DescriptionItemContent(props) {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
function Description(props) {
|
|
333
|
-
if (
|
|
333
|
+
if (props.dataSource)
|
|
334
334
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd3.Descriptions, {
|
|
335
335
|
...props,
|
|
336
336
|
title: (0, import_lodash_es4.isFunction)(props.renderTitle) ? props.renderTitle(props.dataSource) : props.title,
|
|
@@ -1423,7 +1423,7 @@ function Table(props) {
|
|
|
1423
1423
|
}, [props.dataSource, columns]);
|
|
1424
1424
|
if (!columns)
|
|
1425
1425
|
return null;
|
|
1426
|
-
if (
|
|
1426
|
+
if (props.dataSource)
|
|
1427
1427
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd11.Table, {
|
|
1428
1428
|
...props,
|
|
1429
1429
|
rowKey: props.rowKey || "id",
|
package/dist/index.mjs
CHANGED
|
@@ -290,7 +290,7 @@ function DescriptionItemContent(props) {
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
function Description(props) {
|
|
293
|
-
if (
|
|
293
|
+
if (props.dataSource)
|
|
294
294
|
return /* @__PURE__ */ jsx5(Descriptions, {
|
|
295
295
|
...props,
|
|
296
296
|
title: isFunction(props.renderTitle) ? props.renderTitle(props.dataSource) : props.title,
|
|
@@ -1423,7 +1423,7 @@ function Table(props) {
|
|
|
1423
1423
|
}, [props.dataSource, columns]);
|
|
1424
1424
|
if (!columns)
|
|
1425
1425
|
return null;
|
|
1426
|
-
if (
|
|
1426
|
+
if (props.dataSource)
|
|
1427
1427
|
return /* @__PURE__ */ jsx13(AntdTable, {
|
|
1428
1428
|
...props,
|
|
1429
1429
|
rowKey: props.rowKey || "id",
|