super-page-designer 2.3.12-sit1-design2 → 2.3.13-rc1-design1

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 (61) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +54 -53
  2. package/dist/es/components/design/utils/chart-design-util.js +27 -27
  3. package/dist/es/components/design/utils/page-event-util.js +1 -0
  4. package/dist/es/components/design/utils/page-i18n-util.js +6 -5
  5. package/dist/es/components/design/utils/page-table-util.d.ts +1 -9
  6. package/dist/es/components/design/utils/page-table-util.js +13 -13
  7. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +18 -18
  9. package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-design.vue2.js +2 -2
  10. package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +18 -18
  11. package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +18 -18
  12. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +35 -33
  13. package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +5 -4
  14. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +7 -6
  15. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +17 -17
  16. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +27 -24
  17. package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +3 -2
  18. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  19. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +13 -13
  20. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +4 -4
  21. package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +3 -2
  22. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +22 -22
  23. package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +3 -3
  24. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +1 -1
  25. package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
  26. package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +54 -55
  27. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +10 -10
  28. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +2 -2
  29. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
  30. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
  31. package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +4 -4
  32. package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
  33. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +2 -2
  34. package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -1
  35. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +43 -43
  36. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +12 -12
  37. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +2 -2
  38. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +5 -5
  39. package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +18 -18
  40. package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +6 -6
  41. package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +11 -11
  42. package/dist/es/components/design/views/assemblys/form/link/link-design.vue2.js +12 -12
  43. package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +2 -2
  44. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +14 -13
  45. package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +5 -5
  46. package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
  47. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
  48. package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +52 -52
  49. package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
  50. package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +12 -10
  51. package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
  52. package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
  53. package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
  54. package/dist/es/components/design/views/design/page-event/config.vue3.js +18 -17
  55. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  56. package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +1 -0
  57. package/dist/es/components/design/views/design/view/page-switch.vue2.js +3 -2
  58. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
  59. package/dist/es/stores/undo-redo-store.js +1 -1
  60. package/dist/es/style.css +2 -2
  61. package/package.json +5 -5
@@ -13,17 +13,17 @@ function i(e2) {
13
13
  return "variable" == l2.groupSource && !l2.enableDrill && l2.groupVariable && (r2.includes(l2.groupVariable) || r2.push(l2.groupVariable)), t2.monitorFields = r2, t2;
14
14
  }
