@fecp/designer 5.4.24 → 5.4.26

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.24";
1
+ const version = "5.4.26";
2
2
  const packageJson = {
3
3
  version
4
4
  };
package/es/designer.css CHANGED
@@ -5833,21 +5833,21 @@ body,
5833
5833
  outline: none;
5834
5834
  box-shadow: 0 1px 0 0 #c0c4cc inset, 0 -1px 0 0 #c0c4cc inset, -1px 0 0 0 #c0c4cc inset;
5835
5835
  }
5836
- .info-icon[data-v-e00643b1] {
5836
+ .info-icon[data-v-3657e72b] {
5837
5837
  margin-left: 4px;
5838
5838
  color: #f5b041;
5839
5839
  cursor: help;
5840
5840
  font-size: 14px;
5841
5841
  }
5842
- .credit-icon[data-v-e00643b1] {
5842
+ .credit-icon[data-v-3657e72b] {
5843
5843
  color: #2e8bff;
5844
5844
  margin-right: 2px;
5845
5845
  }
5846
- .regulation-icon[data-v-e00643b1] {
5846
+ .regulation-icon[data-v-3657e72b] {
5847
5847
  color: #f56c6c;
5848
5848
  margin-right: 2px;
5849
5849
  }
5850
- [data-v-e00643b1] .el-form-item__label {
5850
+ [data-v-3657e72b] .el-form-item__label {
5851
5851
  padding: 0 8px 0 0;
5852
5852
  }
5853
5853
  .el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{justify-content:space-between;align-items:center;line-height:24px;display:flex}.el-page-header__left{align-items:center;margin-right:40px;display:flex;position:relative}.el-page-header__back{cursor:pointer;align-items:center;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;margin-right:10px;font-size:16px;display:flex}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.fec-header[data-v-b7c0507e] {
@@ -5904,27 +5904,27 @@ body,
5904
5904
  width: 80px;
5905
5905
  font-size: var(--el-font-size-extra-small);
5906
5906
  }
5907
- .fec-form[data-v-e700f77b] {
5907
+ .fec-form[data-v-eb63b66b] {
5908
5908
  height: 100%;
5909
5909
  }
5910
- [data-v-e700f77b] .vgl-item {
5910
+ [data-v-eb63b66b] .vgl-item {
5911
5911
  transition: none;
5912
5912
  }
5913
- [data-v-e700f77b] .vgl-item > .el-form-item {
5913
+ [data-v-eb63b66b] .vgl-item > .el-form-item {
5914
5914
  width: 100%;
5915
5915
  padding: 12px 8px 0 8px;
5916
5916
  height: calc(100% - 15px);
5917
5917
  display: flex;
5918
5918
  }
5919
- [data-v-e700f77b] .vgl-item > .el-form-item.el-form-item--label-top {
5919
+ [data-v-eb63b66b] .vgl-item > .el-form-item.el-form-item--label-top {
5920
5920
  flex-direction: column;
5921
5921
  }
5922
- [data-v-e700f77b] .vgl-item > .el-form-item .el-form-item__label {
5922
+ [data-v-eb63b66b] .vgl-item > .el-form-item .el-form-item__label {
5923
5923
  line-height: 20px;
5924
5924
  display: flex;
5925
5925
  align-items: center;
5926
5926
  }
5927
- [data-v-e700f77b] .vgl-item > .el-container {
5927
+ [data-v-eb63b66b] .vgl-item > .el-container {
5928
5928
  height: auto !important;
5929
5929
  }.cell-content .cell-text[data-v-3e5372d4] {
5930
5930
  display: inline-block;
@@ -9,8 +9,8 @@ import { Form } from "../forms/form/index.mjs";
9
9
  import { parseRouteParams } from "../../utils/parseRouteParams.mjs";
10
10
  import { calculate } from "../../utils/formulajs/calculate.mjs";
11
11
  import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
12
- /* empty css */
13
12
  /* empty css */
13
+ /* empty css */
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -811,6 +811,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
811
811
  );
812
812
  relevantConfigs.dataLink.forEach((item) => {
813
813
  if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
814
+ debugger;
814
815
  const fieldAssignments = item.fieldAssignments || [];
815
816
  fieldAssignments.forEach((assignment) => {
816
817
  var _a2, _b;
@@ -1063,7 +1064,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1063
1064
  };
1064
1065
  }
1065
1066
  });
1066
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e700f77b"]]);
1067
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-eb63b66b"]]);
1067
1068
  export {
1068
1069
  _Form as default
1069
1070
  };
@@ -136,20 +136,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
136
136
  ref_key: "innerComponentRef",
137
137
  ref: innerComponentRef,
138
138
  config: __props.config,
139
- localConfig: __props.localConfig
140
- }, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "document" ? (openBlock(), createBlock(unref(Document), {
139
+ localConfig: __props.localConfig,
140
+ formMode: __props.formMode
141
+ }, null, 8, ["config", "localConfig", "formMode"])) : __props.config.fieldType == "document" ? (openBlock(), createBlock(unref(Document), {
141
142
  key: 5,
142
143
  ref_key: "innerComponentRef",
143
144
  ref: innerComponentRef,
144
145
  config: __props.config,
145
- localConfig: __props.localConfig
146
- }, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "contract" ? (openBlock(), createBlock(unref(Contract), {
146
+ localConfig: __props.localConfig,
147
+ formMode: __props.formMode
148
+ }, null, 8, ["config", "localConfig", "formMode"])) : __props.config.fieldType == "contract" ? (openBlock(), createBlock(unref(Contract), {
147
149
  key: 6,
148
150
  ref_key: "innerComponentRef",
149
151
  ref: innerComponentRef,
150
152
  config: __props.config,
151
- localConfig: __props.localConfig
152
- }, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "blank" || __props.config.fieldType == "divider" ? (openBlock(), createElementBlock("div", {
153
+ localConfig: __props.localConfig,
154
+ formMode: __props.formMode
155
+ }, null, 8, ["config", "localConfig", "formMode"])) : __props.config.fieldType == "blank" || __props.config.fieldType == "divider" ? (openBlock(), createElementBlock("div", {
153
156
  key: 7,
154
157
  class: normalizeClass(__props.config.fieldType)
155
158
  }, null, 2)) : (openBlock(), createBlock(_component_el_form_item, {
@@ -202,7 +205,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
202
205
  };
203
206
  }
204
207
  });
205
- const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e00643b1"]]);
208
+ const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3657e72b"]]);
206
209
  export {
207
210
  _FormItem as default
208
211
  };
@@ -3,8 +3,8 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import { computed, getCurrentInstance, inject, createElementBlock, openBlock, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
6
- /* empty css */
7
6
  /* empty css */
7
+ /* empty css */
8
8
  /* empty css */
9
9
  import { openDialog } from "../../dialog/index.mjs";
10
10
  /* empty css */
@@ -7,8 +7,8 @@ import "../../../../../node_modules/vxe-table/es/components.mjs";
7
7
  import { CopyDocument as copy_document_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
8
8
  import { checkFilterMatch } from "../../utils/parseFilterConfig.mjs";
9
9
  import { removeEmptyValues } from "../../utils/common.mjs";
10
- /* empty css */
11
10
  /* empty css */
11
+ /* empty css */
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
@@ -1,7 +1,7 @@
1
1
  import { onUnmounted, onBeforeUnmount, onMounted } from "vue";
2
2
  /* empty css */
3
- /* empty css */
4
3
  /* empty css */
4
+ /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
@@ -2,8 +2,8 @@ import { reactive } from "vue";
2
2
  import { parseRouteParams } from "./parseRouteParams.mjs";
3
3
  import "../../../../node_modules/element-plus/es/index.mjs";
4
4
  /* empty css */
5
- /* empty css */
6
5
  /* empty css */
6
+ /* empty css */
7
7
  /* empty css */
8
8
  import { ElLoading } from "../../../../node_modules/element-plus/es/components/loading/index.mjs";
9
9
  import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
@@ -24,7 +24,9 @@ function calculate(params) {
24
24
  if (value[key]) data = value[key].map((o) => o[subKey]);
25
25
  }
26
26
  if (data !== void 0) {
27
- data = JSON.stringify(data);
27
+ if (typeof data != "string") {
28
+ data = JSON.stringify(data);
29
+ }
28
30
  const actualStart = startIndex + offset;
29
31
  const actualEnd = endIndex + offset;
30
32
  str = str.slice(0, actualStart) + data.toString() + str.slice(actualEnd);
@@ -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.24";
3
+ const version = "5.4.26";
4
4
  const packageJson = {
5
5
  version
6
6
  };
package/lib/designer.css CHANGED
@@ -5833,21 +5833,21 @@ body,
5833
5833
  outline: none;
5834
5834
  box-shadow: 0 1px 0 0 #c0c4cc inset, 0 -1px 0 0 #c0c4cc inset, -1px 0 0 0 #c0c4cc inset;
5835
5835
  }
5836
- .info-icon[data-v-e00643b1] {
5836
+ .info-icon[data-v-3657e72b] {
5837
5837
  margin-left: 4px;
5838
5838
  color: #f5b041;
5839
5839
  cursor: help;
5840
5840
  font-size: 14px;
5841
5841
  }
5842
- .credit-icon[data-v-e00643b1] {
5842
+ .credit-icon[data-v-3657e72b] {
5843
5843
  color: #2e8bff;
5844
5844
  margin-right: 2px;
5845
5845
  }
5846
- .regulation-icon[data-v-e00643b1] {
5846
+ .regulation-icon[data-v-3657e72b] {
5847
5847
  color: #f56c6c;
5848
5848
  margin-right: 2px;
5849
5849
  }
5850
- [data-v-e00643b1] .el-form-item__label {
5850
+ [data-v-3657e72b] .el-form-item__label {
5851
5851
  padding: 0 8px 0 0;
5852
5852
  }
5853
5853
  .el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{justify-content:space-between;align-items:center;line-height:24px;display:flex}.el-page-header__left{align-items:center;margin-right:40px;display:flex;position:relative}.el-page-header__back{cursor:pointer;align-items:center;display:flex}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{align-items:center;margin-right:10px;font-size:16px;display:flex}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{color:var(--el-text-color-primary);font-size:18px}.el-page-header__breadcrumb{margin-bottom:16px}.fec-header[data-v-b7c0507e] {
@@ -5904,27 +5904,27 @@ body,
5904
5904
  width: 80px;
5905
5905
  font-size: var(--el-font-size-extra-small);
5906
5906
  }
5907
- .fec-form[data-v-e700f77b] {
5907
+ .fec-form[data-v-eb63b66b] {
5908
5908
  height: 100%;
5909
5909
  }
5910
- [data-v-e700f77b] .vgl-item {
5910
+ [data-v-eb63b66b] .vgl-item {
5911
5911
  transition: none;
5912
5912
  }
5913
- [data-v-e700f77b] .vgl-item > .el-form-item {
5913
+ [data-v-eb63b66b] .vgl-item > .el-form-item {
5914
5914
  width: 100%;
5915
5915
  padding: 12px 8px 0 8px;
5916
5916
  height: calc(100% - 15px);
5917
5917
  display: flex;
5918
5918
  }
5919
- [data-v-e700f77b] .vgl-item > .el-form-item.el-form-item--label-top {
5919
+ [data-v-eb63b66b] .vgl-item > .el-form-item.el-form-item--label-top {
5920
5920
  flex-direction: column;
5921
5921
  }
5922
- [data-v-e700f77b] .vgl-item > .el-form-item .el-form-item__label {
5922
+ [data-v-eb63b66b] .vgl-item > .el-form-item .el-form-item__label {
5923
5923
  line-height: 20px;
5924
5924
  display: flex;
5925
5925
  align-items: center;
5926
5926
  }
5927
- [data-v-e700f77b] .vgl-item > .el-container {
5927
+ [data-v-eb63b66b] .vgl-item > .el-container {
5928
5928
  height: auto !important;
5929
5929
  }.cell-content .cell-text[data-v-3e5372d4] {
5930
5930
  display: inline-block;
@@ -11,8 +11,8 @@ const index$2 = require("../forms/form/index.js");
11
11
  const parseRouteParams = require("../../utils/parseRouteParams.js");
12
12
  const calculate = require("../../utils/formulajs/calculate.js");
13
13
  const eventFlowHandler = require("../../utils/eventFlow/eventFlowHandler.js");
14
- ;/* empty css */
15
14
  ;/* empty css */
15
+ ;/* empty css */
16
16
  ;/* empty css */
17
17
  ;/* empty css */
18
18
  const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
@@ -813,6 +813,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
813
813
  );
814
814
  relevantConfigs.dataLink.forEach((item) => {
815
815
  if (parseFilterConfig.checkFilterMatch(item.filterConfig, formData.value, fields)) {
816
+ debugger;
816
817
  const fieldAssignments = item.fieldAssignments || [];
817
818
  fieldAssignments.forEach((assignment) => {
818
819
  var _a2, _b;
@@ -1065,5 +1066,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1065
1066
  };
1066
1067
  }
1067
1068
  });
1068
- const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e700f77b"]]);
1069
+ const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-eb63b66b"]]);
1069
1070
  exports.default = _Form;
@@ -138,20 +138,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
138
138
  ref_key: "innerComponentRef",
139
139
  ref: innerComponentRef,
140
140
  config: __props.config,
141
- localConfig: __props.localConfig
142
- }, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "document" ? (vue.openBlock(), vue.createBlock(vue.unref(index$7.Document), {
141
+ localConfig: __props.localConfig,
142
+ formMode: __props.formMode
143
+ }, null, 8, ["config", "localConfig", "formMode"])) : __props.config.fieldType == "document" ? (vue.openBlock(), vue.createBlock(vue.unref(index$7.Document), {
143
144
  key: 5,
144
145
  ref_key: "innerComponentRef",
145
146
  ref: innerComponentRef,
146
147
  config: __props.config,
147
- localConfig: __props.localConfig
148
- }, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "contract" ? (vue.openBlock(), vue.createBlock(vue.unref(index$8.Contract), {
148
+ localConfig: __props.localConfig,
149
+ formMode: __props.formMode
150
+ }, null, 8, ["config", "localConfig", "formMode"])) : __props.config.fieldType == "contract" ? (vue.openBlock(), vue.createBlock(vue.unref(index$8.Contract), {
149
151
  key: 6,
150
152
  ref_key: "innerComponentRef",
151
153
  ref: innerComponentRef,
152
154
  config: __props.config,
153
- localConfig: __props.localConfig
154
- }, null, 8, ["config", "localConfig"])) : __props.config.fieldType == "blank" || __props.config.fieldType == "divider" ? (vue.openBlock(), vue.createElementBlock("div", {
155
+ localConfig: __props.localConfig,
156
+ formMode: __props.formMode
157
+ }, null, 8, ["config", "localConfig", "formMode"])) : __props.config.fieldType == "blank" || __props.config.fieldType == "divider" ? (vue.openBlock(), vue.createElementBlock("div", {
155
158
  key: 7,
156
159
  class: vue.normalizeClass(__props.config.fieldType)
157
160
  }, null, 2)) : (vue.openBlock(), vue.createBlock(_component_el_form_item, {
@@ -204,5 +207,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
204
207
  };
205
208
  }
206
209
  });
207
- const _FormItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e00643b1"]]);
210
+ const _FormItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3657e72b"]]);
208
211
  exports.default = _FormItem;
@@ -5,8 +5,8 @@ require("../../../../../../node_modules/element-plus/es/index.js");
5
5
  ;/* empty css */
6
6
  ;/* empty css */
7
7
  const vue = require("vue");
8
- ;/* empty css */
9
8
  ;/* empty css */
9
+ ;/* empty css */
10
10
  ;/* empty css */
11
11
  const index$3 = require("../../dialog/index.js");
12
12
  ;/* empty css */
@@ -9,8 +9,8 @@ require("../../../../../node_modules/vxe-table/es/components.js");
9
9
  const index$3 = require("../../../../../node_modules/@element-plus/icons-vue/dist/index.js");
10
10
  const parseFilterConfig = require("../../utils/parseFilterConfig.js");
11
11
  const common = require("../../utils/common.js");
12
- ;/* empty css */
13
12
  ;/* empty css */
13
+ ;/* empty css */
14
14
  ;/* empty css */
15
15
  ;/* empty css */
16
16
  ;/* empty css */
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("vue");
4
4
  ;/* empty css */
5
- ;/* empty css */
6
5
  ;/* empty css */
6
+ ;/* empty css */
7
7
  ;/* empty css */
8
8
  ;/* empty css */
9
9
  ;/* empty css */
@@ -4,8 +4,8 @@ const vue = require("vue");
4
4
  const parseRouteParams = require("./parseRouteParams.js");
5
5
  require("../../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
- ;/* empty css */
8
7
  ;/* empty css */
8
+ ;/* empty css */
9
9
  ;/* empty css */
10
10
  const index = require("../../../../node_modules/element-plus/es/components/loading/index.js");
11
11
  const index$1 = require("../../../../node_modules/element-plus/es/components/message/index.js");
@@ -26,7 +26,9 @@ function calculate(params) {
26
26
  if (value[key]) data = value[key].map((o) => o[subKey]);
27
27
  }
28
28
  if (data !== void 0) {
29
- data = JSON.stringify(data);
29
+ if (typeof data != "string") {
30
+ data = JSON.stringify(data);
31
+ }
30
32
  const actualStart = startIndex + offset;
31
33
  const actualEnd = endIndex + offset;
32
34
  str = str.slice(0, actualStart) + data.toString() + str.slice(actualEnd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.4.24",
3
+ "version": "5.4.26",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [