@fecp/designer 5.4.61 → 5.4.62

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.
@@ -1,4 +1,4 @@
1
- const version = "5.4.61";
1
+ const version = "5.4.62";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -29,8 +29,10 @@ async function handlePageJump(node, data, fields, context) {
29
29
  const transitionType = basic.transitionType || "page";
30
30
  const formComponent = (_a = context.components) == null ? void 0 : _a.form;
31
31
  const getFormDataMethod = (_c = (_b = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.getFormData;
32
- let formData = getFormDataMethod();
33
- const params = parseRouteParams(basic.routeParams, formData, fields);
32
+ if (getFormDataMethod && typeof getFormDataMethod === "function") {
33
+ data = getFormDataMethod();
34
+ }
35
+ const params = parseRouteParams(basic.routeParams, data, fields);
34
36
  if (transitionType === "external") {
35
37
  const url = basic.routePath;
36
38
  if (!url) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.4.61";
3
+ const version = "5.4.62";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -31,8 +31,10 @@ async function handlePageJump(node, data, fields, context) {
31
31
  const transitionType = basic.transitionType || "page";
32
32
  const formComponent = (_a = context.components) == null ? void 0 : _a.form;
33
33
  const getFormDataMethod = (_c = (_b = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.getFormData;
34
- let formData = getFormDataMethod();
35
- const params = parseRouteParams.parseRouteParams(basic.routeParams, formData, fields);
34
+ if (getFormDataMethod && typeof getFormDataMethod === "function") {
35
+ data = getFormDataMethod();
36
+ }
37
+ const params = parseRouteParams.parseRouteParams(basic.routeParams, data, fields);
36
38
  if (transitionType === "external") {
37
39
  const url = basic.routePath;
38
40
  if (!url) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.4.61",
3
+ "version": "5.4.62",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [