@fecp/designer 5.4.66 → 5.4.68

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 (31) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/packages/form/components/H2Wrapper.vue.mjs +1 -1
  3. package/es/designer/src/packages/form/components/SubTitle.vue.mjs +1 -1
  4. package/es/designer/src/packages/form/property/widgets.vue.mjs +7 -16
  5. package/es/designer.css +126 -96
  6. package/es/packages/mobile/src/components/navigation/navBar/NavBar.vue.mjs +1 -0
  7. package/es/packages/vue/src/components/details/header/Header.vue.mjs +5 -5
  8. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +2 -1
  9. package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +1 -1
  10. package/es/packages/vue/src/components/forms/subTitle/SubTitle.vue.mjs +1 -1
  11. package/es/packages/vue/src/components/layout/Layout.vue.mjs +4 -6
  12. package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +2 -2
  13. package/es/packages/vue/src/components/table/Pagination.vue.mjs +1 -1
  14. package/es/packages/vue/src/components/table/Table.vue.mjs +4 -4
  15. package/es/packages/vue/src/utils/formulajs/calculate.mjs +2 -0
  16. package/lib/designer/package.json.js +1 -1
  17. package/lib/designer/src/packages/form/components/H2Wrapper.vue.js +1 -1
  18. package/lib/designer/src/packages/form/components/SubTitle.vue.js +1 -1
  19. package/lib/designer/src/packages/form/property/widgets.vue.js +30 -39
  20. package/lib/designer.css +126 -96
  21. package/lib/packages/mobile/src/components/navigation/navBar/NavBar.vue.js +1 -0
  22. package/lib/packages/vue/src/components/details/header/Header.vue.js +4 -4
  23. package/lib/packages/vue/src/components/forms/form/Form.vue.js +2 -1
  24. package/lib/packages/vue/src/components/forms/h2/H2.vue.js +1 -1
  25. package/lib/packages/vue/src/components/forms/subTitle/SubTitle.vue.js +1 -1
  26. package/lib/packages/vue/src/components/layout/Layout.vue.js +4 -6
  27. package/lib/packages/vue/src/components/table/CustomButtons.vue.js +2 -2
  28. package/lib/packages/vue/src/components/table/Pagination.vue.js +1 -1
  29. package/lib/packages/vue/src/components/table/Table.vue.js +3 -3
  30. package/lib/packages/vue/src/utils/formulajs/calculate.js +2 -0
  31. package/package.json +1 -1
