@faasjs/ant-design 0.0.3-beta.66 → 0.0.3-beta.68

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
@@ -1594,7 +1594,7 @@ function Table(props) {
1594
1594
  }
1595
1595
  }
1596
1596
  setColumns(props.items);
1597
- }, [props.items]);
1597
+ }, [JSON.stringify(props.items)]);
1598
1598
  (0, import_react14.useEffect)(() => {
1599
1599
  if (!props.dataSource || !columns)
1600
1600
  return;
@@ -1678,6 +1678,7 @@ function FaasDataTable({
1678
1678
  if (!data)
1679
1679
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd12.Table, {
1680
1680
  ...props,
1681
+ loading: props.loading,
1681
1682
  rowKey: props.rowKey || "id",
1682
1683
  columns: currentColumns,
1683
1684
  dataSource: []
@@ -1685,12 +1686,14 @@ function FaasDataTable({
1685
1686
  if (Array.isArray(data))
1686
1687
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd12.Table, {
1687
1688
  ...props,
1689
+ loading: props.loading,
1688
1690
  rowKey: props.rowKey || "id",
1689
1691
  columns: currentColumns,
1690
1692
  dataSource: data
1691
1693
  });
1692
1694
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd12.Table, {
1693
1695
  ...props,
1696
+ loading: props.loading,
1694
1697
  rowKey: props.rowKey || "id",
1695
1698
  columns: currentColumns,
1696
1699
  dataSource: data.rows,
package/dist/index.mjs CHANGED
@@ -1602,7 +1602,7 @@ function Table(props) {
1602
1602
  }
1603
1603
  }
1604
1604
  setColumns(props.items);
1605
- }, [props.items]);
1605
+ }, [JSON.stringify(props.items)]);
1606
1606
  useEffect6(() => {
1607
1607
  if (!props.dataSource || !columns)
1608
1608
  return;
@@ -1686,6 +1686,7 @@ function FaasDataTable({
1686
1686
  if (!data)
1687
1687
  return /* @__PURE__ */ jsx14(AntdTable, {
1688
1688
  ...props,
1689
+ loading: props.loading,
1689
1690
  rowKey: props.rowKey || "id",
1690
1691
  columns: currentColumns,
1691
1692
  dataSource: []
@@ -1693,12 +1694,14 @@ function FaasDataTable({
1693
1694
  if (Array.isArray(data))
1694
1695
  return /* @__PURE__ */ jsx14(AntdTable, {
1695
1696
  ...props,
1697
+ loading: props.loading,
1696
1698
  rowKey: props.rowKey || "id",
1697
1699
  columns: currentColumns,
1698
1700
  dataSource: data
1699
1701
  });
1700
1702
  return /* @__PURE__ */ jsx14(AntdTable, {
1701
1703
  ...props,
1704
+ loading: props.loading,
1702
1705
  rowKey: props.rowKey || "id",
1703
1706
  columns: currentColumns,
1704
1707
  dataSource: data.rows,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.3-beta.66",
3
+ "version": "0.0.3-beta.68",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",