@hw-component/form 1.9.31 → 1.9.33

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.
@@ -3,4 +3,5 @@ export interface IHPageHandler<T = any> {
3
3
  error?: Error;
4
4
  reload: VoidFunction;
5
5
  data?: T;
6
+ loadingHideInData?: boolean;
6
7
  }
@@ -3,4 +3,5 @@ export interface IHPageHandler<T = any> {
3
3
  error?: Error;
4
4
  reload: VoidFunction;
5
5
  data?: T;
6
+ loadingHideInData?: boolean;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.9.31",
3
+ "version": "1.9.33",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -70,12 +70,14 @@ export default ({
70
70
  };
71
71
  });
72
72
  };
73
+
73
74
  return (
74
75
  <PageHandler
75
76
  loading={infoLoading}
76
77
  error={infoErr}
77
78
  data={infoData}
78
79
  reload={infoRun}
80
+
79
81
  >
80
82
  <FormContext.Provider
81
83
  value={{
@@ -3,6 +3,7 @@ import Loading from "./LoadingComponent";
3
3
  import ErrorComponent from "./ErrorComponent";
4
4
  import type { IHPageHandler } from "./modal";
5
5
  const Index: React.FC<IHPageHandler> = ({ error, data, reload, children }) => {
6
+
6
7
  if (error) {
7
8
  return <ErrorComponent error={error} reload={reload} />;
8
9
  }
@@ -3,4 +3,5 @@ export interface IHPageHandler<T = any> {
3
3
  error?: Error;
4
4
  reload: VoidFunction;
5
5
  data?: T;
6
+ loadingHideInData?:boolean;
6
7
  }