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