@fecp/designer 5.5.99 → 5.5.101

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 (55) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
  3. package/es/designer/src/components/FieldSetMapping.vue2.mjs +1 -2
  4. package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  5. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  6. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  7. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  8. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  9. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  10. package/es/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +23 -11
  11. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  12. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  13. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  14. package/es/designer/src/packages/form/property/widgets.vue.mjs +106 -82
  15. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  16. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
  17. package/es/designer.css +179 -156
  18. package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
  19. package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +51 -15
  20. package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +3 -3
  21. package/es/packages/mobile/src/components/navigation/tabs/Tabs.vue.mjs +33 -8
  22. package/es/packages/mobile/src/index.vue.mjs +4 -17
  23. package/es/packages/mobile/src/page.vue.mjs +12 -3
  24. package/es/packages/mobile/src/utils/common.mjs +15 -0
  25. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +11 -2
  26. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +22 -5
  27. package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +8 -7
  28. package/lib/designer/package.json.js +1 -1
  29. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  30. package/lib/designer/src/components/FieldSetMapping.vue2.js +1 -2
  31. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  32. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  33. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  34. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  35. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  36. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  37. package/lib/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +25 -13
  38. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  39. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  40. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  41. package/lib/designer/src/packages/form/property/widgets.vue.js +106 -82
  42. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  43. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
  44. package/lib/designer.css +179 -156
  45. package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
  46. package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +50 -14
  47. package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +3 -3
  48. package/lib/packages/mobile/src/components/navigation/tabs/Tabs.vue.js +32 -7
  49. package/lib/packages/mobile/src/index.vue.js +4 -17
  50. package/lib/packages/mobile/src/page.vue.js +12 -3
  51. package/lib/packages/mobile/src/utils/common.js +15 -0
  52. package/lib/packages/vue/src/components/forms/form/Form.vue.js +11 -2
  53. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +23 -6
  54. package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +7 -6
  55. package/package.json +1 -1
@@ -6,13 +6,13 @@
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
9
+ /* empty css */
10
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
9
11
  /* empty css */
10
12
  /* empty css */
11
13
  /* empty css */
12
14
  /* empty css */
13
15
  /* empty css */
14
- /* empty css */
15
- import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
16
16
  import { SwipeCell } from "../../../../node_modules/vant/es/swipe-cell/index.mjs";
17
17
  import { showConfirmDialog } from "../../../../node_modules/vant/es/dialog/function-call.mjs";
18
18
  import "../../../../node_modules/vant/es/dialog/index.mjs";
@@ -1,33 +1,69 @@
1
- import { createElementBlock, createCommentVNode, openBlock, createElementVNode } from "vue";
1
+ import { ref, computed, resolveComponent, createBlock, openBlock, unref, isRef } 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: {
7
+ baseInfoPageSource: {
8
+ type: String,
9
+ default: "dynamic"
10
+ },
11
+ baseInfoPageId: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ options: {
16
+ type: Array,
17
+ default: []
18
+ },
19
+ document: {
12
20
  type: Boolean,
13
21
  default: false
14
22
  },
15
- //任务对象+流程变量
16
- data: {
17
- type: Object,
18
- default: {}
23
+ approvalHistory: {
24
+ type: Boolean,
25
+ default: false
19
26
  }
20
27
  },
21
28
  setup(__props) {
29
+ const props = __props;
30
+ const activeName = ref("tab_base_info");
31
+ const baseInfoPageId = ref("");
32
+ if (props.baseInfoPageSource == "dynamic") ;
33
+ else {
34
+ baseInfoPageId.value = props.baseInfoPageId;
35
+ }
36
+ const tabsOptions = computed(() => {
37
+ const tabs = [
38
+ {
39
+ id: "tab_base_info",
40
+ title: "基本信息",
41
+ pageId: baseInfoPageId.value
42
+ },
43
+ ...props.options || []
44
+ ];
45
+ if (props.document) {
46
+ tabs.push({ id: "tab_doc_info", title: "要件信息" });
47
+ }
48
+ if (props.approvalHistory) {
49
+ tabs.push({ id: "tab_timeline_info", title: "审批历史" });
50
+ }
51
+ return tabs;
52
+ });
53
+ computed(() => {
54
+ return tabsOptions.value.find((item) => item.id == activeName.value);
55
+ });
22
56
  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);
57
+ const _component_FecMobileTabs = resolveComponent("FecMobileTabs");
58
+ return openBlock(), createBlock(_component_FecMobileTabs, {
59
+ modelValue: unref(activeName),
60
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null),
61
+ options: unref(tabsOptions)
62
+ }, null, 8, ["modelValue", "options"]);
27
63
  };
