@pisell/lowcode-renderer 1.0.18 → 1.0.19

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.
@@ -8,5 +8,5 @@ interface RenderProps {
8
8
  locale?: string;
9
9
  isShowSkeleton?: boolean;
10
10
  }
11
- declare const Render: (props: RenderProps) => JSX.Element;
11
+ declare const Render: (props: RenderProps) => JSX.Element | null;
12
12
  export default Render;
@@ -118,7 +118,10 @@ var Render = function Render(props) {
118
118
  init();
119
119
  }
120
120
  }, [data, projectSchema]);
121
- if (isShowSkeleton && (!schema || !components)) {
121
+ if (!schema || !components) {
122
+ if (!isShowSkeleton) {
123
+ return null;
124
+ }
122
125
  return /*#__PURE__*/React.createElement("div", {
123
126
  style: {
124
127
  padding: 20
@@ -8,5 +8,5 @@ interface RenderProps {
8
8
  locale?: string;
9
9
  isShowSkeleton?: boolean;
10
10
  }
11
- declare const Render: (props: RenderProps) => JSX.Element;
11
+ declare const Render: (props: RenderProps) => JSX.Element | null;
12
12
  export default Render;
@@ -99,7 +99,10 @@ var Render = (props) => {
99
99
  init();
100
100
  }
101
101
  }, [data, projectSchema]);
102
- if (isShowSkeleton && (!schema || !components)) {
102
+ if (!schema || !components) {
103
+ if (!isShowSkeleton) {
104
+ return null;
105
+ }
103
106
  return /* @__PURE__ */ React.createElement("div", { style: { padding: 20 } }, /* @__PURE__ */ React.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }));
104
107
  }
105
108
  function customizer(objValue, srcValue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/lowcode-renderer",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "sideEffects": false,
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",