15
15
  function a(e2, l2) {
16
- const i2 = e2.props ? e2.props : {}, a2 = e2.style ? e2.style : {}, b2 = { title: [{ textStyle: {}, subtextStyle: {} }], toolbox: { show: false, feature: { saveAsImage: { show: false }, restore: { show: false }, dataView: { show: false }, dataZoom: { show: false }, magicType: { show: false }, brush: { show: false } } }, grid: {}, xAxis: [{ axisLabel: {}, nameTruncate: {} }], yAxis: [{ show: false, position: "left", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }, { show: false, position: "right", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }], tooltip: { textStyle: {} }, dataZoom: [], series: [] }, u2 = "chart-column-line" == e2.name, h2 = "chart-pie" == e2.name, c2 = "chart-gauge" == e2.name, g = "chart-radar" == e2.name, m = "chart-scatter" == e2.name;
16
+ const i2 = e2.props ? e2.props : {}, a2 = e2.style ? e2.style : {}, u2 = { title: [{ textStyle: {}, subtextStyle: {} }], toolbox: { show: false, feature: { saveAsImage: { show: false }, restore: { show: false }, dataView: { show: false }, dataZoom: { show: false }, magicType: { show: false }, brush: { show: false } } }, grid: {}, xAxis: [{ axisLabel: {}, nameTruncate: {} }], yAxis: [{ show: false, position: "left", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }, { show: false, position: "right", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }], tooltip: { textStyle: {} }, dataZoom: [], series: [] }, b2 = "chart-column-line" == e2.name, h2 = "chart-pie" == e2.name, c2 = "chart-gauge" == e2.name, g = "chart-radar" == e2.name, m = "chart-scatter" == e2.name;
17
17
  if (i2.title, i2.subTitle) {
18
- b2.title[0].subtext = i2.subTitle, a2.subtitleTextAlign && (b2.title[0].left = a2.subtitleTextAlign);
18
+ u2.title[0].subtext = i2.subTitle, a2.subtitleTextAlign && (u2.title[0].left = a2.subtitleTextAlign);
19
19
  const e3 = o(a2);
20
- Object.assign(b2.title[0], e3);
20
+ Object.assign(u2.title[0], e3);
21
21
  }
22
- if ((i2.enableDownloadBtn || i2.enableDataBtn) && (b2.toolbox.show = true), null != i2.enableDownloadBtn && (b2.toolbox.feature.saveAsImage.show = i2.enableDownloadBtn), null != i2.enableDataBtn && (b2.toolbox.feature.dataView.show = i2.enableDataBtn), (u2 || h2 || g || m) && null != a2.enableLegend && (null == b2.legend && (b2.legend = {}), b2.legend.show = a2.enableLegend, a2.enableLegend && (a2.legendLayout && (b2.legend.orient = a2.legendLayout), a2.legendAlign && (b2.legend.left = a2.legendAlign), a2.legendVerticalAlign && (b2.legend.top = a2.legendVerticalAlign), a2.legendPadding && (b2.legend.padding = a2.legendPadding), a2.customLegend && (b2.legend.formatter = a2.customLegend))), a2.gridBackgroundColor && (b2.grid.show = true, b2.grid.backgroundColor = a2.gridBackgroundColor), a2.gridPaddingTop && (b2.grid.top = a2.gridPaddingTop), a2.gridPaddingRight && (b2.grid.right = a2.gridPaddingRight), a2.gridPaddingBottom && (b2.grid.bottom = a2.gridPaddingBottom), a2.gridPaddingLeft && (b2.grid.left = a2.gridPaddingLeft), a2.enableGridLine ? (b2.grid.show = true, a2.gridLineWidth && (b2.grid.borderWidth = a2.gridLineWidth), a2.gridLineColor && (b2.grid.show = true, b2.grid.borderColor = a2.gridLineColor)) : a2.gridShadowColor || (b2.grid.borderWidth = 0), a2.gridShadowColor && (b2.grid.show = true, b2.grid.shadowColor = a2.gridShadowColor, a2.gridShadowX && (b2.grid.shadowOffsetX = a2.gridShadowX), a2.gridShadowY && (b2.grid.shadowOffsetY = a2.gridShadowY), a2.gridShadowBlur && (b2.grid.shadowBlur = a2.gridShadowBlur)), u2 || m) {
23
- u2 && (a2.xaxisTestdatas || (a2.xaxisTestdatas = "项1,项2,项3,项4,项5,项6,项7,项8"), b2.xAxis[0].data = a2.xaxisTestdatas.split(",")), null != a2.enableXaxis && (b2.xAxis[0].show = a2.enableXaxis, a2.enableXaxis && (null == b2.xAxis[0].axisLabel && (b2.xAxis[0].axisLabel = {}), a2.xaxisAngle && (b2.xAxis[0].axisLabel.rotate = a2.xaxisAngle), a2.xaxisOffset && (b2.xAxis[0].offset = a2.xaxisOffset), a2.xaxisWidth && (b2.xAxis[0].axisLabel.overflow = "truncate", b2.xAxis[0].axisLabel.width = a2.xaxisWidth), a2.xaxisEllipsis && (b2.xAxis[0].axisLabel.overflow = "truncate", b2.xAxis[0].axisLabel.ellipsis = a2.xaxisEllipsis), a2.xaxisFormatter && (b2.xAxis[0].axisLabel.formatter = a2.xaxisFormatter)), u2 && 0 != b2.xAxis[0].show && (b2.xAxis[0].data = a2.xaxisTestdatas.split(","))), a2.xaxisMin && (b2.xAxis[0].min = a2.xaxisMin), a2.xaxisMax && (b2.xAxis[0].max = a2.xaxisMax);
22
+ if ((i2.enableDownloadBtn || i2.enableDataBtn) && (u2.toolbox.show = true), null != i2.enableDownloadBtn && (u2.toolbox.feature.saveAsImage.show = i2.enableDownloadBtn), null != i2.enableDataBtn && (u2.toolbox.feature.dataView.show = i2.enableDataBtn), (b2 || h2 || g || m) && null != a2.enableLegend && (null == u2.legend && (u2.legend = {}), u2.legend.show = a2.enableLegend, a2.enableLegend && (a2.legendLayout && (u2.legend.orient = a2.legendLayout), a2.legendAlign && (u2.legend.left = a2.legendAlign), a2.legendVerticalAlign && (u2.legend.top = a2.legendVerticalAlign), a2.legendPadding && (u2.legend.padding = a2.legendPadding), a2.customLegend && (u2.legend.formatter = a2.customLegend))), a2.gridBackgroundColor && (u2.grid.show = true, u2.grid.backgroundColor = a2.gridBackgroundColor), a2.gridPaddingTop && (u2.grid.top = a2.gridPaddingTop), a2.gridPaddingRight && (u2.grid.right = a2.gridPaddingRight), a2.gridPaddingBottom && (u2.grid.bottom = a2.gridPaddingBottom), a2.gridPaddingLeft && (u2.grid.left = a2.gridPaddingLeft), a2.enableGridLine ? (u2.grid.show = true, a2.gridLineWidth && (u2.grid.borderWidth = a2.gridLineWidth), a2.gridLineColor && (u2.grid.show = true, u2.grid.borderColor = a2.gridLineColor)) : a2.gridShadowColor || (u2.grid.borderWidth = 0), a2.gridShadowColor && (u2.grid.show = true, u2.grid.shadowColor = a2.gridShadowColor, a2.gridShadowX && (u2.grid.shadowOffsetX = a2.gridShadowX), a2.gridShadowY && (u2.grid.shadowOffsetY = a2.gridShadowY), a2.gridShadowBlur && (u2.grid.shadowBlur = a2.gridShadowBlur)), b2 || m) {
23
+ b2 && (a2.xaxisTestdatas || (a2.xaxisTestdatas = "项1,项2,项3,项4,项5,项6,项7,项8"), u2.xAxis[0].data = a2.xaxisTestdatas.split(",")), null != a2.enableXaxis && (u2.xAxis[0].show = a2.enableXaxis, a2.enableXaxis && (null == u2.xAxis[0].axisLabel && (u2.xAxis[0].axisLabel = {}), a2.xaxisAngle && (u2.xAxis[0].axisLabel.rotate = a2.xaxisAngle), a2.xaxisOffset && (u2.xAxis[0].offset = a2.xaxisOffset), a2.xaxisWidth && (u2.xAxis[0].axisLabel.overflow = "truncate", u2.xAxis[0].axisLabel.width = a2.xaxisWidth), a2.xaxisEllipsis && (u2.xAxis[0].axisLabel.overflow = "truncate", u2.xAxis[0].axisLabel.ellipsis = a2.xaxisEllipsis), a2.xaxisFormatter && (u2.xAxis[0].axisLabel.formatter = a2.xaxisFormatter)), b2 && 0 != u2.xAxis[0].show && (u2.xAxis[0].data = a2.xaxisTestdatas.split(","))), a2.xaxisMin && (u2.xAxis[0].min = a2.xaxisMin), a2.xaxisMax && (u2.xAxis[0].max = a2.xaxisMax);
24
24
  const e3 = [a2.yaxisLeft, a2.yaxisRight];
25
25
  for (let t2 = 0; t2 < e3.length; t2++) {
26
- r(e3[t2], b2.yAxis[t2]);
26
+ r(e3[t2], u2.yAxis[t2]);
27
27
  }
28
28
  }
29
29
  if (g && function(e3, t2) {
@@ -52,9 +52,9 @@ function a(e2, l2) {
52
52
  a3.indicator = s2, t2.radar || (t2.radar = []);
53
53
  0 == t2.radar.length && t2.radar.push({});
54
54
  Object.assign(t2.radar[0], a3);
55
- }(e2, b2), (u2 || m) && a2.enableDatazoom) {
55
+ }(e2, u2), (b2 || m) && a2.enableDatazoom) {
56
56
  const e3 = { type: "slider" };
57
- a2.dataZoomType && (e3.type = a2.dataZoomType), a2.dataZoomStart && (e3.start = a2.dataZoomStart), a2.dataZoomEnd && (e3.end = a2.dataZoomEnd), b2.dataZoom.push(e3);
57
+ a2.dataZoomType && (e3.type = a2.dataZoomType), a2.dataZoomStart && (e3.start = a2.dataZoomStart), a2.dataZoomEnd && (e3.end = a2.dataZoomEnd), u2.dataZoom.push(e3);
58
58
  }
59
59
  null != a2.enableTooltip && function(e3, l3) {
60
60
  l3.tooltip.show = e3.enableTooltip, e3.tooltipTrigger && (l3.tooltip.trigger = e3.tooltipTrigger);
@@ -68,30 +68,30 @@ function a(e2, l2) {
68
68
  e3.tooltipColor && (l3.tooltip.textStyle.color = e3.tooltipColor);
69
69
  e3.tooltipWeight && (l3.tooltip.textStyle.fontWeight = e3.tooltipWeight);
70
70
  e3.tooltipFormatter && (l3.tooltip.formatter = e3.tooltipFormatter);
71
- }(a2, b2);
71
+ }(a2, u2);
72
72
  const f = e2.items ? e2.items : [];
73
73
  if (g) {
74
- b2.series || (b2.series = []), 0 == b2.series.length && b2.series.push({});
75
- let e3 = b2.series[0];
74
+ u2.series || (u2.series = []), 0 == u2.series.length && u2.series.push({});
75
+ let e3 = u2.series[0];
76
76
  e3.type = "radar", e3.data = [];
77
77
  for (let t2 of f) if ("radar" == t2.type) {
78
- const l3 = n(t2, b2);
78
+ const l3 = n(t2, u2);
79
79
  l3.uuid = t2.uuid, e3.data.push(l3);
80
80
  }
81
81
  } else for (let e3 of f) {
82
82
  let t2 = null;
83
- if (t2 = "scatter" == e3.type ? d(e3) : s(e3), t2.uuid = e3.uuid, (u2 || m) && ("1" == e3.props.yAxisIndex ? (t2.yAxisIndex = 1, b2.yAxis[1].show = true) : b2.yAxis[0].show = true, "bar" == t2.type && (null != a2.barGap && null != a2.barGap && "" != a2.barGap && (t2.barGap = a2.barGap + "%"), null != a2.barCategoryGap && null != a2.barCategoryGap && "" != a2.barCategoryGap && (t2.barCategoryGap = a2.barCategoryGap + "%"))), (h2 || c2) && e3.props.subTitle) {
83
+ if (t2 = "scatter" == e3.type ? d(e3) : s(e3), t2.uuid = e3.uuid, (b2 || m) && ("1" == e3.props.yAxisIndex ? (t2.yAxisIndex = 1, u2.yAxis[1].show = true) : u2.yAxis[0].show = true, "bar" == t2.type && (null != a2.barGap && null != a2.barGap && "" != a2.barGap && (t2.barGap = a2.barGap + "%"), null != a2.barCategoryGap && null != a2.barCategoryGap && "" != a2.barCategoryGap && (t2.barCategoryGap = a2.barCategoryGap + "%"))), (h2 || c2) && e3.props.subTitle) {
84
84
  const t3 = o(e3.style);
85
- t3.subtext = e3.props.subTitle, b2.title.push(t3);
85
+ t3.subtext = e3.props.subTitle, u2.title.push(t3);
86
86
  }
87
- b2.series.push(t2);
87
+ u2.series.push(t2);
88
88
  }
89
- if (h2 && (0 == a2.enableLegend && (b2.legend = void 0), b2.xAxis[0].show = false), (c2 || g) && (b2.xAxis[0].show = false), i2.isBar) {
90
- for (let e3 of b2.yAxis) e3.show && (e3.type = "category", e3.data = b2.xAxis[0].data);
91
- b2.xAxis[0].data = void 0, b2.isBar = i2.isBar;
89
+ if (h2 && (0 == a2.enableLegend && (u2.legend = void 0), u2.xAxis[0].show = false), (c2 || g) && (u2.xAxis[0].show = false), i2.isBar) {
90
+ for (let e3 of u2.yAxis) e3.show && (e3.type = "category", e3.data = u2.xAxis[0].data);
91
+ u2.xAxis[0].data = void 0, u2.isBar = i2.isBar;
92
92
  }
93
93
  const x = p(a2.customAttr);
94
- x && Object.assign(b2, x), l2.value = b2;
94
+ x && Object.assign(u2, x), l2.value = u2;
95
95
  }
96
96
  function o(e2) {
97
97
  const t2 = { subtextStyle: {} };
@@ -257,12 +257,12 @@ function n(e2, l2) {
257
257
  }
258
258
  i2.testdatas = l3.join(",");
259
259
  }
260
- const s2 = l2.radar && l2.radar.length > 0 ? l2.radar[0].indicator : [], n2 = i2.testdatas ? i2.testdatas.split(",") : [], d2 = [], b2 = n2.length;
261
- for (let e3 = 0; e3 < 8 || e3 < b2; e3++) {
260
+ const s2 = l2.radar && l2.radar.length > 0 ? l2.radar[0].indicator : [], n2 = i2.testdatas ? i2.testdatas.split(",") : [], d2 = [], u2 = n2.length;
261
+ for (let e3 = 0; e3 < 8 || e3 < u2; e3++) {
262
262
  let t2 = e3 < s2.length ? s2[e3].max : null;
263
263
  t2 || (t2 = 100), t2 = parseFloat(t2);
264
264
  let l3 = false;
265
- if (e3 < b2) {
265
+ if (e3 < u2) {
266
266
  parseFloat(n2[e3]) < t2 && (l3 = true);
267
267
  }
268
268
  if (l3) d2.push(n2[e3]);
@@ -327,7 +327,7 @@ function p(e2) {
327
327
  }
328
328
  return null;
329
329
  }
330
- function b(t2) {
330
+ function u(t2) {
331
331
  const l2 = e().pageContext;
332
332
  if (l2) {
333
333
  l2.initChartServiceConfigs || (l2.initChartServiceConfigs = []);
@@ -341,7 +341,7 @@ function b(t2) {
341
341
  e2 > -1 && l2.initChartServiceConfigs.shift(e2, 1);
342
342
  }
343
343
  }
344
- function u(t2, i2) {
344
+ function b(t2, i2) {
345
345
  var _a;
346
346
  const a2 = e().pageContext;
347
347
  if (a2) {
@@ -361,7 +361,7 @@ function u(t2, i2) {
361
361
  const s2 = { uuid: t2.uuid }, n2 = { serivceCode: r2.simpleCode, uuid: t2.uuid };
362
362
  i2 && (n2.groupValue = i2.groupValue, i2.dynamicSeriesFields && i2.dynamicSeriesFields.length > 0 && (n2.dynamicSeriesFields = i2.dynamicSeriesFields));
363
363
  const d2 = (_a = t2 == null ? void 0 : t2.props.dataOrigin) == null ? void 0 : _a.serviceInputs;
364
- return d2 && (n2.serviceInputs = l(d2)), s2.services = [n2], e2 > -1 ? a2.initChartServiceConfigs[e2] = s2 : a2.initChartServiceConfigs.push(s2), s2.resultSet = o2.resultSet ? o2.resultSet : null, s2;
364
+ return d2 && (n2.serviceInputs = l(d2)), s2.services = [n2], s2 && (s2.initializationQuery = t2.initializationQuery), e2 > -1 ? a2.initChartServiceConfigs[e2] = s2 : a2.initChartServiceConfigs.push(s2), s2.resultSet = o2.resultSet ? o2.resultSet : null, s2;
365
365
  }
366
366
  e2 > -1 && a2.initChartServiceConfigs.shift(e2, 1);
367
367
  }
@@ -385,8 +385,8 @@ function c(e2, t2) {
385
385
  export {
386
386
  i as generateChartHeader,
387
387
  a as generateChartOption,
388
- u as initComponentDataConfig,
389
- b as removComponentDataConfig,
388
+ b as initComponentDataConfig,
389
+ u as removComponentDataConfig,
390
390
  c as updateDynamicSeriesField,
391
391
  h as updateServiceInputs
392
392
  };
@@ -6,6 +6,7 @@ function t() {
6
6
  try {
7
7
  for (let e2 of o) "customFunc" == e2.name && r.push({ value: e2.eventName, label: e2.eventName + (e2.remark ? "-" + e2.remark : "") });
8
8
  } catch (e2) {
9
+ console.error("获取自定义方法失败", e2);
9
10
  }
10
11
  return r;
11
12
  }
@@ -1,19 +1,20 @@
1
1
  const e = ["tools", "form"];
2
- function s(l, o) {
2
+ function s(r, a) {
3
3
  var _a;
4
4
  try {
5
- l.name || l.label && a(l.label, o), ((_a = l.props) == null ? void 0 : _a.base) && !e.includes(l.name) && (l.props.base.title && a(l.props.base.title, o), l.props.base.placeholder && a(l.props.base.placeholder, o), l.props.base.label && a(l.props.base.label, o)), l.items && l.items.length > 0 && l.items.forEach((e2) => {
6
- s(e2, o);
5
+ r.name || r.label && o(r.label, a), ((_a = r.props) == null ? void 0 : _a.base) && !e.includes(r.name) && (r.props.base.title && o(r.props.base.title, a), r.props.base.placeholder && o(r.props.base.placeholder, a), r.props.base.label && o(r.props.base.label, a)), r.items && r.items.length > 0 && r.items.forEach((e2) => {
6
+ s(e2, a);
7
7
  });
8
8
  } catch (e2) {
9
+ console.error(e2);
9
10
  }
10
11
  }
11
- function a(e2, s2) {
12
+ function o(e2, s2) {
12
13
  Array.isArray(e2) || (e2 = [e2]), e2.forEach((e3) => {
13
14
  s2.i18nKeys.includes(e3) || s2.i18nKeys.push(e3);
14
15
  });
15
16
  }
16
17
  export {
17
- a as addI18nKey,
18
+ o as addI18nKey,
18
19
  s as setPagetemI18nKey
19
20
  };
@@ -8,14 +8,6 @@ import { Component, PageDesign } from './interfaces/page-design-types';
8
8
  * @returns
9
9
  */
10
10
  export declare function queryTableFields(systemCode: string, systemVersion: number, tableName: string): Promise<any>;
11
- /**
12
- * 查询表字的字段和字段map
13
- * @param systemCode
14
- * @param systemVersion
15
- * @param tableName
16
- * @returns
17
- */
18
- export declare function queryTableFieldsOrMap(systemVersion: number, tableName: string): Promise<any>;
19
11
  /**
20
12
  * 查询子表
21
13
  * @param systemCode
@@ -23,7 +15,7 @@ export declare function queryTableFieldsOrMap(systemVersion: number, tableName:
23
15
  * @param publishVersion 页面版本
24
16
  * @returns
25
17
  */
26
- export declare function querySublist(systemCode: string, systemVersion: number, publishVersion: string): Promise<any>;
18
+ export declare function querySublist(tableName: string): Promise<any>;
27
19
  /**
28
20
  * 设置tableRuntimes
29
21
  */
@@ -6,11 +6,10 @@ import { findDesignItemByUuid as o } from "./common-util.js";
6
6
  import { getComponentOptionConfigsBase as i } from "super-page-runtime";
7
7
  function n(t2, r2, a2) {
8
8
  let o2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
9
- return o2 += "?systemCode=" + (t2 || ""), o2 += "&publishVersion=" + (r2 || ""), o2 += "&tableName=" + (a2 || ""), e.get(o2);
9
+ return o2 += "?tableName=" + (a2 || ""), e.get(o2);
10
10
  }
11
- function s(t2, r2, a2) {
12
- const o2 = { systemCode: t2, formVersion: r2, publishVersion: a2 };
13
- return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/list-view-children/forms", o2);
11
+ function s(t2) {
12
+ if (t2) return e.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/sub-data-tables/tables/" + t2);
14
13
  }
15
14
  function p(e2, r2) {
16
15
  const o2 = JSON.stringify(e2), i2 = JSON.parse(o2);
@@ -21,7 +20,7 @@ function p(e2, r2) {
21
20
  var _a2;
22
21
  const o4 = [];
23
22
  return (_a2 = e4.items) == null ? void 0 : _a2.forEach((e5) => {
24
- const i4 = { controlName: m(e5) };
23
+ const i4 = { controlName: c(e5) };
25
24
  let n4 = { headerName: e5.props.base.name, prop: t(e5.props.base.prop), width: e5.props.base.columnWidth, listColumnSort: e5.props.base.sortable, filterable: e5.props.base.filterable, visible: e5.props.base.visible, exportable: e5.props.base.exportable, total: e5.props.base.total, listColumnFixed: e5.props.base.listColumnFixed, format: b(e5), valueSet: l(e5), querySettingName: e5.props.base.querySettingName ? e5.props.base.querySettingName : "no", queryMatching: e5.props.base.queryMatching, querySetting: e5.props.querySetting ? JSON.stringify(e5.props.querySetting) : null, editable: e5.props.editLine.editable, defaultValue: e5.props.base.defaultValue, controlName: i4.controlName, controlConfig: g(e5), eventType: S(e5), displayOrder: e5.props.base.displayOrder, fileSet: d(e5), orgTreeSet: f(e5), dynamicColumnJson: C(e5), valueSetOptions: u(e5, r4.systemCode, r4.systemVersion), required: e5.props.verification.required, pattern: e5.props.verification.verifyRegex, checkType: T(e5.props.verification.type), contAlign: e5.props.base ? e5.props.base.alignContent : null, titleAlign: e5.props.base ? e5.props.base.alignTitle : null, i18nKey: e5.props.base.name };
26
25
  r4.i18nKeys && a(e5.props.base.name, r4), e5.functionCodes && e5.functionCodes.length > 0 && (n4.functionCode = e5.functionCodes.join(",")), o4.push(n4);
27
26
  }), o4;
@@ -64,21 +63,21 @@ function u(e2, t2, r2) {
64
63
  if ("switch" === e2.name) return JSON.stringify({ activeText: a2.base.activeText, activeValue: a2.base.activeValue, inactiveText: a2.base.inactiveText, inactiveValue: a2.base.inactiveValue, offColor: a2.base.offColor, onColor: a2.base.onColor });
65
64
  if (a2.dataOrigin && a2.dataOrigin.optionValueSetType) {
66
65
  const o2 = a2.dataOrigin.optionValueSetType, n2 = a2.dataOrigin;
67
- if ("dynamicData" === o2) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: n2.dynamicDataSourceCode, filterType: n2.filterType, valueSetOptions: c(n2), valueLabelSwitch: !!n2.valueLabelSwitch });
66
+ if ("dynamicData" === o2) return JSON.stringify({ type: "dynamicData", dynamicDataSourceCode: n2.dynamicDataSourceCode, filterType: n2.filterType, valueSetOptions: m(n2), valueLabelSwitch: !!n2.valueLabelSwitch });
68
67
  {
69
68
  const a3 = i(e2, t2, r2);
70
- return a3 ? (a3.valueSetOptions = c(n2), JSON.stringify(a3)) : null;
69
+ return a3 ? (a3.valueSetOptions = m(n2), JSON.stringify(a3)) : null;
71
70
  }
72
71
  }
73
72
  }
74
- function c(e2) {
73
+ function m(e2) {
75
74
  const t2 = [];
76
75
  return e2.autoSets.forEach((e3) => {
77
76
  const r2 = y(e3.target);
78
77
  t2.push({ columnName: y(e3.source), valueField: r2, valueColumn: { name: r2, dbColumnName: r2.toUpperCase() } });
79
78
  }), t2;
80
79
  }
81
- function m(e2) {
80
+ function c(e2) {
82
81
  if (!e2.name) return null;
83
82
  switch (e2.name) {
84
83
  case "input-text":
@@ -155,10 +154,11 @@ function f(e2) {
155
154
  return null;
156
155
  }
157
156
  function d(e2) {
157
+ var _a, _b;
158
158
  if ("file-upload" === e2.name) {
159
159
  const t2 = y(e2.props.base.prop), r2 = y(e2.props.format ? e2.props.format.fileUuid : null);
160
160
  let a2 = {};
161
- return t2 && (a2.showNameData = { name: t2, dbName: t2.toUpperCase() }), r2 && (a2.serverNameData = { name: r2, dbName: r2.toUpperCase() }), e2.props.uploadConfig && (e2.props.uploadConfig.multiple ? a2.multiple = true : a2.multiple = false, e2.props.uploadConfig.accept ? a2.accept = e2.props.uploadConfig.accept : a2.accept = null, e2.props.uploadConfig.limitFileSize ? a2.limitFileSize = e2.props.uploadConfig.limitFileSize : a2.limitFileSize = null, e2.props.uploadConfig.openCameraOrChoosePhoto ? a2.openCameraOrChoosePhoto = e2.props.uploadConfig.openCameraOrChoosePhoto : a2.openCameraOrChoosePhoto = null), JSON.stringify(a2);
161
+ return t2 && (a2.showNameData = { name: t2, dbName: t2.toUpperCase() }), r2 && (a2.serverNameData = { name: r2, dbName: r2.toUpperCase() }), e2.props.uploadConfig && (e2.props.uploadConfig.multiple ? a2.multiple = true : a2.multiple = false, e2.props.uploadConfig.accept ? a2.accept = e2.props.uploadConfig.accept : a2.accept = null, e2.props.uploadConfig.limitFileSize ? a2.limitFileSize = e2.props.uploadConfig.limitFileSize : a2.limitFileSize = null, e2.props.uploadConfig.openCameraOrChoosePhoto ? a2.openCameraOrChoosePhoto = e2.props.uploadConfig.openCameraOrChoosePhoto : a2.openCameraOrChoosePhoto = null, e2.props.watermark && (a2.watermark = {}), ((_a = e2.props.watermark) == null ? void 0 : _a.isShowWatermark) ? a2.watermark.isShowWatermark = true : a2.watermark.isShowWatermark = false, ((_b = e2.props.watermark) == null ? void 0 : _b.content) ? a2.watermark.content = e2.props.watermark.content : a2.watermark.content = null), JSON.stringify(a2);
162
162
  }
163
163
  return null;
164
164
  }
@@ -222,7 +222,7 @@ function C(e2, t2) {
222
222
  var _a, _b, _c, _d, _e, _f;
223
223
  const t4 = e4.componentConfig;
224
224
  if (t4) {
225
- e4.format = b(t4), e4.defaultValue = (_b = (_a = t4.props) == null ? void 0 : _a.base) == null ? void 0 : _b.defaultValue, e4.controlName = m(t4), e4.controlConfig = g(t4), e4.eventType = S(t4), e4.fileSet = d(t4), e4.orgTreeSet = f(t4), e4.required = (_d = (_c = t4.props) == null ? void 0 : _c.verification) == null ? void 0 : _d.required, e4.pattern = (_f = (_e = t4.props) == null ? void 0 : _e.verification) == null ? void 0 : _f.verifyRegex, e4.checkType = T(t4.props.verification.type);
225
+ e4.format = b(t4), e4.defaultValue = (_b = (_a = t4.props) == null ? void 0 : _a.base) == null ? void 0 : _b.defaultValue, e4.controlName = c(t4), e4.controlConfig = g(t4), e4.eventType = S(t4), e4.fileSet = d(t4), e4.orgTreeSet = f(t4), e4.required = (_d = (_c = t4.props) == null ? void 0 : _c.verification) == null ? void 0 : _d.required, e4.pattern = (_f = (_e = t4.props) == null ? void 0 : _e.verification) == null ? void 0 : _f.verifyRegex, e4.checkType = T(t4.props.verification.type);
226
226
  const r3 = l(t4);
227
227
  e4.valueSet = r3, e4.functionCodes && e4.functionCodes.length > 0 ? e4.functionCode = e4.functionCodes.join(",") : e4.functionCode = "";
228
228
  } else e4.format = null, e4.defaultValue = null, e4.controlName = null, e4.controlConfig = null, e4.eventType = null, e4.fileSet = null, e4.orgTreeSet = null, e4.required = null, e4.pattern = null, e4.checkType = null, e4.valueSet = null;
@@ -273,7 +273,7 @@ function N(e2) {
273
273
  t2.push({ value: e3.dbColumnName, label: e3.alias, alias: e3.alias, dataType: e3.dataType });
274
274
  }), t2;
275
275
  }
276
- function V(e2, t2, r2) {
276
+ function w(e2, t2, r2) {
277
277
  var _a;
278
278
  const a2 = e2 ? e2.pageType : null;
279
279
  let i2, n2;
@@ -282,7 +282,7 @@ function V(e2, t2, r2) {
282
282
  export {
283
283
  h as changeFeieldToMap,
284
284
  N as getModelOptionsByFields,
285
- V as getTableConfigByTableUuid,
285
+ w as getTableConfigByTableUuid,
286
286
  v as getTableNameByTableUuid,
287
287
  s as querySublist,
288
288
  n as queryTableFields,
@@ -31,7 +31,7 @@ const D = { style: { padding: "8px 0px 0px 0px" } }, j = e({ __name: "button-att
31
31
  A.value = false;
32
32
  }
33
33
  function F(e3) {
34
- j2.configure.props.setValueList = e3;
34
+ j2.configure.props.setValueList = e3, j2.configure.props.setValueList;
35
35
  }
36
36
  const P = o(false);
37
37
  function W() {
@@ -1,27 +1,27 @@
1
- import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as t, openBlock as n, normalizeStyle as o, normalizeClass as a, withCtx as s, createElementBlock as c, createCommentVNode as r, Fragment as p, createTextVNode as v, toDisplayString as y, unref as g } from "vue";
2
- import { SuperIcon as d } from "agilebuilder-ui";
3
- import { caculateDetailComponentStyle as f, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
4
- import { batchUpdatePermissions as T } from "../../../../utils/page-permission-util.js";
5
- const V = e({ __name: "button-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
- const V2 = e2;
7
- V2.configure.runtime || (V2.configure.runtime = {});
8
- const b = i({}), k = i(""), x = i({}), z = i({});
9
- l(V2.configure.style, () => {
10
- f(V2.configure, b, k, x), V2.configure.runtime.style = b.value, V2.configure.runtime.class = k.value, V2.configure.runtime.headerStyle = x.value;
1
+ import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as n, openBlock as o, normalizeStyle as t, normalizeClass as a, withCtx as c, createElementBlock as s, createCommentVNode as r, Fragment as p, createTextVNode as v, toDisplayString as y, unref as g } from "vue";
2
+ import { SuperIcon as f } from "agilebuilder-ui";
3
+ import { caculateDetailComponentStyle as m, caculateComponentProps as T } from "../../../../utils/form-design-util.js";
4
+ import { batchUpdatePermissions as V } from "../../../../utils/page-permission-util.js";
5
+ const d = e({ __name: "button-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
+ const d2 = e2;
7
+ d2.configure.runtime || (d2.configure.runtime = {});
8
+ const k = i({}), b = i(""), x = i({}), z = i({});
9
+ l(d2.configure.style, () => {
10
+ m(d2.configure, k, b, x), d2.configure.runtime.style = k.value, d2.configure.runtime.class = b.value, d2.configure.runtime.headerStyle = x.value;
11
11
  }, { immediate: true });
12
- const P = V2.configure.props && V2.configure.props.base ? V2.configure.props.base : {};
12
+ const P = d2.configure.props && d2.configure.props.base ? d2.configure.props.base : {};
13
13
  let h = P.title;
14
- return l(V2.configure.props, (e3, i2) => {
15
- m(V2.configure, z), function() {
16
- let e4 = V2.configure.props ? V2.configure.props : {};
14
+ return l(d2.configure.props, (e3, i2) => {
15
+ T(d2.configure, z), function() {
16
+ let e4 = d2.configure.props ? d2.configure.props : {};
17
17
  const i3 = e4.base ? e4.base : {}, l2 = {};
18
18
  i3.type && (l2.type = i3.type), i3.text && (l2.text = true), i3.plain && (l2.plain = true), i3.round && (l2.round = true), l2.isTextIcon = i3.isTextIcon, i3.iconType && i3.iconValue && (l2.iconType = i3.iconType, l2.iconValue = i3.iconValue, l2.iconPosition = i3.iconPosition), Object.assign(z.value, l2);
19
- }(), P.title !== h && V2.pageDesign && (T(V2.configure, V2.pageDesign), h = P.title), V2.configure.runtime.props = z.value;
19
+ }(), P.title !== h && d2.pageDesign && (V(d2.configure, d2.pageDesign), h = P.title), d2.configure.runtime.props = z.value;
20
20
  }, { immediate: true }), (e3, i2) => {
21
- const l2 = u("el-link"), f2 = u("el-button");
22
- return z.value.text ? (n(), t(l2, { key: 0, disabled: "disabled" === z.value.state, class: a(k.value), style: o(b.value), type: z.value.type, size: z.value.size }, { default: s(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (n(), c(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (n(), c(p, { key: 0 }, [v("   ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (n(), t(g(d), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (n(), c(p, { key: 2 }, [z.value.iconValue ? (n(), c(p, { key: 0 }, [v("   ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (n(), t(f2, { key: 1, disabled: "disabled" === z.value.state, class: a(k.value), style: o(b.value), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain }, { default: s(() => [z.value.title && "right" == z.value.iconPosition ? (n(), c(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (n(), c(p, { key: 0 }, [v("   ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (n(), t(g(d), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition ? (n(), c(p, { key: 2 }, [z.value.iconValue ? (n(), c(p, { key: 0 }, [v("   ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
21
+ const l2 = u("el-link"), m2 = u("el-button");
22
+ return z.value.text ? (o(), n(l2, { key: 0, class: a(b.value), style: t(k.value), type: z.value.type, size: z.value.size }, { default: c(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (o(), s(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (o(), s(p, { key: 0 }, [v("   ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (o(), n(g(f), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (o(), s(p, { key: 2 }, [z.value.iconValue ? (o(), s(p, { key: 0 }, [v("   ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["class", "style", "type", "size"])) : (o(), n(m2, { key: 1, class: a(b.value), style: t(k.value), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain }, { default: c(() => [z.value.title && "right" == z.value.iconPosition ? (o(), s(p, { key: 0 }, [v(y(z.value.title) + " ", 1), z.value.iconValue ? (o(), s(p, { key: 0 }, [v("   ")], 64)) : r("", true)], 64)) : r("", true), z.value.iconType && z.value.iconValue ? (o(), n(g(f), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : r("", true), z.value.title && "right" != z.value.iconPosition ? (o(), s(p, { key: 2 }, [z.value.iconValue ? (o(), s(p, { key: 0 }, [v("   ")], 64)) : r("", true), v(" " + y(z.value.title), 1)], 64)) : r("", true)]), _: 1 }, 8, ["class", "style", "type", "size", "round", "plain"]));
23
23
  };
24
24
  } });
25
25
  export {
26
- V as default
26
+ d as default
27
27
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, watch as l, resolveComponent as u, createElementBlock as i, openBlock as n, normalizeStyle as r, normalizeClass as o, createVNode as a, withCtx as s, createBlock as p, Fragment as g, createTextVNode as d, toDisplayString as m, unref as c, renderList as v } from "vue";
1
+ import { defineComponent as e, ref as t, watch as l, resolveComponent as u, createElementBlock as n, openBlock as i, normalizeStyle as r, normalizeClass as o, createVNode as s, withCtx as a, createBlock as p, Fragment as g, createTextVNode as m, toDisplayString as c, unref as d, renderList as v } from "vue";
2
2
  import { ArrowDown as f } from "@element-plus/icons-vue";
3
3
  import { caculateDetailComponentStyle as y, caculateComponentProps as b } from "../../../../utils/form-design-util.js";
4
4
  import z from "../../../design/page-design.vue.js";
@@ -13,7 +13,7 @@ const _ = { key: 1 }, k = e({ __name: "dropdown-design", props: { configure: { t
13
13
  }(), z2.configure.runtime.props = j.value;
14
14
  }, { immediate: true }), (e3, t2) => {
15
15
  const l2 = u("el-button"), y2 = u("el-icon"), b2 = u("el-text"), z3 = u("el-dropdown-item"), E2 = u("el-dropdown-menu"), B = u("el-dropdown");
16
- return n(), i("div", { class: o(w.value), style: r(k2.value) }, [a(B, { placement: j.value.placement, "split-button": j.value.splitButton, disabled: "disabled" === j.value.state, type: j.value.buttonType, size: j.value.size, trigger: j.value.trigger }, { dropdown: s(() => [a(E2, null, { default: s(() => [(n(true), i(g, null, v(j.value.options, (e4, t3) => (n(), p(z3, { key: e4 }, { default: s(() => [d(m(e4.label), 1)]), _: 2 }, 1024))), 128))]), _: 1 })]), default: s(() => ["button" === j.value.triggerElement ? (n(), i(g, { key: 0 }, [j.value.splitButton ? (n(), i("span", _, m(j.value.title), 1)) : (n(), p(l2, { key: 0, size: j.value.size, type: j.value.buttonType }, { default: s(() => [d(m(j.value.title), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (n(), p(b2, { key: 1 }, { default: s(() => [d(m(j.value.title) + " ", 1), a(y2, null, { default: s(() => [a(c(f))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["placement", "split-button", "disabled", "type", "size", "trigger"])], 6);
16
+ return i(), n("div", { class: o(w.value), style: r(k2.value) }, [s(B, { placement: j.value.placement, "split-button": j.value.splitButton, type: j.value.buttonType, size: j.value.size, trigger: j.value.trigger }, { dropdown: a(() => [s(E2, null, { default: a(() => [(i(true), n(g, null, v(j.value.options, (e4, t3) => (i(), p(z3, { key: e4 }, { default: a(() => [m(c(e4.label), 1)]), _: 2 }, 1024))), 128))]), _: 1 })]), default: a(() => ["button" === j.value.triggerElement ? (i(), n(g, { key: 0 }, [j.value.splitButton ? (i(), n("span", _, c(j.value.title), 1)) : (i(), p(l2, { key: 0, size: j.value.size, type: j.value.buttonType }, { default: a(() => [m(c(j.value.title), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (i(), p(b2, { key: 1 }, { default: a(() => [m(c(j.value.title) + " ", 1), s(y2, null, { default: a(() => [s(d(f))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["placement", "split-button", "type", "size", "trigger"])], 6);
17
17
  };
18
18
  } });
19
19
  export {
@@ -1,27 +1,27 @@
1
- import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as a, openBlock as t, normalizeStyle as o, normalizeClass as n, withCtx as s, createElementBlock as r, createCommentVNode as c, Fragment as p, createTextVNode as v, toDisplayString as g, unref as y } from "vue";
2
- import { SuperIcon as d } from "agilebuilder-ui";
3
- import { caculateDetailComponentStyle as f, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
4
- import { batchUpdatePermissions as b } from "../../../../utils/page-permission-util.js";
5
- const k = e({ __name: "exportpdf-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
- const k2 = e2;
7
- k2.configure.runtime || (k2.configure.runtime = {});
8
- const V = i({}), T = i(""), z = i({}), h = i({});
9
- l(k2.configure.style, () => {
10
- f(k2.configure, V, T, z), k2.configure.runtime.style = V.value, k2.configure.runtime.class = T.value, k2.configure.runtime.headerStyle = z.value;
1
+ import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as o, openBlock as n, normalizeStyle as t, normalizeClass as a, withCtx as s, createElementBlock as r, createCommentVNode as c, Fragment as p, createTextVNode as v, toDisplayString as g, unref as y } from "vue";
2
+ import { SuperIcon as f } from "agilebuilder-ui";
3
+ import { caculateDetailComponentStyle as m, caculateComponentProps as d } from "../../../../utils/form-design-util.js";
4
+ import { batchUpdatePermissions as k } from "../../../../utils/page-permission-util.js";
5
+ const V = e({ __name: "exportpdf-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
+ const V2 = e2;
7
+ V2.configure.runtime || (V2.configure.runtime = {});
8
+ const T = i({}), b = i(""), z = i({}), h = i({});
9
+ l(V2.configure.style, () => {
10
+ m(V2.configure, T, b, z), V2.configure.runtime.style = T.value, V2.configure.runtime.class = b.value, V2.configure.runtime.headerStyle = z.value;
11
11
  }, { immediate: true });
12
- const x = k2.configure.props && k2.configure.props.base ? k2.configure.props.base : {};
12
+ const x = V2.configure.props && V2.configure.props.base ? V2.configure.props.base : {};
13
13
  let j = x.title;
14
- return l(k2.configure.props, (e3, i2) => {
15
- m(k2.configure, h), function() {
16
- let e4 = k2.configure.props ? k2.configure.props : {};
14
+ return l(V2.configure.props, (e3, i2) => {
15
+ d(V2.configure, h), function() {
16
+ let e4 = V2.configure.props ? V2.configure.props : {};
17
17
  const i3 = e4.base ? e4.base : {}, l2 = e4.dropdown ? e4.dropdown : {};
18
18
  Object.assign(h.value, l2), Object.assign(h.value, i3);
19
- }(), x.title !== j && k2.pageDesign && (b(k2.configure, k2.pageDesign), j = x.title), k2.configure.runtime.props = h.value;
19
+ }(), x.title !== j && V2.pageDesign && (k(V2.configure, V2.pageDesign), j = x.title), V2.configure.runtime.props = h.value;
20
20
  }, { immediate: true }), (e3, i2) => {
21
- const l2 = u("el-link"), f2 = u("el-button");
22
- return h.value.text ? (t(), a(l2, { key: 0, disabled: "disabled" === h.value.state, class: n(T.value), style: o(V.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (t(), a(f2, { key: 1, disabled: "disabled" === h.value.state, class: n(T.value), style: o(V.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
21
+ const l2 = u("el-link"), m2 = u("el-button");
22
+ return h.value.text ? (n(), o(l2, { key: 0, class: a(b.value), style: t(T.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (n(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (n(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (n(), o(y(f), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (n(), r(p, { key: 2 }, [h.value.iconValue ? (n(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["class", "style", "type", "size"])) : (n(), o(m2, { key: 1, class: a(b.value), style: t(T.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (n(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (n(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (n(), o(y(f), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (n(), r(p, { key: 2 }, [h.value.iconValue ? (n(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["class", "style", "type", "size", "round", "plain"]));
23
23
  };
24
24
  } });
25
25
  export {
26
- k as default
26
+ V as default
27
27
  };
@@ -1,27 +1,27 @@
1
- import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as a, openBlock as t, normalizeStyle as n, normalizeClass as o, withCtx as s, createElementBlock as r, createCommentVNode as c, Fragment as p, createTextVNode as v, toDisplayString as g, unref as y } from "vue";
2
- import { SuperIcon as d } from "agilebuilder-ui";
3
- import { caculateDetailComponentStyle as f, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
4
- import { batchUpdatePermissions as b } from "../../../../utils/page-permission-util.js";
5
- const k = e({ __name: "printlabel-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
- const k2 = e2;
7
- k2.configure.runtime || (k2.configure.runtime = {});
8
- const V = i({}), T = i(""), z = i({}), h = i({});
9
- l(k2.configure.style, () => {
10
- f(k2.configure, V, T, z), k2.configure.runtime.style = V.value, k2.configure.runtime.class = T.value, k2.configure.runtime.headerStyle = z.value;
1
+ import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as n, openBlock as o, normalizeStyle as t, normalizeClass as a, withCtx as s, createElementBlock as r, createCommentVNode as c, Fragment as p, createTextVNode as v, toDisplayString as g, unref as y } from "vue";
2
+ import { SuperIcon as f } from "agilebuilder-ui";
3
+ import { caculateDetailComponentStyle as m, caculateComponentProps as d } from "../../../../utils/form-design-util.js";
4
+ import { batchUpdatePermissions as k } from "../../../../utils/page-permission-util.js";
5
+ const V = e({ __name: "printlabel-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
+ const V2 = e2;
7
+ V2.configure.runtime || (V2.configure.runtime = {});
8
+ const T = i({}), b = i(""), z = i({}), h = i({});
9
+ l(V2.configure.style, () => {
10
+ m(V2.configure, T, b, z), V2.configure.runtime.style = T.value, V2.configure.runtime.class = b.value, V2.configure.runtime.headerStyle = z.value;
11
11
  }, { immediate: true });
12
- const j = k2.configure.props && k2.configure.props.base ? k2.configure.props.base : {};
12
+ const j = V2.configure.props && V2.configure.props.base ? V2.configure.props.base : {};
13
13
  let x = j.title;
14
- return l(k2.configure.props, (e3, i2) => {
15
- m(k2.configure, h), function() {
16
- let e4 = k2.configure.props ? k2.configure.props : {};
14
+ return l(V2.configure.props, (e3, i2) => {
15
+ d(V2.configure, h), function() {
16
+ let e4 = V2.configure.props ? V2.configure.props : {};
17
17
  const i3 = e4.base ? e4.base : {}, l2 = e4.dropdown ? e4.dropdown : {};
18
18
  Object.assign(h.value, l2), Object.assign(h.value, i3);
19
- }(), j.title !== x && k2.pageDesign && (b(k2.configure, k2.pageDesign), x = j.title), k2.configure.runtime.props = h.value;
19
+ }(), j.title !== x && V2.pageDesign && (k(V2.configure, V2.pageDesign), x = j.title), V2.configure.runtime.props = h.value;
20
20
  }, { immediate: true }), (e3, i2) => {
21
- const l2 = u("el-link"), f2 = u("el-button");
22
- return h.value.text ? (t(), a(l2, { key: 0, disabled: "disabled" === h.value.state, class: o(T.value), style: n(V.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size"])) : (t(), a(f2, { key: 1, disabled: "disabled" === h.value.state, class: o(T.value), style: n(V.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (t(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (t(), a(y(d), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (t(), r(p, { key: 2 }, [h.value.iconValue ? (t(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain"]));
21
+ const l2 = u("el-link"), m2 = u("el-button");
22
+ return h.value.text ? (o(), n(l2, { key: 0, class: a(b.value), style: t(T.value), type: h.value.type, size: h.value.size }, { default: s(() => [h.value.title && "right" == h.value.iconPosition && !h.value.isTextIcon ? (o(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (o(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (o(), n(y(f), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition && !h.value.isTextIcon ? (o(), r(p, { key: 2 }, [h.value.iconValue ? (o(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["class", "style", "type", "size"])) : (o(), n(m2, { key: 1, class: a(b.value), style: t(T.value), type: h.value.type, size: h.value.size, round: h.value.round, plain: h.value.plain }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (o(), r(p, { key: 0 }, [v(g(h.value.title) + " ", 1), h.value.iconValue ? (o(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true)], 64)) : c("", true), h.value.iconType && h.value.iconValue ? (o(), n(y(f), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), h.value.title && "right" != h.value.iconPosition ? (o(), r(p, { key: 2 }, [h.value.iconValue ? (o(), r(p, { key: 0 }, [v("   ")], 64)) : c("", true), v(" " + g(h.value.title), 1)], 64)) : c("", true)]), _: 1 }, 8, ["class", "style", "type", "size", "round", "plain"]));
23
23
  };
24
24
  } });
25
25
  export {
26
- k as default
26
+ V as default
27
27
  };