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