28
64
  }
29
65
  };
30
- const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6cf862c9"]]);
66
+ const _AppDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9a63b182"]]);
31
67
  export {
32
68
  _AppDetail as default
33
69
  };
@@ -56,7 +56,7 @@ const _sfc_main = {
56
56
  autoHeight: {
57
57
  //高度自适应
58
58
  type: Boolean,
59
- default: true
59
+ default: false
60
60
  },
61
61
  height: {
62
62
  //高度
@@ -344,7 +344,7 @@ const _sfc_main = {
344
344
  dataSourceManager.value.on("error", (err) => {
345
345
  emit("data-error", err);
346
346
  });
347
- if (dataSourceManager.value && isDesigner) {
347
+ if (dataSourceManager.value) {
348
348
  tableData.value = [];
349
349
  if (props.isFixedHead) {
350
350
  initLoading.value = true;
@@ -574,7 +574,7 @@ const _sfc_main = {
574
574
  };
575
575
  }
576
576
  };
577
- const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ee91bb34"]]);
577
+ const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-16d68bd3"]]);
578
578
  export {
579
579
  _Table as default
580
580
  };
@@ -5,7 +5,9 @@
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 { inject, computed, createElementBlock, openBlock, normalizeStyle, unref, createVNode, isRef, withCtx, Fragment, renderList, createBlock, mergeProps, createElementVNode, createCommentVNode } from "vue";
9
+ import { findPageById } from "../../../utils/common.mjs";
10
+ import MobilePage from "../../../page.vue.mjs";
9
11
  /* empty css */
10
12
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
11
13
  import { Tabs } from "../../../../node_modules/vant/es/tabs/index.mjs";
@@ -37,6 +39,7 @@ const _sfc_main = {
37
39
  setup(__props, { emit: __emit }) {
38
40
  const props = __props;
39
41
  const emit = __emit;
42
+ const pageList = inject("pageList");
40
43
  const activeName = computed({
41
44
  get: () => {
42
45
  return props.modelValue;
@@ -52,6 +55,19 @@ const _sfc_main = {
52
55
  return props.height + "px";
53
56
  }
54
57
  });
58
+ const pageCache = computed(() => {
59
+ const cache = {};
60
+ props.options.forEach((item) => {
61
+ if (item.pageId) {
62
+ cache[item.pageId] = findPageById(pageList.value, item.pageId);
63
+ }
64
+ });
65
+ console.log("🚀 ~ cache:", cache);
66
+ return cache;
67
+ });
68
+ const getPage = (pageId) => {
69
+ return pageCache.value[pageId] || null;
70
+ };
55
71
  return (_ctx, _cache) => {
56
72
  const _component_van_tab = Tab;
57
73
  const _component_van_tabs = Tabs;
@@ -63,26 +79,35 @@ const _sfc_main = {
63
79
  sticky: "",
64
80
  class: "fec-tabs",
65
81
  active: unref(activeName),
66
- "onUpdate:active": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null)
82
+ "onUpdate:active": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null),
83
+ "lazy-render": ""
67
84
  }, {
68
85
  default: withCtx(() => [
69
86
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
70
87
  return openBlock(), createBlock(_component_van_tab, mergeProps({ ref_for: true }, item, {
88
+ name: item.id,
71
89
  replace: "",
72
90
  "show-zero-badge": false
73
- }), null, 16);
91
+ }), {
92
+ default: withCtx(() => [
93
+ createElementVNode("div", _hoisted_1, [
94
+ item.pageId && getPage(item.pageId) ? (openBlock(), createBlock(MobilePage, {
95
+ key: 0,
96
+ parentPage: getPage(item.pageId)
97
+ }, null, 8, ["parentPage"])) : createCommentVNode("", true)
98
+ ])
99
+ ]),
100
+ _: 2
101
+ }, 1040, ["name"]);
74
102
  }), 256))
75
103
  ]),
76
104
  _: 1
