@fecp/designer 5.6.11 → 5.6.14

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.
Files changed (29) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/layout/index.vue.mjs +44 -38
  3. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  4. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  5. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1 -0
  6. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  7. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  8. package/es/designer/src/packages/importantDataChange/index.vue.mjs +1 -1
  9. package/es/designer.css +90 -87
  10. package/es/packages/mobile/src/index.vue.mjs +3 -3
  11. package/es/packages/vue/src/components/bus/approvalHistory/timeLine.vue.mjs +1 -1
  12. package/es/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.mjs +2 -2
  13. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +15 -3
  14. package/es/packages/vue/src/utils/importantDataChange.mjs +0 -1
  15. package/lib/designer/package.json.js +1 -1
  16. package/lib/designer/src/layout/index.vue.js +61 -55
  17. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  18. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  19. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1 -0
  20. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  21. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  22. package/lib/designer/src/packages/importantDataChange/index.vue.js +1 -1
  23. package/lib/designer.css +90 -87
  24. package/lib/packages/mobile/src/index.vue.js +3 -3
  25. package/lib/packages/vue/src/components/bus/approvalHistory/timeLine.vue.js +1 -1
  26. package/lib/packages/vue/src/components/bus/flowChart/bpmnjs/component/timeline.vue.js +2 -2
  27. package/lib/packages/vue/src/components/forms/form/Form.vue.js +14 -2
  28. package/lib/packages/vue/src/utils/importantDataChange.js +0 -1
  29. package/package.json +1 -1
@@ -146,12 +146,12 @@ const _sfc_main = {
146
146
  pageParams.value = JSON.parse(routeParams);
147
147
  }
148
148
  eventBus.default.on("loadPage", ({ pageId, params }) => {
149
- loadPage(pageId);
150
149
  pageParams.value = params;
150
+ loadPage(pageId);
151
151
  });
152
152
  eventBus.default.on("replaceLoadPage", ({ pageId, params }) => {
153
- loadPage(pageId, true);
154
153
  pageParams.value = params;
154
+ loadPage(pageId, true);
155
155
  });
156
156
  eventBus.default.on("refreshPage", () => {
157
157
  refreshCurrentPage();
@@ -257,5 +257,5 @@ const _sfc_main = {
257
257
  };
258
258
  }
259
259
  };
260
- const MobileApp = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3f56bbe1"]]);
260
+ const MobileApp = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-32479e3c"]]);
261
261
  exports.default = MobileApp;
@@ -28,7 +28,7 @@ const _hoisted_4 = {
28
28
  class: "appContent"
29
29
  };
30
30
  const _hoisted_5 = { class: "openTask" };
31
- const _hoisted_6 = { style: { "font-weight": "bold" } };
31
+ const _hoisted_6 = { style: { "font-weight": "bold", "flex": "1", "display": "flex", "width": "0", "margin-right": "12px" } };
32
32
  const _hoisted_7 = {
33
33
  key: 0,
34
34
  class: "appAssignee"
@@ -22,7 +22,7 @@ const _hoisted_5 = {
22
22
  class: "appContent"
23
23
  };
24
24
  const _hoisted_6 = { class: "openTask" };
25
- const _hoisted_7 = { style: { "font-weight": "bold" } };
25
+ const _hoisted_7 = { style: { "font-weight": "bold", "flex": "1", "display": "flex", "width": "0", "margin-right": "12px" } };
26
26
  const _hoisted_8 = {
27
27
  key: 0,
28
28
  class: "appAssignee"
@@ -253,5 +253,5 @@ const _sfc_main = {
253
253
  };
254
254
  }
255
255
  };
256
- const timeline = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4d562e1e"]]);
256
+ const timeline = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ce9dc48a"]]);
257
257
  exports.default = timeline;
@@ -163,9 +163,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
163
163
  }
164
164
  }
165
165
  );
166
+ let isSyncingToParent = false;
166
167
  Vue.watch(
167
168
  () => props.modelValue,
168
169
  (newVal, oldVal) => {
170
+ if (isSyncingToParent) return;
169
171
  if (JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
170
172
  loadFormData("change");
171
173
  }
@@ -931,8 +933,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
931
933
  }
932
934
  return result;
933
935
  };
936
+ let isApplyingLinkage = false;
934
937
  const applyLinkageEffectsForChangedFields = (changedFieldNames) => {
935
938
  var _a;
939
+ if (isApplyingLinkage) return;
940
+ isApplyingLinkage = true;
936
941
  const linkedConfig = localConfig.value.linkedConfig || {};
937
942
  const fields = [...fieldsData.value, ...hiddenFields.value];
938
943
  const relevantConfigs = filterRelevantLinkageConfigs(
@@ -955,7 +960,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
955
960
  value: formData.value,
956
961
  fieldsList: fields
957
962
  });
958
- formData.value[field.fieldName] = calcResult;
963
+ if (!common.isEqual(formData.value[field.fieldName], calcResult)) {
964
+ formData.value[field.fieldName] = calcResult;
965
+ }
959
966
  }
960
967
  });
961
968
  }
@@ -1071,6 +1078,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1071
1078
  const fieldsConfigArr = updatedLayoutData.filter((item) => !item.hidden);
1072
1079
  gridLayoutFieldsData.value = sortLayoutItems(fieldsConfigArr);
1073
1080
  (_a = gridLayout == null ? void 0 : gridLayout.value) == null ? void 0 : _a.resizeEvent();
1081
+ isApplyingLinkage = false;
1074
1082
  };
1075
1083
  function sortLayoutItems(arr) {
1076
1084
  return [...arr].sort((a, b) => {
@@ -1150,7 +1158,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1150
1158
  applyLinkageEffectsForChangedFields(changedFields);
1151
1159
  }
1152
1160
  prevFormData.value = { ...formData.value };
1161
+ isSyncingToParent = true;
1153
1162
  emit("update:modelValue", getFormData());
1163
+ Vue.nextTick(() => {
1164
+ isSyncingToParent = false;
1165
+ });
1154
1166
  },
1155
1167
  { deep: true }
1156
1168
  );
@@ -1320,5 +1332,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1320
1332
  };
1321
1333
  }
1322
1334
  });
1323
- const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5a2b92b9"]]);
1335
+ const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2a14b0ea"]]);
1324
1336
  exports.default = _Form;
@@ -89,7 +89,6 @@ class ImportantDataChangeManager {
89
89
  }
90
90
  /**
91
91
  * 拉取所有配置组的变更日志
92
- * TODO: 替换 mock API 为真实后端接口
93
92
  */
94
93
  async fetchChanges() {
95
94
  const allRecords = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.6.11",
3
+ "version": "5.6.14",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [