@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 CHANGED
@@ -8,7 +8,7 @@ UI components based on [FaasJS](https://faasjs.com), [Ant Design](https://ant.de
8
8
 
9
9
  ## Install
10
10
 
11
- npm install @faasjs/ant-design
11
+ npm install @faasjs/ant-design antd
12
12
 
13
13
  ## Usage
14
14
 
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 (!props.faasData)
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 (!props.faasData)
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 (!props.faasData)
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 (!props.faasData)
1426
+ if (props.dataSource)
1427
1427
  return /* @__PURE__ */ jsx13(AntdTable, {
1428
1428
  ...props,
1429
1429
  rowKey: props.rowKey || "id",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.3-beta.40",
3
+ "version": "0.0.3-beta.41",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",