77
- }, 8, ["active"]),
78
- createElementVNode("div", _hoisted_1, [
79
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
80
- ])
105
+ }, 8, ["active"])
81
106
  ], 4);
82
107
  };
83
108
  }
84
109
  };
85
- const _Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a014f592"]]);
110
+ const _Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ed4e81a9"]]);
86
111
  export {
87
112
  _Tabs as default
88
113
  };
@@ -7,11 +7,12 @@ import "../../../node_modules/element-plus/es/index.mjs";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
- import { getCurrentInstance, ref, onMounted, createBlock, createCommentVNode, unref, openBlock, withCtx } from "vue";
10
+ import { getCurrentInstance, ref, provide, onMounted, createBlock, createCommentVNode, unref, openBlock, withCtx } from "vue";
11
11
  import MobilePage from "./page.vue.mjs";
12
12
  import api from "./api/index.mjs";
13
13
  import emitter from "./utils/eventBus.mjs";
14
14
  import { pageHistory } from "./utils/pageHistory.mjs";
15
+ import { findPageById } from "./utils/common.mjs";
15
16
  /* empty css */
16
17
  /* empty css */
17
18
  /* empty css */
@@ -48,7 +49,6 @@ const _sfc_main = {
48
49
  let option = await api.getAppById(ctx.$http, props.appId);
49
50
  pageList.value = ((_a = JSON.parse(option.pageConfig)) == null ? void 0 : _a.pageConfig) || [];
50
51
  pageHistory.clear();
51
- console.log("🚀 ~ pageList ~ pageList.value:", pageList.value);
52
52
  let homePage;
53
53
  if (props.pageKey) {
54
54
  homePage = pageList.value.find((page) => page.isHome);
@@ -96,24 +96,11 @@ const _sfc_main = {
96
96
  routePage.value = null;
97
97
  }
98
98
  }
99
- function findPageById(pageList2, pageId) {
100
- for (const item of pageList2) {
101
- if (item.id == pageId) {
102
- return item;
103
- }
104
- if (item.children && item.children.length > 0) {
105
- const found = findPageById(item.children, pageId);
106
- if (found) {
107
- return { ...found, parentPage: item };
108
- }
109
- }
110
- }
111
- return null;
112
- }
113
99
  const routePage = ref(null);
114
100
  emitter.on("loadPage", (pageId) => {
115
101
  loadPage(pageId);
116
102
  });
103
+ provide("pageList", pageList);
117
104
  onMounted(() => {
118
105
  loadConfig();
119
106
  });
@@ -142,7 +129,7 @@ const _sfc_main = {
142
129
  };
143
130
  }
144
131
  };
145
- const MobileApp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-67de5a65"]]);
132
+ const MobileApp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aa5e6078"]]);
146
133
  export {
147
134
  MobileApp as default
148
135
  };
@@ -30,10 +30,15 @@ const _sfc_main = {
30
30
  var _a;
31
31
  if (Array.isArray(props.parentPage.layoutData)) {
32
32
  return ((_a = props.parentPage.layoutData) == null ? void 0 : _a.map((item) => {
33
+ var _a2, _b;
33
34
  item.isResizable = false;
35
+ if ((_b = (_a2 = item.component) == null ? void 0 : _a2.props) == null ? void 0 : _b.autoHeight) {
36
+ item.class = "isAutoHeight";
37
+ }
34
38
  return item;
35
39
  })) || [];
36
40
  }
41
+ autoHeight;
37
42
  return props.parentPage.layoutData;
38
43
  });
39
44
  const tabbarActive = ref(0);
@@ -72,8 +77,9 @@ const _sfc_main = {
72
77
  const _component_FecMobileMenuGrid = resolveComponent("FecMobileMenuGrid");
73
78
  const _component_FecMobileNoticeBar = resolveComponent("FecMobileNoticeBar");
74
79
  const _component_FecMobileDataStat = resolveComponent("FecMobileDataStat");
75
- const _component_FecMobileTabbar = resolveComponent("FecMobileTabbar");
80
+ const _component_FecMobileAppDetail = resolveComponent("FecMobileAppDetail");
76
81
  const _component_FecMobileActionBar = resolveComponent("FecMobileActionBar");
82
+ const _component_FecMobileTabbar = resolveComponent("FecMobileTabbar");
77
83
  return openBlock(), createElementBlock(Fragment, null, [
78
84
  __props.parentPage.isNavBar ? (openBlock(), createBlock(_component_FecMobileNavBar, normalizeProps(mergeProps({ key: 0 }, __props.parentPage.navBarConfig)), null, 16)) : createCommentVNode("", true),
79
85
  createElementVNode("div", _hoisted_1, [
@@ -87,7 +93,10 @@ const _sfc_main = {
87
93
  createVNode(_component_FecMobileMenuGrid, normalizeProps(guardReactiveProps(__props.parentPage.layoutData.menuGridProps)), null, 16),
88
94
  createVNode(_component_FecMobileNoticeBar),
89
95
  createVNode(_component_FecMobileDataStat)
90
- ], 64)) : __props.parentPage.type == "approval" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createBlock(unref(De), {
96
+ ], 64)) : __props.parentPage.type == "approval" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
97
+ createVNode(_component_FecMobileAppDetail, normalizeProps(guardReactiveProps(__props.parentPage.layoutData.appDetailProps)), null, 16),
98
+ createVNode(_component_FecMobileActionBar, normalizeProps(guardReactiveProps(__props.parentPage.layoutData.actionBar)), null, 16)
99
+ ], 64)) : (openBlock(), createBlock(unref(De), {
91
100
  key: 2,
92
101
  ref: "gridLayout",
93
102
  layout: unref(layoutData),
@@ -125,7 +134,7 @@ const _sfc_main = {
125
134
  };
126
135
  }
127
136
  };
128
- const MobilePage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-71059c96"]]);
137
+ const MobilePage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-afadefa2"]]);
129
138
  export {
130
139
  MobilePage as default
131
140
  };
@@ -22,7 +22,22 @@ function removeEmptyValues(data) {
22
22
  }
23
23
  return result;
24
24
  }
25
+ const findPageById = (pageList, pageId) => {
26
+ for (const item of pageList) {
27
+ if (item.id == pageId) {
28
+ return item;
29
+ }
30
+ if (item.children && item.children.length > 0) {
31
+ const found = findPageById(item.children, pageId);
32
+ if (found) {
33
+ return { ...found, parentPage: item };
34
+ }
35
+ }
36
+ }
37
+ return null;
38
+ };
25
39
  export {
26
40
  cloneDeep,
41
+ findPageById,
27
42
  removeEmptyValues
28
43
  };
@@ -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-ae7b77e4"]]);
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
  };
@@ -1,7 +1,7 @@
1
1
  import "../../../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { inject, computed, ref, resolveComponent, createElementBlock, openBlock, Fragment, createCommentVNode, createVNode, createBlock, unref, createSlots, withCtx, renderList, createTextVNode, toDisplayString } from "vue";
4
+ import { inject, ref, computed, resolveComponent, createElementBlock, openBlock, Fragment, createCommentVNode, createVNode, createBlock, unref, createSlots, withCtx, renderList, createTextVNode, toDisplayString } from "vue";
5
5
  import { SubTitle } from "../subTitle/index.mjs";
6
6
  import { H2 } from "../h2/index.mjs";
7
7
  import { parseRouteParams } from "../../../utils/parseRouteParams.mjs";
@@ -31,7 +31,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
31
31
  },
32
32
  setup(__props, { expose: __expose }) {
33
33
  const props = __props;
34
- const formData = inject("formData");
34
+ const getFormData = inject("getFormData");
35
+ const formData = ref(getFormData());
35
36
  inject("rowHeight");
36
37
  inject("gridLayout");
37
38
  const setFormItemHeight = inject("setFormItemHeight");
@@ -66,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
66
67
  ...props.localConfig.hiddenFields
67
68
  ];
68
69
  });
69
- const initSearchData = computed(() => {
70
+ const initHiddenData = computed(() => {
70
71
  if (props.config.dataSourceFrom == "self") {
71
72
  const params = parseRouteParams(
72
73
  props.config.subTableParams,
@@ -91,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
91
92
  if (!item.showCondition) return true;
92
93
  return checkFilterMatch(
93
94
  item.showCondition,
94
- initSearchData.value,
95
+ initHiddenData.value,
95
96
  subTableFieldsData.value
96
97
  );
97
98
  });
@@ -102,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
102
103
  if (!item.showCondition) return true;
103
104
  return checkFilterMatch(
104
105
  item.showCondition,
105
- initSearchData.value,
106
+ initHiddenData.value,
106
107
  subTableFieldsData.value
107
108
  );
108
109
  });
@@ -198,12 +199,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
198
199
  height: __props.config.subTableHeight,
199
200
  maxHeight: __props.config.subTableMaxHeight,
200
201
  tableData: unref(subTableData),
201
- initSearchData: unref(initSearchData),
202
+ initHiddenData: unref(initHiddenData),
202
203
  canLoadBySearchData: __props.config.reloadOnParamsChange,
203
204
  readonly: __props.config.isSubTableReadOnly || __props.formMode == "query",
204
205
  btnRollbackEvent: unref(btnRollbackEvent),
205
206
  subTableConfig: __props.config
206
- }, null, 8, ["templateKey", "mode", "titleMode", "hasPagination", "heightMode", "height", "maxHeight", "tableData", "initSearchData", "canLoadBySearchData", "readonly", "btnRollbackEvent", "subTableConfig"])
207
+ }, null, 8, ["templateKey", "mode", "titleMode", "hasPagination", "heightMode", "height", "maxHeight", "tableData", "initHiddenData", "canLoadBySearchData", "readonly", "btnRollbackEvent", "subTableConfig"])
207
208
  ], 64);
208
209
  };
209
210
  }
@@ -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.99";
3
+ const version = "5.5.101";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -11,7 +11,7 @@ require("../../../node_modules/element-plus/es/index.js");
11
11
  ;/* empty css */
12
12
  const Vue = require("vue");
13
13
  const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
14
- const ValueSelector = require("./ValueSelector.vue.js");
14
+ const ValueSelector = require("./ValueSelector.vue2.js");
15
15
  const index = require("../api/index.js");
16
16
  ;/* empty css */
17
17
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
@@ -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;
@@ -6,7 +6,7 @@ require("../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const Vue = require("vue");
8
8
  const index$1 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
9
- const ValueSelector = require("./ValueSelector.vue.js");
9
+ const ValueSelector = require("./ValueSelector.vue2.js");
10
10
  ;/* empty css */
11
11
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
12
12
  const index = require("../../../node_modules/element-plus/es/components/button/index.js");
@@ -18,7 +18,7 @@ const index$2 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
18
18
  const common = require("../../packages/utils/common.js");
19
19
  const index$5 = require("../../packages/form/aside/index.js");
20
20
  const index$6 = require("../../packages/table/aside/index.js");
21
- const ValueSelector = require("../../components/ValueSelector.vue.js");
21
+ const ValueSelector = require("../../components/ValueSelector.vue2.js");
22
22
  ;/* empty css */
23
23
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
24
24
  const index = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
16
16
  require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
17
17
  const Vue = require("vue");
18
18
  const index = require("../../../../node_modules/@vueuse/core/dist/index.js");
19
- const ValueSelector = require("../../components/ValueSelector.vue.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue2.js");
20
20
  const index$1 = require("../../api/index.js");
21
21
  const common = require("../utils/common.js");
22
22
  const datasource = require("../utils/datasource.js");
@@ -32,7 +32,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
32
32
  ;/* empty css */
33
33
  ;/* empty css */
34
34
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
35
- ;/* empty css */
35
+ ;/* empty css */
36
36
  const index$8 = require("../../api/index.js");
37
37
  ;/* empty css */
38
38
  ;/* empty css */
@@ -86,7 +86,7 @@ const widgets = require("../table/property/widgets.vue.js");
86
86
  require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
87
87
  ;/* empty css */
88
88
  ;/* empty css */
89
- ;/* empty css */
89
+ ;/* empty css */
90
90
  ;/* empty css */
91
91
  ;/* empty css */
92
92
  ;/* empty css */
@@ -6,7 +6,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const Vue = require("vue");
8
8
  const RiskSchemeSelector = require("../../../../components/RiskSchemeSelector.vue2.js");
9
- const ValueSelector = require("../../../../components/ValueSelector.vue.js");
9
+ const ValueSelector = require("../../../../components/ValueSelector.vue2.js");
10
10
  const ParamsConfig = require("../../../../components/ParamsConfig.vue2.js");
11
11
  const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
12
12
  const index$1 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");