@pisell/lowcode-renderer 1.0.6 → 1.0.7

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.
@@ -114,7 +114,7 @@ var Render = function Render(props) {
114
114
  if (!schema || !components) {
115
115
  init();
116
116
  }
117
- }, [data]);
117
+ }, [data, projectSchema]);
118
118
  if (!schema || !components) {
119
119
  return /*#__PURE__*/React.createElement("div", {
120
120
  style: {
@@ -2,10 +2,11 @@ declare const appHelper: {
2
2
  utils: {
3
3
  api: {
4
4
  report: {
5
- 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>;
5
+ 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>;
6
6
  };
7
7
  utils: {};
8
8
  };
9
+ isMobile: () => boolean;
9
10
  };
10
11
  };
11
12
  export default appHelper;
@@ -1,7 +1,9 @@
1
+ import { isMobile } from '@pisell/utils';
1
2
  import api from "../api";
2
3
  var appHelper = {
3
4
  utils: {
4
- api: api
5
+ api: api,
6
+ isMobile: isMobile
5
7
  }
6
8
  };
7
9
  export default appHelper;
@@ -96,7 +96,7 @@ var Render = (props) => {
96
96
  if (!schema2 || !components2) {
97
97
  init();
98
98
  }
99
- }, [data]);
99
+ }, [data, projectSchema]);
100
100
  if (!schema || !components) {
101
101
  return /* @__PURE__ */ React.createElement("div", { style: { padding: 20 } }, /* @__PURE__ */ React.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }));
102
102
  }
@@ -2,10 +2,11 @@ declare const appHelper: {
2
2
  utils: {
3
3
  api: {
4
4
  report: {
5
- 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>;
5
+ 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>;
6
6
  };
7
7
  utils: {};
8
8
  };
9
+ isMobile: () => boolean;
9
10
  };
10
11
  };
11
12
  export default appHelper;
@@ -32,10 +32,12 @@ __export(appHelper_exports, {
32
32
  default: () => appHelper_default
33
33
  });
34
34
  module.exports = __toCommonJS(appHelper_exports);
35
+ var import_utils = require("@pisell/utils");
35
36
  var import_api = __toESM(require("../api"));
36
37
  var appHelper = {
37
38
  utils: {
38
- api: import_api.default
39
+ api: import_api.default,
40
+ isMobile: import_utils.isMobile
39
41
  }
40
42
  };
41
43
  var appHelper_default = appHelper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/lowcode-renderer",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "sideEffects": false,
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",
@@ -11,6 +11,7 @@
11
11
  "react-dom": "^18.0.0"
12
12
  },
13
13
  "dependencies": {
14
+ "@pisell/utils": "workspaces*",
14
15
  "@alilc/lowcode-plugin-inject": "^1.2.2",
15
16
  "@alilc/lowcode-utils": "1.1.6",
16
17
  "@alilc/lowcode-renderer-core": "^1.1.7",