@@ -13,6 +13,7 @@ const _sfc_main = {
13
13
  return openBlock(), createBlock(_component_van_nav_bar, mergeProps(_ctx.$attrs, {
14
14
  fixed: false,
15
15
  "safe-area-inset-top": "",
16
+ clickable: "",
16
17
  onClickLeft
17
18
  }), createSlots({ _: 2 }, [
18
19
  renderList(_ctx.$slots, (item, key) => {
@@ -4,7 +4,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import { computed, createBlock, createCommentVNode, openBlock, normalizeClass, unref, createSlots, withCtx, createElementVNode, toDisplayString, createElementBlock, Fragment, renderList, createTextVNode } from "vue";
7
- import { ArrowLeft as arrow_left_default } from "../../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
7
+ import { ArrowLeftBold as arrow_left_bold_default } from "../../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
8
8
  import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
9
9
  /* empty css */
10
10
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -74,15 +74,15 @@ const _sfc_main = {
74
74
  const _component_el_page_header = ElPageHeader;
75
75
  return ((_a = __props.pageHeaderConfig) == null ? void 0 : _a.enabled) ? (openBlock(), createBlock(_component_el_page_header, {
76
76
  key: 0,
77
- icon: unref(canBack) ? unref(arrow_left_default) : null,
77
+ icon: unref(canBack) ? unref(arrow_left_bold_default) : null,
78
78
  onBack: handleBack,
79
79
  class: normalizeClass(["fec-header", { "can-not-back": !unref(canBack) }])
80
80
  }, createSlots({
81
81
  content: withCtx(() => {
82
82
  var _a2, _b2;
83
83
  return [
84
- createElementVNode("span", _hoisted_1, toDisplayString((_a2 = __props.pageHeaderConfig) == null ? void 0 : _a2.title), 1),
85
- createElementVNode("span", _hoisted_2, toDisplayString((_b2 = __props.pageHeaderConfig) == null ? void 0 : _b2.subTitle), 1)
84
+ createElementVNode("div", _hoisted_1, toDisplayString((_a2 = __props.pageHeaderConfig) == null ? void 0 : _a2.title), 1),
85
+ createElementVNode("div", _hoisted_2, toDisplayString((_b2 = __props.pageHeaderConfig) == null ? void 0 : _b2.subTitle), 1)
86
86
  ];
87
87
  }),
88
88
  _: 2
@@ -112,7 +112,7 @@ const _sfc_main = {
112
112
  };
113
113
  }
114
114
  };
115
- const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9c9b2c67"]]);
115
+ const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ed71ead2"]]);
116
116
  export {
117
117
  component as default
118
118
  };
@@ -1030,6 +1030,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1030
1030
  "label-position": localConfig.value.labelPosition,
1031
1031
  style: normalizeStyle({ padding: __props.isSubForm || __props.isDialog ? "0" : "18px" }),
1032
1032
  "validate-on-rule-change": false,
1033
+ size: "large",
1033
1034
  "scroll-to-error": ""
1034
1035
  }, {
1035
1036
  default: withCtx(() => [
@@ -1087,7 +1088,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1087
1088
  };
1088
1089
  }
1089
1090
  });
1090
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-93f83bd7"]]);
1091
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6724c26e"]]);
1091
1092
  export {
1092
1093
  _Form as default
1093
1094
  };
@@ -36,7 +36,7 @@ const _sfc_main = {
36
36
  };
37
37
  }
38
38
  };
39
- const _H2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6852826d"]]);
39
+ const _H2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2e23c430"]]);
40
40
  export {
41
41
  _H2 as default
42
42
  };
@@ -21,7 +21,7 @@ const _sfc_main = {
21
21
  };
22
22
  }
23
23
  };
24
- const _SubTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b0291d18"]]);
24
+ const _SubTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fa65f3d4"]]);
25
25
  export {
26
26
  _SubTitle as default
27
27
  };
@@ -27,10 +27,6 @@ const _sfc_main = {
27
27
  initFormData: {
28
28
  type: Object,
29
29
  default: {}
30
- },
31
- isDialog: {
32
- type: Boolean,
33
- default: false
34
30
  }
35
31
  },
36
32
  emits: ["loaded"],
@@ -40,6 +36,7 @@ const _sfc_main = {
40
36
  const formData = ref(props.initFormData);
41
37
  const emit = __emit;
42
38
  const showCard = ref(false);
39
+ const isDialog = ref(false);
43
40
  function loaded(option, formData2) {
44
41
  showCard.value = true;
45
42
  const layoutEl = layoutRowRef.value.$el;
@@ -50,6 +47,7 @@ const _sfc_main = {
50
47
  cols.forEach((col) => {
51
48
  col.style.height = offsetHeight + "px";
52
49
  });
50
+ isDialog.value = true;
53
51
  }
54
52
  emit("loaded", cloneDeep(formData2));
55
53
  }
@@ -77,7 +75,7 @@ const _sfc_main = {
77
75
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(formData) ? formData.value = $event : null),
78
76
  onLoaded: loaded,
79
77
  initFormMode: __props.initFormMode,
80
- isDialog: __props.isDialog
78
+ isDialog: unref(isDialog)
81
79
  }, null, 8, ["templateKey", "modelValue", "initFormMode", "isDialog"])
82
80
  ]),
83
81
  _: 1
@@ -102,7 +100,7 @@ const _sfc_main = {
102
100
  };
103
101
  }
104
102
  };
105
- const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5bbe4a19"]]);
103
+ const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b2246cdb"]]);
106
104
  export {
107
105
  _Layout as default
108
106
  };
@@ -126,7 +126,7 @@ const _sfc_main = {
126
126
  !__props.readOnly && !__props.isSubTable && hasButtons.value ? (openBlock(), createBlock(unref(VxeToolbar), {
127
127
  key: 2,
128
128
  ref: "toolbarRef",
129
- style: { "flex": "1", "margin-bottom": "8px" }
129
+ style: { "flex": "1", "margin-bottom": "0", "padding": "0" }
130
130
  }, {
131
131
  buttons: withCtx(() => [
132
132
  leftButtons.value.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(leftButtons.value, (btn) => {
@@ -164,7 +164,7 @@ const _sfc_main = {
164
164
  };
165
165
  }
166
166
  };
167
- const CustomButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fefc9244"]]);
167
+ const CustomButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9bffe68b"]]);
168
168
  export {
169
169
  CustomButtons as default
170
170
  };
@@ -105,7 +105,7 @@ const _sfc_main = {
105
105
  };
106
106
  }
107
107
  };
108
- const Pagination = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e9a95efa"]]);
108
+ const Pagination = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2a21f226"]]);
109
109
  export {
110
110
  Pagination as default
111
111
  };
@@ -5,7 +5,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
- import { ref, getCurrentInstance, computed, reactive, watch, onMounted, onUnmounted, createBlock, openBlock, withCtx, createElementBlock, createCommentVNode, normalizeStyle, createElementVNode, Fragment, createVNode, unref, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
8
+ import { ref, getCurrentInstance, computed, reactive, watch, onMounted, onUnmounted, createBlock, openBlock, normalizeClass, withCtx, createElementBlock, createCommentVNode, normalizeStyle, createElementVNode, Fragment, createVNode, unref, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
9
9
  import "../../../../../node_modules/vxe-table/es/components.mjs";
10
10
  /* empty css */
11
11
  import { createDataSource } from "../../utils/datasource.mjs";
@@ -719,7 +719,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
719
719
  const _component_el_container = ElContainer;
720
720
  return openBlock(), createBlock(_component_el_container, {
721
721
  direction: "vertical",
722
- class: "fec-table",
722
+ class: normalizeClass(`fec-table ${__props.isSubTable ? "fec-table-sub" : ""}`),
723
723
  "data-id": localConfig.value.templateKey,
724
724
  "data-name": localConfig.value.templateName,
725
725
  "data-pkId": localConfig.value.pkId,
@@ -827,11 +827,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
827
827
  ];
828
828
  }),
829
829
  _: 3
830
- }, 8, ["data-id", "data-name", "data-pkId"]);
830
+ }, 8, ["class", "data-id", "data-name", "data-pkId"]);
831
831
  };
