@fecp/designer 5.5.98 → 5.5.100

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 (25) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/FieldSetMapping.vue2.mjs +1 -2
  3. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  4. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  5. package/es/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +23 -11
  6. package/es/designer/src/packages/form/property/widgets.vue.mjs +108 -84
  7. package/es/designer.css +147 -144
  8. package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +16 -17
  9. package/es/packages/mobile/src/components/navigation/tabs/Tabs.vue.mjs +9 -8
  10. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +11 -2
  11. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +22 -5
  12. package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +1 -1
  13. package/lib/designer/package.json.js +1 -1
  14. package/lib/designer/src/components/FieldSetMapping.vue2.js +1 -2
  15. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  16. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  17. package/lib/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +25 -13
  18. package/lib/designer/src/packages/form/property/widgets.vue.js +108 -84
  19. package/lib/designer.css +147 -144
  20. package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +15 -16
  21. package/lib/packages/mobile/src/components/navigation/tabs/Tabs.vue.js +8 -7
  22. package/lib/packages/vue/src/components/forms/form/Form.vue.js +11 -2
  23. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +23 -6
  24. package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +1 -1
  25. package/package.json +1 -1
@@ -1,33 +1,32 @@
1
- import { createElementBlock, createCommentVNode, openBlock, createElementVNode } from "vue";
1
+ import { computed, resolveComponent, createBlock, openBlock, unref } from "vue";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const _hoisted_1 = {
5
- key: 0,
6
- class: "route-wrapper"
7
- };
8
4
  const _sfc_main = {
9
5
  __name: "AppDetail",
10
6
  props: {
11
- isDev: {
12
- type: Boolean,
13
- default: false
14
- },
15
7
  //任务对象+流程变量
16
- data: {
17
- type: Object,
18
- default: {}
8
+ options: {
9
+ type: Array,
10
+ default: []
19
11
  }
20
12
  },
21
13
  setup(__props) {
14
+ const props = __props;
15
+ const tabsOptions = computed(() => {
16
+ return [
17
+ { id: "tab_base_info", title: "基本信息" },
18
+ ...props.options || [],
19
+ { id: "tab_doc_info", title: "要件信息" },
20
+ { id: "tab_timeline_info", title: "审批历史" }
21
+ ];
22
+ });
22
23
  return (_ctx, _cache) => {
23
- return __props.isDev ? (openBlock(), createElementBlock("div", _hoisted_1, _cache[0] || (_cache[0] = [
24
- createElementVNode("div", { class: "route-hint" }, "根据配置动态显示审批详情页面", -1),
25
- createElementVNode("div", { class: "route-hint" }, "传递 任务对象+流程变量 到页面中", -1)
26
- ]))) : createCommentVNode("", true);
24
+ const _component_FecMobileTabs = resolveComponent("FecMobileTabs");
25
+ return openBlock(), createBlock(_component_FecMobileTabs, { options: unref(tabsOptions) }, null, 8, ["options"]);
27
26
  };
28
27
  }
29
28
  };
30
- const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6cf862c9"]]);
29
+ const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8844ccf3"]]);
31
30
  export {
32
31
  _AppDetail as default
33
32
  };
@@ -5,12 +5,11 @@
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
- import { computed, createElementBlock, openBlock, normalizeStyle, unref, createVNode, createElementVNode, isRef, withCtx, Fragment, renderList, createBlock, mergeProps, renderSlot } from "vue";
8
+ import { computed, createElementBlock, openBlock, normalizeStyle, unref, createVNode, isRef, withCtx, Fragment, renderList, createBlock, mergeProps, createTextVNode, toDisplayString } from "vue";
9
9
  /* empty css */
10
10
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
11
11
  import { Tabs } from "../../../../node_modules/vant/es/tabs/index.mjs";
12
12
  import { Tab } from "../../../../node_modules/vant/es/tab/index.mjs";
13
- const _hoisted_1 = { class: "fec-tab-content" };
14
13
  const _sfc_main = {
15
14
  __name: "Tabs",
16
15
  props: {
@@ -70,19 +69,21 @@ const _sfc_main = {
70
69
  return openBlock(), createBlock(_component_van_tab, mergeProps({ ref_for: true }, item, {
71
70
  replace: "",
72
71
  "show-zero-badge": false
73
- }), null, 16);
72
+ }), {
73
+ default: withCtx(() => [
74
+ createTextVNode(toDisplayString(item.title), 1)
75
+ ]),
76
+ _: 2
77
+ }, 1040);
74
78
  }), 256))
