@faasjs/ant-design 0.0.3-beta.16 → 0.0.3-beta.18

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.d.ts CHANGED
@@ -186,7 +186,7 @@ interface FormItemProps<T = any> extends FaasItemProps, Omit<FormItemProps$1<T>,
186
186
  required?: boolean;
187
187
  col?: number;
188
188
  children?: JSX.Element;
189
- render?: (value?: T) => JSX.Element;
189
+ render?: () => JSX.Element;
190
190
  rules?: RuleObject[];
191
191
  label?: string | false;
192
192
  extendTypes?: ExtendTypes;
@@ -278,7 +278,7 @@ interface LinkProps {
278
278
  * <Link href="/">Home</Link>
279
279
  *
280
280
  * // link with button
281
- * <Link href="/" button={{type:'primary'}}>Home</Link>
281
+ * <Link href="/" button={{ type:'primary' }}>Home</Link>
282
282
  * ```
283
283
  */
284
284
  declare function Link({ href, target, text, children, style, button, }: LinkProps): JSX.Element;
package/dist/index.js CHANGED
@@ -851,7 +851,7 @@ function Link({
851
851
  ...style || {}
852
852
  },
853
853
  href,
854
- children: text || children
854
+ children: text != null ? text : children
855
855
  });
856
856
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
857
857
  href,
@@ -860,7 +860,7 @@ function Link({
860
860
  ...Link2.style,
861
861
  ...style || {}
862
862
  },
863
- children: text || children
863
+ children: text != null ? text : children
864
864
  });
865
865
  }
866
866
  if (button)
@@ -873,7 +873,7 @@ function Link({
873
873
  ...Link2.style,
874
874
  ...style || {}
875
875
  },
876
- children: text || children
876
+ children: text != null ? text : children
877
877
  })
878
878
  });
879
879
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_router_dom.Link, {
@@ -883,7 +883,7 @@ function Link({
883
883
  ...Link2.style,
884
884
  ...style || {}
885
885
  },
886
- children: text || children
886
+ children: text != null ? text : children
887
887
  });
888
888
  }
889
889
 
package/dist/index.mjs CHANGED
@@ -837,7 +837,7 @@ function Link({
837
837
  ...style || {}
838
838
  },
839
839
  href,
840
- children: text || children
840
+ children: text != null ? text : children
841
841
  });
842
842
  return /* @__PURE__ */ jsx7("a", {
843
843
  href,
@@ -846,7 +846,7 @@ function Link({
846
846
  ...Link2.style,
847
847
  ...style || {}
848
848
  },
849
- children: text || children
849
+ children: text != null ? text : children
850
850
  });
851
851
  }
852
852
  if (button)
@@ -859,7 +859,7 @@ function Link({
859
859
  ...Link2.style,
860
860
  ...style || {}
861
861
  },
862
- children: text || children
862
+ children: text != null ? text : children
863
863
  })
864
864
  });
865
865
  return /* @__PURE__ */ jsx7(RouterLink, {
@@ -869,7 +869,7 @@ function Link({
869
869
  ...Link2.style,
870
870
  ...style || {}
871
871
  },
872
- children: text || children
872
+ children: text != null ? text : children
873
873
  });
874
874
  }
875
875
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.3-beta.16",
3
+ "version": "0.0.3-beta.18",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,7 +28,7 @@
28
28
  "lodash-es": "*",
29
29
  "react": "*",
30
30
  "react-dom": "*",
31
- "@faasjs/react": "^0.0.3-beta.16",
31
+ "@faasjs/react": "^0.0.3-beta.18",
32
32
  "react-router-dom": "*",
33
33
  "dayjs": "*"
34
34
  },