832
832
  }
833
833
  });
834
- const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a151967c"]]);
834
+ const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1668bb1b"]]);
835
835
  export {
836
836
  _Table as default
837
837
  };
@@ -49,6 +49,8 @@ function calculate(params) {
49
49
  }
50
50
  data = JSON.stringify(data);
51
51
  }
52
+ } else {
53
+ data = JSON.stringify(data);
52
54
  }
53
55
  const actualStart = startIndex + offset;
54
56
  const actualEnd = endIndex + offset;
@@ -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.66";
3
+ const version = "5.4.68";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -31,5 +31,5 @@ const _sfc_main = {
31
31
  };
32
32
  }
33
33
  };
34
- const H2Wrapper = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-0ac00fd2"]]);
34
+ const H2Wrapper = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2078e9ec"]]);
35
35
  exports.default = H2Wrapper;
@@ -23,5 +23,5 @@ const _sfc_main = {
23
23
  };
24
24
  }
25
25
  };
26
- const SubTitle = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-cfe3fbff"]]);
26
+ const SubTitle = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-9a8598bc"]]);
27
27
  exports.default = SubTitle;
@@ -23,7 +23,7 @@ const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
23
23
  const vue = require("vue");
24
24
  const common = require("../../utils/common.js");
25
25
  const OptionConfig = require("../../../components/OptionConfig.vue.js");
26
- const index$1 = require("../aside/index.js");
26
+ const index = require("../aside/index.js");
27
27
  const EventConfigButton = require("../../../components/EventConfigButton.vue.js");
28
28
  const DataSourceSelect = require("../../../components/DataSourceSelect.vue.js");
29
29
  const ConditionConfigButton = ;/* empty css */
@@ -32,7 +32,7 @@ const eventBus = require("../../utils/eventBus.js");
32
32
  const FieldSetMapping = require("../../../components/FieldSetMapping.vue2.js");
33
33
  const OnlyFLowConfigButton = ;/* empty css */
34
34
  const FormulaEditorInput = require("../../../components/FormulaEditorInput.vue.js");
35
- const index$2 = require("../../../api/index.js");
35
+ const index$1 = require("../../../api/index.js");
36
36
  ;/* empty css */
37
37
  ;/* empty css */
38
38
  ;/* empty css */
@@ -56,16 +56,16 @@ require("../../table/default.js");
56
56
  ;/* empty css */
57
57
  ;/* empty css */
58
58
  ;/* empty css */
59
- const index = require("../../../store/index.js");
59
+ require("../../../store/index.js");
60
60
  ;/* empty css */