75
79
  ]),
76
80
  _: 1
77
- }, 8, ["active"]),
78
- createElementVNode("div", _hoisted_1, [
79
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
80
- ])
81
+ }, 8, ["active"])
81
82
  ], 4);
82
83
  };
83
84
  }
84
85
  };
85
- const _Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a014f592"]]);
86
+ const _Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b46f66e8"]]);
86
87
  export {
87
88
  _Tabs as default
88
89
  };
@@ -558,6 +558,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
558
558
  }
559
559
  });
560
560
  }
561
+ function handleLabelLink(config) {
562
+ var _a;
563
+ handleEvent.value(
564
+ getFormData(),
565
+ config,
566
+ (_a = config.labelLinkEventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
567
+ );
568
+ }
561
569
  const gridLayoutFieldsData = ref([]);
562
570
  const oriGridLayoutData = ref([]);
563
571
  const formItemRefs = ref(/* @__PURE__ */ new Map());
@@ -1228,7 +1236,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1228
1236
  error: getFieldError(component.fieldName),
1229
1237
  formRef: formRef.value,
1230
1238
  formMode: formMode.value,
1231
- onChange: handleFieldChange
1239
+ onChange: handleFieldChange,
1240
+ onLabelLink: handleLabelLink
1232
1241
  }, null, 8, ["modelValue", "onUpdate:modelValue", "config", "localConfig", "error", "formRef", "formMode"])
1233
1242
  ]),
1234
1243
  _: 1
@@ -1280,7 +1289,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1280
1289
  };
1281
1290
  }
1282
1291
  });
1283
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-045897e3"]]);
1292
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4436064b"]]);
1284
1293
  export {
1285
1294
  _Form as default
1286
1295
  };
@@ -3,7 +3,8 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import "../../../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
6
- import { computed, ref, createBlock, createElementBlock, openBlock, unref, normalizeClass, createSlots, withCtx, createCommentVNode, resolveDynamicComponent, mergeProps, createElementVNode, toDisplayString } from "vue";
6
+ /* empty css */
7
+ import { computed, ref, createBlock, createElementBlock, openBlock, unref, normalizeClass, createSlots, withCtx, createCommentVNode, resolveDynamicComponent, mergeProps, withModifiers, createTextVNode, toDisplayString, createElementVNode } from "vue";
7
8
  import { debounce } from "../form/debounce.mjs";
8
9
  import { SubTitle } from "../subTitle/index.mjs";
9
10
  import { H2 } from "../h2/index.mjs";
@@ -17,6 +18,7 @@ import * as index from "../../bus/index.mjs";
17
18
  /* empty css */
18
19
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
19
20
  import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
21
+ import { ElLink } from "../../../../../../node_modules/element-plus/es/components/link/index.mjs";
20
22
  import { ElTooltip } from "../../../../../../node_modules/element-plus/es/components/tooltip/index.mjs";
21
23
  const _hoisted_1 = {
22
24
  key: 0,
@@ -26,6 +28,7 @@ const _hoisted_2 = {
26
28
  key: 1,
27
29
  class: "iconfont icon-iconJian regulation-icon"
28
30
  };
31
+ const _hoisted_3 = { key: 3 };
29
32
  const _sfc_main = /* @__PURE__ */ Object.assign({
30
33
  inheritAttrs: false
31
34
  }, {
@@ -56,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
56
59
  default: ""
57
60
  }
58
61
  },
59
- emits: ["update:modelValue", "change"],
62
+ emits: ["update:modelValue", "change", "labelLink"],
60
63
  setup(__props, { expose: __expose, emit: __emit }) {
61
64
  const props = __props;
62
65
  const emit = __emit;
@@ -101,6 +104,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
101
104
  }
102
105
  }
103
106
  });
107
+ function handleLabelLink() {
108
+ emit("labelLink", props.config);
109
+ }
104
110
  const getInnerComponentRef = () => {
105
111
  return innerComponentRef.value;
106
112
  };
@@ -109,6 +115,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
109
115
  getInnerComponentRef
110
116
  });
111
117
  return (_ctx, _cache) => {
118
+ const _component_el_link = ElLink;
112
119
  const _component_el_tooltip = ElTooltip;
113
120
  const _component_el_form_item = ElFormItem;
114
121
  return __props.config.fieldType == "h2" ? (openBlock(), createBlock(unref(H2), {
@@ -187,9 +194,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
187
194
  return [
188
195
  __props.config.credit ? (openBlock(), createElementBlock("i", _hoisted_1)) : createCommentVNode("", true),
189
196
  __props.config.regulation ? (openBlock(), createElementBlock("i", _hoisted_2)) : createCommentVNode("", true),
190
- createElementVNode("span", null, toDisplayString(__props.config.label), 1),
191
- ((_a = __props.config.tooltip) == null ? void 0 : _a.trim()) ? (openBlock(), createBlock(_component_el_tooltip, {
197
+ __props.config.labelLink ? (openBlock(), createBlock(_component_el_link, {
192
198
  key: 2,
199
+ type: "primary",
200
+ style: { "pointer-events": "all" },
201
+ onClick: withModifiers(handleLabelLink, ["prevent"])
202
+ }, {
203
+ default: withCtx(() => [
204
+ createTextVNode(toDisplayString(__props.config.label), 1)
205
+ ]),
206
+ _: 1
207
+ })) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.config.label), 1)),
208
+ ((_a = __props.config.tooltip) == null ? void 0 : _a.trim()) ? (openBlock(), createBlock(_component_el_tooltip, {
209
+ key: 4,
193
210
  content: __props.config.tooltip,
194
211
  placement: "top"
195
212
  }, {
@@ -206,7 +223,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
206
223
  };
207
224
  }
208
225
  });
209
- const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-08a3d7ce"]]);
226
+ const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ebc3ff2b"]]);
210
227
  export {
211
228
  _FormItem as default
212
229
  };
@@ -494,7 +494,7 @@ const _sfc_main = {
494
494
  };
495
495
  }
496
496
  };
497
- const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6f5db521"]]);
497
+ const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-84665bac"]]);
498
498
  export {
499
499
  DynamicQuery as default
500
500
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.98";
3
+ const version = "5.5.100";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -95,7 +95,6 @@ const _sfc_main = {
95
95
  const hiddenFields = Vue.computed(() => {
96
96
  const editConfigData = common.getEditConfigData();
97
97
  const fields = (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
98
- debugger;
99
98
  return fields.map((item) => ({
100
99
  id: item == null ? void 0 : item.id,
101
100
  fieldId: item == null ? void 0 : item.id,
@@ -407,5 +406,5 @@ const _sfc_main = {
407
406
  };
408
407
  }
409
408
  };
410
- const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-87a3bc4a"]]);
409
+ const FieldSetMapping = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-15f7f3da"]]);
411
410
  exports.default = FieldSetMapping;
@@ -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);
@@ -21,6 +21,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
21
21
  ;/* empty css */
22
22
  require("../../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
23
23
  require("../../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
24
+ ;/* empty css */
24
25
  const Vue = require("vue");
25
26
  const optionLoader = require("../../../utils/optionLoader.js");
26
27
  ;/* empty css */
@@ -34,7 +35,8 @@ const index$5 = require("../../../../../node_modules/element-plus/es/components/
34
35
  const index$6 = require("../../../../../node_modules/element-plus/es/components/radio/index.js");
35
36
  const index$7 = require("../../../../../node_modules/element-plus/es/components/checkbox/index.js");
36
37
  const index$8 = require("../../../../../node_modules/element-plus/es/components/switch/index.js");
37
- const index$9 = require("../../../../../node_modules/element-plus/es/components/tooltip/index.js");
38
+ const index$9 = require("../../../../../node_modules/element-plus/es/components/link/index.js");
39
+ const index$a = require("../../../../../node_modules/element-plus/es/components/tooltip/index.js");
38
40
  const _hoisted_1 = { class: "component-preview" };
39
41
  const _hoisted_2 = {
40
42
  key: 0,
@@ -44,10 +46,11 @@ const _hoisted_3 = {
44
46
  key: 1,
45
47
  class: "iconfont icon-iconJian regulation-icon"
46
48
  };
47
- const _hoisted_4 = { class: "prefix-content" };
48
- const _hoisted_5 = { class: "suffix-content" };
49
- const _hoisted_6 = { class: "prefix-content" };
50
- const _hoisted_7 = { class: "suffix-content" };
49
+ const _hoisted_4 = { key: 3 };
50
+ const _hoisted_5 = { class: "prefix-content" };
51
+ const _hoisted_6 = { class: "suffix-content" };
52
+ const _hoisted_7 = { class: "prefix-content" };
53
+ const _hoisted_8 = { class: "suffix-content" };
51
54
  const _sfc_main = {
52
55
  __name: "ComponentPreviewWrapper",
53
56
  props: {
@@ -134,7 +137,8 @@ const _sfc_main = {
134
137
  return formatMap[props.componentData.dateType] || "YYYY-MM-DD";
135
138
  });
136
139
  return (_ctx, _cache) => {
137
- const _component_el_tooltip = index$9.ElTooltip;
140
+ const _component_el_link = index$9.ElLink;
141
+ const _component_el_tooltip = index$a.ElTooltip;
138
142
  const _component_el_button = index$2.ElButton;
139
143
  const _component_el_input = index$1.ElInput;
140
144
  const _component_el_date_picker = index$3.ElDatePicker;
@@ -160,14 +164,14 @@ const _sfc_main = {
160
164
  __props.componentData.prefix ? {
161
165
  name: "prefix",
162
166
  fn: Vue.withCtx(() => [
163
- Vue.createElementVNode("span", _hoisted_4, Vue.toDisplayString(__props.componentData.prefix), 1)
167
+ Vue.createElementVNode("span", _hoisted_5, Vue.toDisplayString(__props.componentData.prefix), 1)
164
168
  ]),
165
169
  key: "0"
166
170
  } : void 0,
167
171
  __props.componentData.suffix ? {
168
172
  name: "suffix",
169
173
  fn: Vue.withCtx(() => [
170
- Vue.createElementVNode("span", _hoisted_5, Vue.toDisplayString(__props.componentData.suffix), 1)
174
+ Vue.createElementVNode("span", _hoisted_6, Vue.toDisplayString(__props.componentData.suffix), 1)
171
175
  ]),
172
176
  key: "1"
173
177
  } : void 0,
@@ -208,14 +212,14 @@ const _sfc_main = {
208
212
  __props.componentData.prefix ? {
209
213
  name: "prefix",
210
214
  fn: Vue.withCtx(() => [
211
- Vue.createElementVNode("span", _hoisted_6, Vue.toDisplayString(__props.componentData.prefix), 1)
215
+ Vue.createElementVNode("span", _hoisted_7, Vue.toDisplayString(__props.componentData.prefix), 1)
212
216
  ]),
213
217
  key: "0"
214
218
  } : void 0,
215
219
  __props.componentData.suffix ? {
216
220
  name: "suffix",
217
221
  fn: Vue.withCtx(() => [
218
- Vue.createElementVNode("span", _hoisted_7, Vue.toDisplayString(__props.componentData.suffix), 1)
222
+ Vue.createElementVNode("span", _hoisted_8, Vue.toDisplayString(__props.componentData.suffix), 1)
219
223
  ]),
220
224
  key: "1"
221
225
  } : void 0,
@@ -297,9 +301,17 @@ const _sfc_main = {
297
301
  return [
298
302
  __props.componentData.credit ? (Vue.openBlock(), Vue.createElementBlock("i", _hoisted_2)) : Vue.createCommentVNode("", true),
299
303
  __props.componentData.regulation ? (Vue.openBlock(), Vue.createElementBlock("i", _hoisted_3)) : Vue.createCommentVNode("", true),
300
- Vue.createElementVNode("span", null, Vue.toDisplayString(__props.componentData.label), 1),
301
- ((_a = __props.componentData.tooltip) == null ? void 0 : _a.trim()) ? (Vue.openBlock(), Vue.createBlock(_component_el_tooltip, {
304
+ __props.componentData.labelLink ? (Vue.openBlock(), Vue.createBlock(_component_el_link, {
302
305
  key: 2,
306
+ type: "primary"
307
+ }, {
308
+ default: Vue.withCtx(() => [
309
+ Vue.createTextVNode(Vue.toDisplayString(__props.componentData.label), 1)
310
+ ]),
311
+ _: 1
312
+ })) : (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_4, Vue.toDisplayString(__props.componentData.label), 1)),
313
+ ((_a = __props.componentData.tooltip) == null ? void 0 : _a.trim()) ? (Vue.openBlock(), Vue.createBlock(_component_el_tooltip, {
314
+ key: 4,
303
315
  content: __props.componentData.tooltip,
304
316
  placement: "top"
305
317
  }, {
@@ -317,5 +329,5 @@ const _sfc_main = {
317
329
  };
318
330
  }
319
331
  };
320
- const ComponentPreviewWrapper = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-820bce57"]]);
332
+ const ComponentPreviewWrapper = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3fc3e6c0"]]);
321
333
  exports.default = ComponentPreviewWrapper;