@fecp/designer 5.4.83 → 5.4.84

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.83";
1
+ const version = "5.4.84";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -1,4 +1,4 @@
1
- import DialogDialog from "./index.vue.mjs";
1
+ import DialogDialog from "./index.vue2.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogDialog() {
4
4
  const dialogDialogVisible = ref(false);
@@ -1,4 +1,4 @@
1
- import DialogGlobalDialog from "./index.vue.mjs";
1
+ import DialogGlobalDialog from "./index.vue2.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogGlobalDialog() {
4
4
  const dialogGlobalDialogVisible = ref(false);
@@ -52,8 +52,8 @@ import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
52
52
  import "../../../components/TemplateSelector.vue.mjs";
53
53
  import "../../table/default.mjs";
54
54
  /* empty css */
55
- /* empty css */
56
- /* empty css */
55
+ /* empty css */
56
+ /* empty css */
57
57
  import "../../../store/index.mjs";
58
58
  /* empty css */
59
59
  import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
@@ -650,23 +650,8 @@ async function handleRiskSchDialog(node, data, fields, context) {
650
650
  if (basic == null ? void 0 : basic.formValidate) {
651
651
  const formComponent = (_a = context.components) == null ? void 0 : _a.form;
652
652
  const validateMethod = (_c = (_b = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.validate;
653
- try {
654
- if (typeof validateMethod === "function") {
655
- await validateMethod();
656
- } else {
657
- console.error("未找到表单组件的 validate 方法");
658
- return {
659
- success: false,
660
- message: "表单组件未正确配置或 validate 方法未暴露",
661
- shouldShowError: true
662
- };
663
- }
664
- } catch (error) {
665
- return {
666
- success: false,
667
- message: "表单验证失败!",
668
- shouldShowError: false
669
- };
653
+ if (typeof validateMethod === "function") {
654
+ await validateMethod();
670
655
  }
671
656
  }
672
657
  const schNo = basic.schNo;
@@ -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.83";
3
+ const version = "5.4.84";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const vue = require("vue");
5
5
  function useDialogDialog() {
6
6
  const dialogDialogVisible = vue.ref(false);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const vue = require("vue");
5
5
  function useDialogGlobalDialog() {
6
6
  const dialogGlobalDialogVisible = vue.ref(false);
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
54
54
  require("../../../components/TemplateSelector.vue.js");
55
55
  require("../../table/default.js");
56
56
  ;/* empty css */
57
- ;/* empty css */
58
- ;/* empty css */
57
+ ;/* empty css */
58
+ ;/* empty css */
59
59
  require("../../../store/index.js");
60
60
  ;/* empty css */
61
61
  const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
@@ -652,23 +652,8 @@ async function handleRiskSchDialog(node, data, fields, context) {
652
652
  if (basic == null ? void 0 : basic.formValidate) {
653
653
  const formComponent = (_a = context.components) == null ? void 0 : _a.form;
654
654
  const validateMethod = (_c = (_b = formComponent == null ? void 0 : formComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.validate;
655
- try {
656
- if (typeof validateMethod === "function") {
657
- await validateMethod();
658
- } else {
659
- console.error("未找到表单组件的 validate 方法");
660
- return {
661
- success: false,
662
- message: "表单组件未正确配置或 validate 方法未暴露",
663
- shouldShowError: true
664
- };
665
- }
666
- } catch (error) {
667
- return {
668
- success: false,
669
- message: "表单验证失败!",
670
- shouldShowError: false
671
- };
655
+ if (typeof validateMethod === "function") {
656
+ await validateMethod();
672
657
  }
673
658
  }
674
659
  const schNo = basic.schNo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.4.83",
3
+ "version": "5.4.84",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [