@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
@@ -1,4 +1,4 @@
1
- const version = "5.6.11";
1
+ const version = "5.6.14";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -7,18 +7,18 @@ import "../../../node_modules/element-plus/es/index.mjs";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  import "../../../node_modules/element-plus/theme-chalk/el-config-provider.css.mjs";
10
- import { getCurrentInstance, ref, computed, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent } from "vue";
10
+ import { getCurrentInstance, ref, computed, onMounted, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent } from "vue";
11
11
  import zh_cn_default from "../../../node_modules/element-plus/es/locale/lang/zh-cn.mjs";
12
12
  import LayoutAside from "./aside/index.vue.mjs";
13
13
  import _sfc_main$1 from "./header/index.vue.mjs";
14
14
  import LayoutProperty from "./property/index.vue.mjs";
15
15
  import tableWorkArea from "../packages/table/index.vue.mjs";
16
16
  import formWorkArea from "../packages/form/index.vue.mjs";
17
- import store from "../store/index.mjs";
18
- import { setEditConfigData, setSelectedItem, setHoverItem } from "../packages/utils/common.mjs";
17
+ import { setSelectedItem, setHoverItem, setEditConfigData } from "../packages/utils/common.mjs";
19
18
  import api from "../api/index.mjs";
20
19
  import { defaultTableConfig } from "../packages/table/default.mjs";
21
20
  import { defaultFormConfig } from "../packages/form/default.mjs";
21
+ import { useStore } from "../../../node_modules/vuex/dist/vuex.esm-bundler.mjs";
22
22
  /* empty css */
23
23
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
24
24
  import { ElConfigProvider } from "../../../node_modules/element-plus/es/components/config-provider/index.mjs";
@@ -31,45 +31,48 @@ const _hoisted_1 = {
31
31
  const _sfc_main = {
32
32
  __name: "index",
33
33
  setup(__props) {
34
+ const store = useStore();
34
35
  const currentInstance = getCurrentInstance();
35
36
  const ctx = currentInstance.proxy;
36
37
  const pkId = getUrlParam("pkId");
37
38
  const isInitd = ref(0);
38
39
  const compRef = ref(null);
39
- if (!pkId) {
40
- isInitd.value = -1;
41
- } else {
42
- api.login4dev(ctx.$http).then((data) => {
43
- store.commit("set_token", data.token);
44
- store.commit("set_refreshToken", data.refreshToken);
45
- api.getById(ctx.$http, pkId).then((data2) => {
46
- const templateName = data2.templateName;
47
- const templateKey = data2.templateKey;
48
- document.title = templateName || "表单设计器";
49
- if (data2.type == "table") {
50
- const tableOptions = ref({
51
- pkId,
52
- templateName,
53
- templateKey,
54
- ...defaultTableConfig,
55
- ...JSON.parse(data2.context)
56
- });
57
- setEditConfigData(tableOptions.value);
58
- isInitd.value = 1;
59
- } else if (data2.type == "form") {
60
- const formOptions = ref({
61
- pkId,
62
- templateName,
63
- templateKey,
64
- ...defaultFormConfig,
65
- ...JSON.parse(data2.context)
66
- });
67
- setEditConfigData(formOptions.value);
68
- isInitd.value = 1;
69
- }
70
- store.commit("set_editing_type", data2.type);
71
- });
72
- });
40
+ async function init() {
41
+ if (!pkId) {
42
+ isInitd.value = -1;
43
+ } else {
44
+ if (!store.getters.token) {
45
+ const resData = await api.login4dev(ctx.$http);
46
+ store.commit("set_token", resData.token);
47
+ store.commit("set_refreshToken", resData.refreshToken);
48
+ }
49
+ const data = await api.getById(ctx.$http, pkId);
50
+ const templateName = data.templateName;
51
+ const templateKey = data.templateKey;
52
+ document.title = templateName || "表单设计器";
53
+ if (data.type == "table") {
54
+ const tableOptions = ref({
55
+ pkId,
56
+ templateName,
57
+ templateKey,
58
+ ...defaultTableConfig,
59
+ ...JSON.parse(data.context)
60
+ });
61
+ setEditConfigData(tableOptions.value);
62
+ isInitd.value = 1;
63
+ } else if (data.type == "form") {
64
+ const formOptions = ref({
65
+ pkId,
66
+ templateName,
67
+ templateKey,
68
+ ...defaultFormConfig,
69
+ ...JSON.parse(data.context)
70
+ });
71
+ setEditConfigData(formOptions.value);
72
+ isInitd.value = 1;
73
+ }
74
+ store.commit("set_editing_type", data.type);
75
+ }
73
76
  }
74
77
  const editingArea = computed(() => {
75
78
  switch (store.getters.editingType) {
@@ -95,6 +98,9 @@ const _sfc_main = {
95
98
  if (values.length === 0) return null;
96
99
  return values.length === 1 ? values[0] : values;
97
100
  }
101
+ onMounted(() => {
102
+ init();
103
+ });
98
104
  return (_ctx, _cache) => {
99
105
  const _component_el_config_provider = ElConfigProvider;
100
106
  const _component_el_main = ElMain;
@@ -144,7 +150,7 @@ const _sfc_main = {
144
150
  };
145
151
  }
146
152
  };
147
- const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ae1b4337"]]);
153
+ const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10018284"]]);
148
154
  export {
149
155
  layout as default
150
156
  };
@@ -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);
@@ -85,7 +85,7 @@ import widgets from "../table/property/widgets.vue.mjs";
85
85
  import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
86
86
  /* empty css */
87
87
  /* empty css */
88
- /* empty css */
88
+ /* empty css */
89
89
  /* empty css */
90
90
  /* empty css */
91
91
  /* empty css */
@@ -74,6 +74,7 @@ import widgets from "../table/property/widgets.vue.mjs";
74
74
  /* empty css */
75
75
  /* empty css */
76
76
  /* empty css */
77
+ /* empty css */
77
78
  /* empty css */
78
79
  /* empty css */
79
80
  /* empty css */
@@ -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";
@@ -178,7 +178,7 @@ const _sfc_main = {
178
178
  };
179
179
  }
180
180
  };
181
- const ImportantDataChangeDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e3b38158"]]);
181
+ const ImportantDataChangeDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ed2c5a64"]]);
182
182
  export {
183
183
  ImportantDataChangeDialog as default
184
184
  };