@pisell/lowcode-renderer 1.0.18 → 1.0.20

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.
@@ -6,7 +6,6 @@ interface RenderProps {
6
6
  className?: string;
7
7
  appHelper?: IRendererAppHelper;
8
8
  locale?: string;
9
- isShowSkeleton?: boolean;
10
9
  }
11
10
  declare const Render: (props: RenderProps) => JSX.Element;
12
11
  export default Render;
@@ -25,9 +25,7 @@ var Render = function Render(props) {
25
25
  projectSchema = props.projectSchema,
26
26
  className = props.className,
27
27
  propsAppHelper = props.appHelper,
28
- locale = props.locale,
29
- _props$isShowSkeleton = props.isShowSkeleton,
30
- isShowSkeleton = _props$isShowSkeleton === void 0 ? true : _props$isShowSkeleton;
28
+ locale = props.locale;
31
29
  var _useState = useState({}),
32
30
  _useState2 = _slicedToArray(_useState, 2),
33
31
  data = _useState2[0],
@@ -118,7 +116,7 @@ var Render = function Render(props) {
118
116
  init();
119
117
  }
120
118
  }, [data, projectSchema]);
121
- if (isShowSkeleton && (!schema || !components)) {
119
+ if (!schema || !components) {
122
120
  return /*#__PURE__*/React.createElement("div", {
123
121
  style: {
124
122
  padding: 20
package/es/api/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  report: {
3
- getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER") => Promise<any>;
3
+ getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD") => Promise<any>;
4
4
  };
5
5
  utils: {};
6
6
  };
@@ -6,7 +6,6 @@ interface RenderProps {
6
6
  className?: string;
7
7
  appHelper?: IRendererAppHelper;
8
8
  locale?: string;
9
- isShowSkeleton?: boolean;
10
9
  }
11
10
  declare const Render: (props: RenderProps) => JSX.Element;
12
11
  export default Render;
@@ -45,8 +45,7 @@ var Render = (props) => {
45
45
  projectSchema,
46
46
  className,
47
47
  appHelper: propsAppHelper,
48
- locale,
49
- isShowSkeleton = true
48
+ locale
50
49
  } = props;
51
50
  const [data, setData] = (0, import_react.useState)({});
52
51
  const { schema, components, i18n = {}, projectDataSource = {} } = data;
@@ -99,7 +98,7 @@ var Render = (props) => {
99
98
  init();
100
99
  }
101
100
  }, [data, projectSchema]);
102
- if (isShowSkeleton && (!schema || !components)) {
101
+ if (!schema || !components) {
103
102
  return /* @__PURE__ */ React.createElement("div", { style: { padding: 20 } }, /* @__PURE__ */ React.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }));
104
103
  }
105
104
  function customizer(objValue, srcValue) {
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  report: {
3
- getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER") => Promise<any>;
3
+ getReportList: (values: any, url: "REPORT_DETAILED_TRANSACTIONS" | "REPORT_DETAILED_PRODUCT_SALES" | "REPORT_DAILY_SUMMARY_BY_PAYMETHOD" | "REPORT_DAILY_SUMMARY_BY_ORDER" | "REPORT_DETAILED_ORDERS" | "REPORT_MONTH_SUMMARY_BY_ORDER" | "REPORT_WEEK_SUMMARY_BY_ORDER" | "REPORT_DASHBOARD") => Promise<any>;
4
4
  };
5
5
  utils: {};
6
6
  };
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.20",
4
4
  "sideEffects": false,
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",
@@ -18,7 +18,7 @@
18
18
  "@alifd/next": "^1.25.44",
19
19
  "lodash-es": "^4.17.21",
20
20
  "dayjs": "^1.11.9",
21
- "@pisell/utils": "1.0.6"
21
+ "@pisell/utils": "1.0.7"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": ">=16.9.0",