61
- const index$3 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
62
- const index$4 = require("../../../../../node_modules/element-plus/es/components/select/index.js");
63
- const index$5 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
64
- const index$6 = require("../../../../../node_modules/element-plus/es/components/input/index.js");
65
- const index$7 = require("../../../../../node_modules/element-plus/es/components/checkbox/index.js");
66
- const index$8 = require("../../../../../node_modules/element-plus/es/components/radio/index.js");
67
- const index$9 = require("../../../../../node_modules/element-plus/es/components/input-number/index.js");
68
- const index$a = require("../../../../../node_modules/element-plus/es/components/switch/index.js");
61
+ const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
62
+ const index$3 = require("../../../../../node_modules/element-plus/es/components/select/index.js");
63
+ const index$4 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
64
+ const index$5 = require("../../../../../node_modules/element-plus/es/components/input/index.js");
65
+ const index$6 = require("../../../../../node_modules/element-plus/es/components/checkbox/index.js");
66
+ const index$7 = require("../../../../../node_modules/element-plus/es/components/radio/index.js");
67
+ const index$8 = require("../../../../../node_modules/element-plus/es/components/input-number/index.js");
68
+ const index$9 = require("../../../../../node_modules/element-plus/es/components/switch/index.js");
69
69
  const _hoisted_1 = {
70
70
  key: 0,
71
71
  class: "data-source-fields"
@@ -104,17 +104,8 @@ const _hoisted_20 = {
104
104
  const _sfc_main = {
105
105
  __name: "widgets",
106
106
  setup(__props) {
107
- const currentItem = vue.computed({
108
- get: () => {
109
- const item = index.default.getters.selectedItem;
110
- if (item) {
111
- return vue.reactive({ ...index$1.defaultProperty, ...item });
112
- }
113
- return item;
114
- },
115
- set(value) {
116
- index.default.commit("set_selected_item", value);
117
- }
107
+ const currentItem = vue.computed(() => {
108
+ return common.getCurrentItem();
118
109
  });
119
110
  const activeName = vue.ref(["common"]);
120
111
  const validationRules = {
@@ -157,8 +148,8 @@ const _sfc_main = {
157
148
  ];
158
149
  });
159
150
  const fieldTypes = vue.computed(() => {
160
- const basicComponents = index$1.default.find((c) => c.name === "basic");
161
- const advancedComponents = index$1.default.find((c) => c.name === "advanced");
151
+ const basicComponents = index.default.find((c) => c.name === "basic");
152
+ const advancedComponents = index.default.find((c) => c.name === "advanced");
162
153
  return [...basicComponents == null ? void 0 : basicComponents.children, ...advancedComponents == null ? void 0 : advancedComponents.children];
163
154
  });
164
155
  function handleFieldTypeChange(fieldType) {
@@ -228,7 +219,7 @@ const _sfc_main = {
228
219
  const loadGlobalDialogs = async () => {
229
220
  dialogLoading.value = true;
230
221
  try {
231
- const response = await index$2.default.getAllTemplateDialog();
222
+ const response = await index$1.default.getAllTemplateDialog();
232
223
  globalDialogs.value = [];
233
224
  for (let dialog of response) {
234
225
  globalDialogs.value.push({
@@ -273,7 +264,7 @@ const _sfc_main = {
273
264
  const tableId = currDialog.value.subTableId;
274
265
  if (tableId) {
275
266
  try {
276
- const response = await index$2.default.getById(tableId, false);
267
+ const response = await index$1.default.getById(tableId, false);
277
268
  tableOptions.value = JSON.parse(response.context);
278
269
  console.log("🚀 ~ 需要获取表格配置,表格ID:", tableId);
279
270
  } catch (error) {
@@ -310,19 +301,19 @@ const _sfc_main = {
310
301
  // }
311
302
  );
312
303
  return (_ctx, _cache) => {
313
- const _component_el_option = index$4.ElOption;
314
- const _component_el_select = index$4.ElSelect;
315
- const _component_el_input = index$6.ElInput;
316
- const _component_el_form_item = index$5.ElFormItem;
317
- const _component_el_checkbox = index$7.ElCheckbox;
318
- const _component_el_radio_button = index$8.ElRadioButton;
319
- const _component_el_radio_group = index$8.ElRadioGroup;
320
- const _component_el_input_number = index$9.ElInputNumber;
321
- const _component_el_switch = index$a.ElSwitch;
304
+ const _component_el_option = index$3.ElOption;
305
+ const _component_el_select = index$3.ElSelect;
306
+ const _component_el_input = index$5.ElInput;
307
+ const _component_el_form_item = index$4.ElFormItem;
308
+ const _component_el_checkbox = index$6.ElCheckbox;
309
+ const _component_el_radio_button = index$7.ElRadioButton;
310
+ const _component_el_radio_group = index$7.ElRadioGroup;
311
+ const _component_el_input_number = index$8.ElInputNumber;
312
+ const _component_el_switch = index$9.ElSwitch;
322
313
  const _component_ParamsConfig = ParamsConfig.default;
323
- const _component_el_form = index$5.ElForm;
324
- const _component_el_collapse_item = index$3.ElCollapseItem;
325
- const _component_el_collapse = index$3.ElCollapse;
314
+ const _component_el_form = index$4.ElForm;
315
+ const _component_el_collapse_item = index$2.ElCollapseItem;
316
+ const _component_el_collapse = index$2.ElCollapse;
326
317
  return vue.openBlock(), vue.createBlock(_component_el_collapse, {
327
318
  class: "setting",
328
319
  modelValue: vue.unref(activeName),
@@ -1200,5 +1191,5 @@ const _sfc_main = {
1200
1191
  };
1201
1192
  }
1202
1193
  };
1203
- const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8b0152bc"]]);
1194
+ const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-70b9496e"]]);
1204
1195
  exports.default = widgets;