super-page-designer 2.3.14-sit1-design3 → 2.3.15-sit1-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.
- package/dist/es/components/design/utils/assemblys-config.js +54 -53
- package/dist/es/components/design/utils/chart-design-util.js +23 -17
- package/dist/es/components/design/utils/form-design-util.js +1 -1
- package/dist/es/components/design/utils/page-table-util.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +34 -33
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-base.vue.js +9 -8
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +12 -7
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-style.vue.js +13 -12
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-emphasis.vue.js +11 -0
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-emphasis.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-stack.vue.js +7 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-stack.vue2.js +27 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-style-tooltip.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/common/common-task-title.vue.js +7 -0
- package/dist/es/components/design/views/assemblys/common/common-task-title.vue2.js +127 -0
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue.js +36 -42
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +16 -14
- package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/style.css +46 -1
- package/package.json +3 -3
- /package/dist/es/components/design/views/assemblys/button/component/{journal-set-dialog.vue3.js → journal-set-dialog.vue2.js} +0 -0
|
@@ -13,14 +13,14 @@ 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 : {}, 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: [] },
|
|
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: [] }, h2 = "chart-column-line" == e2.name, b2 = "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
18
|
u2.title[0].subtext = i2.subTitle, a2.subtitleTextAlign && (u2.title[0].left = a2.subtitleTextAlign);
|
|
19
19
|
const e3 = o(a2);
|
|
20
20
|
Object.assign(u2.title[0], e3);
|
|
21
21
|
}
|
|
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), (
|
|
23
|
-
|
|
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), (h2 || b2 || 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)), h2 || m) {
|
|
23
|
+
h2 && (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)), h2 && 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
26
|
r(e3[t2], u2.yAxis[t2]);
|
|
@@ -52,11 +52,12 @@ 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, u2), (
|
|
55
|
+
}(e2, u2), (h2 || m) && a2.enableDatazoom) {
|
|
56
56
|
const e3 = { type: "slider" };
|
|
57
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
|
+
var _a;
|
|
60
61
|
l3.tooltip.show = e3.enableTooltip, e3.tooltipTrigger && (l3.tooltip.trigger = e3.tooltipTrigger);
|
|
61
62
|
e3.tooltipPosition && (l3.tooltip.position = e3.tooltipPosition);
|
|
62
63
|
if (e3.tooltipNumFormat) {
|
|
@@ -68,30 +69,35 @@ function a(e2, l2) {
|
|
|
68
69
|
e3.tooltipColor && (l3.tooltip.textStyle.color = e3.tooltipColor);
|
|
69
70
|
e3.tooltipWeight && (l3.tooltip.textStyle.fontWeight = e3.tooltipWeight);
|
|
70
71
|
e3.tooltipFormatter && (l3.tooltip.formatter = e3.tooltipFormatter);
|
|
72
|
+
e3.axisPointer && (((_a = l3.tooltip) == null ? void 0 : _a.axisPointer) || (l3.tooltip.axisPointer = {}), e3.axisPointer.type && (l3.tooltip.axisPointer.type = e3.axisPointer.type));
|
|
71
73
|
}(a2, u2);
|
|
72
|
-
const f =
|
|
74
|
+
const f = {};
|
|
75
|
+
if (e2.stacks && e2.stacks.length > 0) for (let t2 of e2.stacks) t2.series && t2.series.length > 0 && t2.series.forEach((e3) => {
|
|
76
|
+
f[e3] = t2.uuid;
|
|
77
|
+
});
|
|
78
|
+
const x = e2.items ? e2.items : [];
|
|
73
79
|
if (g) {
|
|
74
80
|
u2.series || (u2.series = []), 0 == u2.series.length && u2.series.push({});
|
|
75
81
|
let e3 = u2.series[0];
|
|
76
82
|
e3.type = "radar", e3.data = [];
|
|
77
|
-
for (let t2 of
|
|
83
|
+
for (let t2 of x) if ("radar" == t2.type) {
|
|
78
84
|
const l3 = n(t2, u2);
|
|
79
85
|
l3.uuid = t2.uuid, e3.data.push(l3);
|
|
80
86
|
}
|
|
81
|
-
} else for (let e3 of
|
|
87
|
+
} else for (let e3 of x) {
|
|
82
88
|
let t2 = null;
|
|
83
|
-
if (t2 = "scatter" == e3.type ? d(e3) : s(e3), t2.uuid = e3.uuid, (
|
|
89
|
+
if (t2 = "scatter" == e3.type ? d(e3) : s(e3), t2.uuid = e3.uuid, (h2 || 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 + "%"))), (b2 || c2) && e3.props.subTitle) {
|
|
84
90
|
const t3 = o(e3.style);
|
|
85
91
|
t3.subtext = e3.props.subTitle, u2.title.push(t3);
|
|
86
92
|
}
|
|
87
|
-
u2.series.push(t2);
|
|
93
|
+
f && Object.keys(f).length > 0 && f[t2.uuid] && (t2.stack = f[t2.uuid]), u2.series.push(t2);
|
|
88
94
|
}
|
|
89
|
-
if (
|
|
95
|
+
if (b2 && (0 == a2.enableLegend && (u2.legend = void 0), u2.xAxis[0].show = false), (c2 || g) && (u2.xAxis[0].show = false), i2.isBar) {
|
|
90
96
|
for (let e3 of u2.yAxis) e3.show && (e3.type = "category", e3.data = u2.xAxis[0].data);
|
|
91
97
|
u2.xAxis[0].data = void 0, u2.isBar = i2.isBar;
|
|
92
98
|
}
|
|
93
|
-
const
|
|
94
|
-
|
|
99
|
+
const y = p(a2.customAttr);
|
|
100
|
+
y && Object.assign(u2, y), l2.value = u2;
|
|
95
101
|
}
|
|
96
102
|
function o(e2) {
|
|
97
103
|
const t2 = { subtextStyle: {} };
|
|
@@ -106,7 +112,7 @@ function r(e2, t2) {
|
|
|
106
112
|
}
|
|
107
113
|
function s(e2) {
|
|
108
114
|
const l2 = e2.props ? e2.props : {}, i2 = e2.style ? e2.style : {}, a2 = { name: l2.title, type: e2.type, label: {}, itemStyle: {}, lineStyle: {}, emphasis: {} };
|
|
109
|
-
if ("bar" === e2.type && (a2.emphasis.itemStyle = { color: "#E3E8C0", borderWidth: 1, borderType: "dashed", borderColor: "#878773" }), null != i2.enableLabel) {
|
|
115
|
+
if ("bar" === e2.type && (a2.emphasis.itemStyle = { color: "#E3E8C0", borderWidth: 1, borderType: "dashed", borderColor: "#878773" }, e2.style.emphasis && (a2.emphasis || (a2.emphasis = {}), Object.assign(a2.emphasis, e2.style.emphasis))), null != i2.enableLabel) {
|
|
110
116
|
if (a2.label.show = i2.enableLabel, i2.labelPosition && (a2.label.position = i2.labelPosition), i2.labelFontSize && (a2.label.fontSize = i2.labelFontSize), i2.labelColor && (a2.label.color = i2.labelColor), i2.labelWeight && (a2.label.fontWeight = i2.labelWeight), i2.textAlign && (a2.label.align = i2.textAlign), i2.verticalAlign && (a2.label.verticalAlign = i2.verticalAlign), i2.labelAngle && (a2.label.rotate = i2.labelAngle), i2.labelLeft || i2.labelTop) {
|
|
111
117
|
const e3 = [0, 0];
|
|
112
118
|
i2.labelLeft && !isNaN(i2.labelLeft) && (e3[0] = parseFloat(i2.labelLeft)), i2.labelTop && !isNaN(i2.labelTop) && (e3[1] = parseFloat(i2.labelTop)), a2.label.offset = e3;
|
|
@@ -341,7 +347,7 @@ function u(t2) {
|
|
|
341
347
|
e2 > -1 && l2.initChartServiceConfigs.shift(e2, 1);
|
|
342
348
|
}
|
|
343
349
|
}
|
|
344
|
-
function
|
|
350
|
+
function h(t2, i2) {
|
|
345
351
|
var _a;
|
|
346
352
|
const a2 = e().pageContext;
|
|
347
353
|
if (a2) {
|
|
@@ -367,7 +373,7 @@ function b(t2, i2) {
|
|
|
367
373
|
}
|
|
368
374
|
return null;
|
|
369
375
|
}
|
|
370
|
-
function
|
|
376
|
+
function b(t2, i2) {
|
|
371
377
|
const a2 = e().pageContext;
|
|
372
378
|
if (a2.initChartServiceConfigs) {
|
|
373
379
|
a2.initChartServiceConfigs.filter((e2) => e2.uuid && e2.uuid === t2.uuid).forEach((e2) => {
|
|
@@ -385,8 +391,8 @@ function c(e2, t2) {
|
|
|
385
391
|
export {
|
|
386
392
|
i as generateChartHeader,
|
|
387
393
|
a as generateChartOption,
|
|
388
|
-
|
|
394
|
+
h as initComponentDataConfig,
|
|
389
395
|
u as removComponentDataConfig,
|
|
390
396
|
c as updateDynamicSeriesField,
|
|
391
|
-
|
|
397
|
+
b as updateServiceInputs
|
|
392
398
|
};
|
|
@@ -198,7 +198,7 @@ function w(e2, t2) {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function T(e2, t2) {
|
|
201
|
-
if ("wfRemark" === t2) {
|
|
201
|
+
if ("wfRemark" === t2 || "taskTitle" === t2) {
|
|
202
202
|
return ["copyTask"].includes(e2);
|
|
203
203
|
}
|
|
204
204
|
return ["submitTask", "approve", "refuse", "readed", "agreement", "oppose", "kiken", "returnToPreviousTask", "returnTaskTo", "endInstance", "extractWorkflow"].includes(e2);
|
|
@@ -15,7 +15,7 @@ function p(e2, r2) {
|
|
|
15
15
|
const o2 = JSON.stringify(e2), i2 = JSON.parse(o2);
|
|
16
16
|
r2.tableRuntimes || (r2.tableRuntimes = {}), r2.tableRuntimes[i2.uuid] = function(e3, r3, o3) {
|
|
17
17
|
var _a;
|
|
18
|
-
const i3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid, n3 = { configure: o3, code: i3, name: e3.title, totalType: e3.props.base ? e3.props.base.totalType : null, remark: e3.props.base ? e3.props.base.remark : null, pagination: e3.props.base ? e3.props.base.subPaging : null, rowNum: e3.props.base ? e3.props.base.pageSize : null, optionalRows: e3.props.base ? e3.props.base.pageSizes : null, layout: e3.props.base ? JSON.stringify(e3.props.base.layout) : null, startQuery: e3.props.base ? e3.props.base.startQuery : null, popUp: e3.props.base ? e3.props.base.popUp : null, isInitializationQuery: e3.props.dataOrigin.initializationQuery, defaultQueryCriteria: e3.props.dataOrigin.defaultQueryCriteria ? JSON.stringify(e3.props.dataOrigin.defaultQueryCriteria) : "", queryLabelPosition: e3.props.base ? e3.props.base.queryLabelPosition : null, editable: e3.props.base ? e3.props.base.editable : null, urlToListData: e3.props.base ? e3.props.base.urlToListData : null, customConfig: e3.props.base ? e3.props.base.customConfig : null, tableName: e3.props.dataOrigin.tableName, totalable: e3.props.title.totalable, defaultSortField: JSON.stringify(e3.props.dataOrigin.sortField), titleAlign: e3.props.base ? e3.props.base.alignTitle : null, contAlign: e3.props.base ? e3.props.base.alignContent : null, displayEffect: e3.props.base ? e3.props.base.displayEffect : null, textOverflow: (_a = e3.props.base) == null ? void 0 : _a.textOverflow, isDragColumn: e3.props.base
|
|
18
|
+
const i3 = "V" + r3.version + "__" + r3.code + "__" + e3.uuid, n3 = { configure: o3, code: i3, name: e3.title, totalType: e3.props.base ? e3.props.base.totalType : null, remark: e3.props.base ? e3.props.base.remark : null, pagination: e3.props.base ? e3.props.base.subPaging : null, rowNum: e3.props.base ? e3.props.base.pageSize : null, optionalRows: e3.props.base ? e3.props.base.pageSizes : null, layout: e3.props.base ? JSON.stringify(e3.props.base.layout) : null, startQuery: e3.props.base ? e3.props.base.startQuery : null, popUp: e3.props.base ? e3.props.base.popUp : null, isInitializationQuery: e3.props.dataOrigin.initializationQuery, defaultQueryCriteria: e3.props.dataOrigin.defaultQueryCriteria ? JSON.stringify(e3.props.dataOrigin.defaultQueryCriteria) : "", queryLabelPosition: e3.props.base ? e3.props.base.queryLabelPosition : null, editable: e3.props.base ? e3.props.base.editable : null, urlToListData: e3.props.base ? e3.props.base.urlToListData : null, customConfig: e3.props.base ? e3.props.base.customConfig : null, tableName: e3.props.dataOrigin.tableName, totalable: e3.props.title.totalable, defaultSortField: JSON.stringify(e3.props.dataOrigin.sortField), titleAlign: e3.props.base ? e3.props.base.alignTitle : null, contAlign: e3.props.base ? e3.props.base.alignContent : null, displayEffect: e3.props.base ? e3.props.base.displayEffect : null, textOverflow: (_a = e3.props.base) == null ? void 0 : _a.textOverflow, isDragColumn: !!e3.props.base && (void 0 === e3.props.base.isDragColumn || e3.props.base.isDragColumn), border: e3.props.base ? e3.props.base.border : null, customImportColumns: e3.props.importSetting.importFields };
|
|
19
19
|
return n3.items = function(e4, r4) {
|
|
20
20
|
var _a2;
|
|
21
21
|
const o4 = [];
|
|
@@ -1,62 +1,63 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, watch as l, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as u, createCommentVNode as s, createElementVNode as r, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as o, watch as l, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as u, createCommentVNode as s, createElementVNode as r, createElementBlock as g, Fragment as c, renderList as f, createTextVNode as m, withDirectives as p, vShow as d } from "vue";
|
|
2
2
|
import b from "../component/condition-dialog.vue.js";
|
|
3
3
|
import v from "../component/set-dialog.vue.js";
|
|
4
4
|
import y from "../component/combination.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { isShowOpinionSetting as
|
|
5
|
+
import k from "../component/journal-set-dialog.vue.js";
|
|
6
|
+
import C from "../../common/common-advanced-basic-showcondition.vue.js";
|
|
7
|
+
import { isShowOpinionSetting as _ } from "../../../../utils/form-design-util.js";
|
|
8
8
|
import V from "agilebuilder-ui/src/utils/request";
|
|
9
9
|
import { getTableConfigByTableUuid as w } from "../../../../utils/page-table-util.js";
|
|
10
|
-
import
|
|
11
|
-
|
|
10
|
+
import D from "../../common/common-watermark.vue.js";
|
|
11
|
+
import h from "../../common/common-task-title.vue.js";
|
|
12
|
+
const j = { style: { padding: "8px 0px 0px 0px" } }, O = e({ __name: "button-attr-advanced", props: { configure: { type: Object, default: () => {
|
|
12
13
|
} }, pageDesign: { type: Object, default: () => {
|
|
13
14
|
} } }, setup(e2) {
|
|
14
15
|
var _a;
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
|
|
16
|
+
const O2 = e2, M = o(["base"]), x = o(false), L = o([]), R = (_a = O2.pageDesign) == null ? void 0 : _a.systemVersion, S = o(w(O2.pageDesign, O2.configure));
|
|
17
|
+
function N() {
|
|
18
|
+
x.value = false;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
20
|
+
function U(e3) {
|
|
21
|
+
O2.configure.props.base.logSetting = e3, N();
|
|
21
22
|
}
|
|
22
|
-
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${
|
|
23
|
-
|
|
23
|
+
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${O2.pageDesign.systemCode}/${R}`).then((e3) => {
|
|
24
|
+
L.value = e3;
|
|
24
25
|
});
|
|
25
|
-
const
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
const z = o(false);
|
|
27
|
+
function A() {
|
|
28
|
+
z.value = false;
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
const $ = o(false);
|
|
31
|
+
function F() {
|
|
32
|
+
$.value = false;
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
34
|
+
function P(e3) {
|
|
35
|
+
O2.configure.props.setValueList = e3;
|
|
35
36
|
}
|
|
36
|
-
const
|
|
37
|
+
const T = o(false);
|
|
37
38
|
function W() {
|
|
38
|
-
|
|
39
|
+
T.value = false;
|
|
39
40
|
}
|
|
40
41
|
function q(e3) {
|
|
41
|
-
|
|
42
|
+
O2.configure.props.base.showConditions = JSON.stringify(e3);
|
|
42
43
|
}
|
|
43
|
-
const I = o(
|
|
44
|
-
function
|
|
44
|
+
const I = o(E("opinion")), J = o(E("wfRemark")), B = o(E("taskTitle"));
|
|
45
|
+
function E(e3) {
|
|
45
46
|
let o2 = false;
|
|
46
|
-
const l2 =
|
|
47
|
+
const l2 = O2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
|
|
47
48
|
if (l2 && l2.length > 0) {
|
|
48
49
|
const a2 = l2[0].eventName;
|
|
49
|
-
o2 =
|
|
50
|
+
o2 = _(a2, e3);
|
|
50
51
|
}
|
|
51
52
|
return o2;
|
|
52
53
|
}
|
|
53
|
-
return l(
|
|
54
|
-
I.value =
|
|
54
|
+
return l(O2.configure.events, (e3) => {
|
|
55
|
+
I.value = E("opinion"), J.value = E("wfRemark"), I.value || (O2.configure.props.base.isMustOpinion = false);
|
|
55
56
|
}, { immediate: true }), (o2, l2) => {
|
|
56
|
-
const
|
|
57
|
-
return n(), i(
|
|
57
|
+
const _2 = a("el-option"), V2 = a("el-select"), w2 = a("el-form-item"), O3 = a("el-button"), R2 = a("el-text"), E2 = a("el-switch"), G = a("el-collapse-item"), H = a("el-collapse"), K = a("el-form");
|
|
58
|
+
return n(), i(K, { "label-width": "80px", size: "small" }, { default: t(() => [u(H, { modelValue: M.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => M.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [u(G, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", j, [u(w2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [u(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": l2[0] || (l2[0] = (o3) => e2.configure.props.base.successOperation = o3), class: "ml-4" }, { default: t(() => [u(_2, { label: "无操作", value: "noOperation" }), u(_2, { label: "刷新", value: "refresh" }), u(_2, { label: "关闭窗口", value: "closeWindow" }), u(_2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(w2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [u(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": l2[1] || (l2[1] = (o3) => e2.configure.props.base.conversionCodes = o3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), g(c, null, f(L.value, (e3) => (n(), i(_2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(w2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [u(O3, { type: "primary", onClick: l2[2] || (l2[2] = (e3) => z.value = true) }, { default: t(() => l2[8] || (l2[8] = [m("编辑")])), _: 1 })]), _: 1 }), u(w2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: S.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), u(w2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [u(O3, { type: "primary", onClick: l2[3] || (l2[3] = (e3) => $.value = true) }, { default: t(() => l2[9] || (l2[9] = [m("编辑")])), _: 1 }), p(u(R2, { type: "success" }, { default: t(() => l2[10] || (l2[10] = [m(" 已设置条件. ")])), _: 1 }, 512), [[d, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), u(w2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: S.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), u(w2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [u(O3, { type: "primary", onClick: l2[4] || (l2[4] = (e3) => x.value = true) }, { default: t(() => l2[11] || (l2[11] = [m("编辑")])), _: 1 })]), _: 1 }), I.value ? (n(), i(w2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [u(E2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": l2[5] || (l2[5] = (o3) => e2.configure.props.base.isMustOpinion = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.base.isMustOpinion ? (n(), i(w2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: S.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : s("", true), J.value ? (n(), i(w2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [u(E2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": l2[6] || (l2[6] = (o3) => e2.configure.props.base.isMustRemark = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.base.isMustRemark ? (n(), i(w2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: S.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : s("", true), B.value ? (n(), i(w2, { key: 4, label: "任务标题", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(h, { key: e2.configure.uuid + "_taskTitle", configure: e2.configure, pageDesign: e2.pageDesign, title: "任务标题生效条件" }, null, 8, ["configure", "pageDesign"]))]), _: 1 })) : s("", true)])]), _: 1 }), u(G, { title: "水印设置", name: "watermark", class: "amb-design-attr-group-header" }, { default: t(() => [u(D, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), z.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: S.value, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : s("", true), $.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: S.value, onSave: P, onClose: F }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : s("", true), T.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: S.value, onSave: q, onClose: W }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : s("", true), x.value ? (n(), i(k, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: N, onSave: U }, null, 8, ["modelValue"])) : s("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
58
59
|
};
|
|
59
60
|
} });
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
O as default
|
|
62
63
|
};
|
package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-base.vue.js
CHANGED
|
@@ -3,19 +3,20 @@ import c from "../common/common-attr-base.vue.js";
|
|
|
3
3
|
import l from "../common/common-attr-serieslist.vue.js";
|
|
4
4
|
import s from "../common/common-attr-groupby.vue.js";
|
|
5
5
|
import a from "../common/common-attr-sortby.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import f from "../../form/common/data-linkage.vue.js";
|
|
7
|
+
import p from "../common/common-attr-assistant.vue.js";
|
|
8
8
|
import g from "../../common/common-attr-size.vue.js";
|
|
9
9
|
import d from "../common/common-attr-data.vue.js";
|
|
10
10
|
import v from "../common/common-attr-clickset.vue.js";
|
|
11
11
|
import j from "../../form/common/suffixmodule.vue.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
import k from "../common/common-attr-stack.vue.js";
|
|
13
|
+
const b = { style: { padding: "8px 0px 0px 0px" } }, y = o({ __name: "column-line-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(o2) {
|
|
14
|
+
const y2 = e(["propsBase", "seriesList", "dataSet", "propsGroup", "attrSize", "propsSort", "propsDrill", "propsAssistant", "linkage", "clicklinkage", "clickTrigger", "stackList"]);
|
|
15
|
+
return (e2, x) => {
|
|
16
|
+
const z = r("el-collapse-item"), D = r("el-collapse"), _ = r("el-form");
|
|
17
|
+
return i(), n(_, { "label-width": "80px", size: "small" }, { default: u(() => [t(D, { modelValue: y2.value, "onUpdate:modelValue": x[0] || (x[0] = (o3) => y2.value = o3), style: { "margin-top": "6px" } }, { default: u(() => [t(c, { configure: o2.configure, chartType: "columnLine" }, null, 8, ["configure"]), t(l, { configure: o2.configure, defaultType: "bar" }, null, 8, ["configure"]), t(k, { configure: o2.configure, defaultType: "bar" }, null, 8, ["configure"]), t(d, { configure: o2.configure }, null, 8, ["configure"]), t(s, { configure: o2.configure }, null, 8, ["configure"]), t(a, { configure: o2.configure }, null, 8, ["configure"]), t(v, { configure: o2.configure }, null, 8, ["configure"]), t(z, { title: "Click跳转配置", name: "clicklinkage", class: "amb-design-attr-group-header" }, { default: u(() => [m("div", b, [(i(), n(j, { key: o2.configure.uuid, configure: o2.configure, pageDesign: o2.pageDesign, isButton: false }, null, 8, ["configure", "pageDesign"]))])]), _: 1 }), t(f, { configureProps: o2.configure.props }, null, 8, ["configureProps"]), t(p, { configure: o2.configure }, null, 8, ["configure"]), t(g, { size: o2.configure.props.size }, null, 8, ["size"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
17
18
|
};
|
|
18
19
|
} });
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
y as default
|
|
21
22
|
};
|
package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as i, watch as t, onUnmounted as r, createElementBlock as o, openBlock as n, withModifiers as
|
|
1
|
+
import { defineComponent as e, ref as i, watch as t, onUnmounted as r, createElementBlock as o, openBlock as n, withModifiers as s, normalizeClass as u, normalizeStyle as c, withDirectives as l, createVNode as m, vShow as a, unref as f, createElementVNode as g, Fragment as p, renderList as d, toDisplayString as v } from "vue";
|
|
2
2
|
import { getUuidv4 as h } from "../../../../utils/common-util.js";
|
|
3
3
|
import { caculateComponentStyle as b } from "../../../../utils/container-design-util.js";
|
|
4
4
|
import { removComponentDataConfig as W, generateChartHeader as j, generateChartOption as y, updateDynamicSeriesField as C, initComponentDataConfig as I } from "../../../../utils/chart-design-util.js";
|
|
5
|
-
import { getCustomTheme as
|
|
6
|
-
import
|
|
5
|
+
import { getCustomTheme as k } from "super-page-runtime";
|
|
6
|
+
import x from "./series/column-line-series-attr.vue.js";
|
|
7
7
|
import D from "../common/common-chart-header.vue.js";
|
|
8
8
|
import { use as F } from "echarts/core";
|
|
9
9
|
import { CanvasRenderer as T } from "echarts/renderers";
|
|
@@ -30,12 +30,17 @@ const Q = { class: "amb-design-item-title" }, S = ["onClick"], E = e({ __name: "
|
|
|
30
30
|
P();
|
|
31
31
|
}), t(G.configure.items, () => {
|
|
32
32
|
V();
|
|
33
|
-
})
|
|
33
|
+
}), t(() => {
|
|
34
|
+
var _a;
|
|
35
|
+
return (_a = G.configure) == null ? void 0 : _a.stacks;
|
|
36
|
+
}, () => {
|
|
37
|
+
V();
|
|
38
|
+
}, { immediate: true, deep: true });
|
|
34
39
|
const U = setTimeout(() => {
|
|
35
40
|
P();
|
|
36
41
|
}, 100);
|
|
37
42
|
function V() {
|
|
38
|
-
y(G.configure, L), M.value = j(G.configure), N.value =
|
|
43
|
+
y(G.configure, L), M.value = j(G.configure), N.value = k(G.configure.props.customTheme), G.configure.runtime.chartOption = L.value, G.configure.runtime.headerInfo = M.value, C(G.configure, M.value);
|
|
39
44
|
}
|
|
40
45
|
function X() {
|
|
41
46
|
if (G.configure.items) for (let e3 of G.configure.items) e3.selected = false;
|
|
@@ -49,7 +54,7 @@ const Q = { class: "amb-design-item-title" }, S = ["onClick"], E = e({ __name: "
|
|
|
49
54
|
null != G.selectWidget && G.selectWidget.value != G.configure.componentIndex && X();
|
|
50
55
|
}), i(null);
|
|
51
56
|
const Z = E2;
|
|
52
|
-
return (e3, i2) => (n(), o("div", { style: c([J.value, { position: "relative" }]), class:
|
|
57
|
+
return (e3, i2) => (n(), o("div", { style: c([J.value, { position: "relative" }]), class: u([K.value, "amb-widget-chart"]), onClick: s(Y, ["stop"]), ref: "thisRef" }, [l(m(D, { headerInfo: M.value }, null, 8, ["headerInfo"]), [[a, M.value.showHeader]]), m(f(H), { ref: "chartRef", theme: N.value, option: L.value, autoresize: "" }, null, 8, ["theme", "option"]), l(g("div", Q, [(n(true), o(p, null, d(e3.configure.items, (e4, i3) => (n(), o("label", { class: u([[e4.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]), onClick: s((e5) => function(e6, i4) {
|
|
53
58
|
e6 && e6.preventDefault();
|
|
54
59
|
const t2 = G.configure.items[i4];
|
|
55
60
|
if (!t2.selected) {
|
|
@@ -57,7 +62,7 @@ const Q = { class: "amb-design-item-title" }, S = ["onClick"], E = e({ __name: "
|
|
|
57
62
|
e7.selected = false;
|
|
58
63
|
break;
|
|
59
64
|
}
|
|
60
|
-
t2.serviceFields = G.configure.serviceFields, t2.serviceDataField = G.configure.serviceDataField, t2.selected = true, Z("onCustomAttrWidget", t2,
|
|
65
|
+
t2.serviceFields = G.configure.serviceFields, t2.serviceDataField = G.configure.serviceDataField, t2.selected = true, Z("onCustomAttrWidget", t2, x);
|
|
61
66
|
}
|
|
62
67
|
}(e5, i3), ["stop"]) }, v(e4.props.title), 11, S))), 256))], 512), [[a, e3.configure.componentIndex == e3.selectWidget.value]])], 6));
|
|
63
68
|
} });
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as r, openBlock as u, withCtx as n, createVNode as t, withDirectives as i,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as r, openBlock as u, withCtx as n, createVNode as t, withDirectives as i, createCommentVNode as s, vShow as c } from "vue";
|
|
2
|
+
import f from "../../common-series/common-style-label.vue.js";
|
|
3
|
+
import m from "./styles/style-bar.vue.js";
|
|
4
|
+
import a from "./styles/style-line.vue.js";
|
|
5
|
+
import g from "./styles/style-linearea.vue.js";
|
|
6
|
+
import p from "../../common/common-style-custom.vue.js";
|
|
7
|
+
import y from "./styles/style-emphasis.vue.js";
|
|
8
|
+
const d = e({ __name: "column-line-series-attr-style", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
9
|
+
const d2 = o(["styleLabel", "styleBar", "styleLine"]);
|
|
10
|
+
return (o2, v) => {
|
|
11
|
+
const b = l("el-collapse"), j = l("el-form");
|
|
12
|
+
return u(), r(j, { "label-width": "80px", size: "small" }, { default: n(() => [t(b, { modelValue: d2.value, "onUpdate:modelValue": v[0] || (v[0] = (e3) => d2.value = e3), style: { "margin-top": "6px" } }, { default: n(() => [i(t(m, { configure: e2.configure }, null, 8, ["configure"]), [[c, "bar" == e2.configure.type]]), "bar" == e2.configure.type ? (u(), r(y, { key: 0, configure: e2.configure }, null, 8, ["configure"])) : s("", true), i(t(a, { configure: e2.configure }, null, 8, ["configure"]), [[c, "line" == e2.configure.type]]), t(f, { configure: e2.configure }, null, 8, ["configure"]), i(t(g, { configure: e2.configure }, null, 8, ["configure"]), [[c, "line" == e2.configure.type]]), t(p, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
12
13
|
};
|
|
13
14
|
} });
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
d as default
|
|
16
17
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineComponent as e, resolveComponent as l, createBlock as a, openBlock as s, withCtx as t, createElementVNode as o, createVNode as u, createTextVNode as i, toDisplayString as p } from "vue";
|
|
2
|
+
const d = { style: { padding: "8px 0px 0px 0px" } }, r = e({ __name: "style-emphasis", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
3
|
+
const r2 = e2;
|
|
4
|
+
return r2.configure.style.emphasis || (r2.configure.style.emphasis = { disabled: false }), (r3, n) => {
|
|
5
|
+
const m = l("el-switch"), c = l("el-form-item"), f = l("el-option"), b = l("el-select"), g = l("el-collapse-item");
|
|
6
|
+
return s(), a(g, { title: "高亮状态", name: "styleEmphasis", class: "amb-design-attr-group-header" }, { default: t(() => [o("div", d, [u(c, { label: "开启", style: { "margin-top": "4px" } }, { default: t(() => [i(p(e2.configure.style.emphasis.disabled) + " ", 1), u(m, { modelValue: e2.configure.style.emphasis.disabled, "onUpdate:modelValue": n[0] || (n[0] = (l2) => e2.configure.style.emphasis.disabled = l2), "active-value": false, "inactive-value": true }, null, 8, ["modelValue"])]), _: 1 }), u(c, { label: "聚焦效果", style: { "margin-top": "4px" } }, { default: t(() => [u(b, { modelValue: e2.configure.style.emphasis.focus, "onUpdate:modelValue": n[1] || (n[1] = (l2) => e2.configure.style.emphasis.focus = l2), placeholder: "默认", clearable: "" }, { default: t(() => [u(f, { label: "none", value: "none" }), u(f, { label: "当前高亮", value: "self" }), u(f, { label: "所在系列", value: "series" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(c, { label: "淡出范围", style: { "margin-top": "4px" } }, { default: t(() => [u(b, { modelValue: e2.configure.style.emphasis.blurScope, "onUpdate:modelValue": n[2] || (n[2] = (l2) => e2.configure.style.emphasis.blurScope = l2), placeholder: "默认", clearable: "" }, { default: t(() => [u(f, { label: "坐标系", value: "coordinateSystem" }), u(f, { label: "系列", value: "series" }), u(f, { label: "全局", value: "global" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 });
|
|
7
|
+
};
|
|
8
|
+
} });
|
|
9
|
+
export {
|
|
10
|
+
r as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as t, createBlock as u, openBlock as a, withCtx as n, createElementVNode as i, createElementBlock as o, withModifiers as s, createTextVNode as r, Fragment as c, renderList as p, createVNode as d, unref as f } from "vue";
|
|
2
|
+
import { getUuidv4 as m } from "../../../../utils/common-util.js";
|
|
3
|
+
import { Plus as v, Delete as g } from "@element-plus/icons-vue";
|
|
4
|
+
const k = { style: { "text-align": "center" } }, y = e({ __name: "common-attr-stack", props: { configure: { type: Object, required: true }, defaultType: { type: String, default: "" } }, setup(e2) {
|
|
5
|
+
var _a;
|
|
6
|
+
const y2 = e2, h = l([]);
|
|
7
|
+
function b(e3) {
|
|
8
|
+
h.value.splice(e3 + 1, 0, { series: [], uuid: m() }), _();
|
|
9
|
+
}
|
|
10
|
+
function _() {
|
|
11
|
+
const e3 = [];
|
|
12
|
+
for (let l2 = 0; l2 < h.value.length; l2++) h.value[l2] && h.value[l2].series && h.value[l2].series.length > 0 && e3.push(h.value[l2]);
|
|
13
|
+
0 !== e3.length ? y2.configure.stacks = e3 : y2.configure.stacks = null;
|
|
14
|
+
}
|
|
15
|
+
return ((_a = y2.configure.stacks) == null ? void 0 : _a.length) > 0 && (h.value = JSON.parse(JSON.stringify(y2.configure.stacks))), (l2, m2) => {
|
|
16
|
+
const y3 = t("el-button"), C = t("el-option"), V = t("el-select"), x = t("el-icon"), O = t("el-collapse-item");
|
|
17
|
+
return a(), u(O, { title: "堆叠系列", name: "stackList", class: "amb-design-attr-group-header" }, { default: n(() => {
|
|
18
|
+
var _a2;
|
|
19
|
+
return [i("div", k, [((_a2 = h.value) == null ? void 0 : _a2.length) ? (a(true), o(c, { key: 1 }, p(h.value, (l3, t2) => (a(), o("div", { key: t2, class: "bind-variable-item" }, [d(V, { onChange: _, modelValue: h.value[t2].series, "onUpdate:modelValue": (e3) => h.value[t2].series = e3, placeholder: "选择系列", multiple: "", clearable: "" }, { default: n(() => [(a(true), o(c, null, p(e2.configure.items, (e3) => (a(), u(C, { key: e3.uuid, label: e3.props.title, value: e3.uuid }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), d(x, { onClick: s((e3) => b(t2), ["prevent"]) }, { default: n(() => [d(f(v))]), _: 2 }, 1032, ["onClick"]), d(x, { onClick: s((e3) => function(e4) {
|
|
20
|
+
h.value.splice(e4, 1), _();
|
|
21
|
+
}(t2), ["prevent"]) }, { default: n(() => [d(f(g))]), _: 2 }, 1032, ["onClick"])]))), 128)) : (a(), u(y3, { key: 0, type: "text", onClick: m2[0] || (m2[0] = s((e3) => b(0), ["prevent"])) }, { default: n(() => m2[1] || (m2[1] = [r("添加堆叠系列")])), _: 1 }))])];
|
|
22
|
+
}), _: 1 });
|
|
23
|
+
};
|
|
24
|
+
} });
|
|
25
|
+
export {
|
|
26
|
+
y as default
|
|
27
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as l, createBlock as
|
|
1
|
+
import { defineComponent as e, resolveComponent as l, createBlock as o, openBlock as t, withCtx as a, createElementVNode as i, createVNode as u, withDirectives as r, createTextVNode as p, vShow as n, createElementBlock as d, Fragment as s, renderList as m } from "vue";
|
|
2
2
|
const f = { style: { padding: "8px 0px 0px 0px" } }, c = e({ __name: "common-style-tooltip", props: { configure: { type: Object, required: true }, chartType: Object }, setup(e2) {
|
|
3
|
-
const c2 = ["8", "10", "12", "14", "16", "18", "20", "24", "28"];
|
|
4
|
-
return (
|
|
5
|
-
const y = l("el-switch"), x = l("el-form-item"), V = l("el-radio-button"), _ = l("el-radio-group"),
|
|
6
|
-
return
|
|
3
|
+
const c2 = e2, g = ["8", "10", "12", "14", "16", "18", "20", "24", "28"];
|
|
4
|
+
return c2.configure.style.axisPointer || (c2.configure.style.axisPointer = { type: "line" }), (c3, b) => {
|
|
5
|
+
const y = l("el-switch"), x = l("el-form-item"), V = l("el-radio-button"), _ = l("el-radio-group"), v = l("el-option"), h = l("el-select"), T = l("el-checkbox"), N = l("el-col"), F = l("el-row"), U = l("el-input"), P = l("el-checkbox-group"), z = l("el-color-picker"), w = l("el-text"), O = l("el-collapse-item");
|
|
6
|
+
return t(), o(O, { title: "提示消息(tooltip)", name: "styleTooltip", class: "amb-design-attr-group-header" }, { default: a(() => [i("div", f, [u(x, { label: "是否显示", style: { "margin-top": "0px", "margin-bottom": "-15px" } }, { default: a(() => [u(y, { modelValue: e2.configure.style.enableTooltip, "onUpdate:modelValue": b[0] || (b[0] = (l2) => e2.configure.style.enableTooltip = l2) }, null, 8, ["modelValue"])]), _: 1 }), r(u(x, { label: "触发类型", style: { "margin-top": "18px" } }, { default: a(() => [u(_, { modelValue: e2.configure.style.tooltipTrigger, "onUpdate:modelValue": b[1] || (b[1] = (l2) => e2.configure.style.tooltipTrigger = l2) }, { default: a(() => [u(V, { value: "" }, { default: a(() => b[12] || (b[12] = [p("默认")])), _: 1 }), u(V, { value: "item" }, { default: a(() => b[13] || (b[13] = [p("item")])), _: 1 }), r(u(V, { value: "axis" }, { default: a(() => b[14] || (b[14] = [p("axis")])), _: 1 }, 512), [[n, "radar" != e2.chartType]])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "触发位置", style: { "margin-top": "-10px" } }, { default: a(() => [u(h, { modelValue: e2.configure.style.tooltipPosition, "onUpdate:modelValue": b[2] || (b[2] = (l2) => e2.configure.style.tooltipPosition = l2), placeholder: "默认", clearable: "" }, { default: a(() => [u(v, { label: "inside", value: "inside" }), u(v, { label: "top", value: "top" }), u(v, { label: "left", value: "left" }), u(v, { label: "right", value: "right" }), u(v, { label: "bottom", value: "bottom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip && "item" == e2.configure.style.tooltipTrigger]]), r(u(x, { label: "数据格式", style: { "margin-top": "-15px" } }, { default: a(() => [u(P, { modelValue: e2.configure.style.tooltipNumFormat, "onUpdate:modelValue": b[6] || (b[6] = (l2) => e2.configure.style.tooltipNumFormat = l2) }, { default: a(() => [u(F, null, { default: a(() => [u(N, { span: 14 }, { default: a(() => [u(T, { value: "precision", label: "小数位数", size: "large" })]), _: 1 }), u(N, { span: 8 }, { default: a(() => [u(h, { style: { width: "70px", "margin-top": "8px" }, size: "small", modelValue: e2.configure.style.tooltipNumPrecision, "onUpdate:modelValue": b[3] || (b[3] = (l2) => e2.configure.style.tooltipNumPrecision = l2), disabled: e2.configure.style.tooltipNumFormat && -1 == e2.configure.style.tooltipNumFormat.indexOf("precision"), placeholder: "默认", clearable: "" }, { default: a(() => [u(v, { label: "1", value: "1" }), u(v, { label: "2", value: "2" }), u(v, { label: "3", value: "3" }), u(v, { label: "4", value: "4" }), u(v, { label: "5", value: "5" }), u(v, { label: "6", value: "6" })]), _: 1 }, 8, ["modelValue", "disabled"])]), _: 1 })]), _: 1 }), u(F, { style: { "margin-top": "-10px" } }, { default: a(() => [u(N, { span: 14 }, { default: a(() => [u(T, { value: "prefix", label: "前缀", size: "large" })]), _: 1 }), u(N, { span: 8 }, { default: a(() => [u(U, { size: "small", style: { width: "70px", "margin-top": "8px" }, modelValue: e2.configure.style.tooltipNumPrefix, "onUpdate:modelValue": b[4] || (b[4] = (l2) => e2.configure.style.tooltipNumPrefix = l2), disabled: e2.configure.style.tooltipNumFormat && -1 == e2.configure.style.tooltipNumFormat.indexOf("prefix"), placeholder: "" }, null, 8, ["modelValue", "disabled"])]), _: 1 })]), _: 1 }), u(F, { style: { "margin-top": "-10px" } }, { default: a(() => [u(N, { span: 14 }, { default: a(() => [u(T, { value: "append", label: "后缀", size: "large" })]), _: 1 }), u(N, { span: 8 }, { default: a(() => [u(U, { size: "small", style: { width: "70px", "margin-top": "8px" }, modelValue: e2.configure.style.tooltipNumAppend, "onUpdate:modelValue": b[5] || (b[5] = (l2) => e2.configure.style.tooltipNumAppend = l2), disabled: e2.configure.style.tooltipNumFormat && -1 == e2.configure.style.tooltipNumFormat.indexOf("append"), placeholder: "" }, null, 8, ["modelValue", "disabled"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "文字颜色", style: { "margin-top": "-10px" } }, { default: a(() => [u(z, { modelValue: e2.configure.style.tooltipColor, "onUpdate:modelValue": b[7] || (b[7] = (l2) => e2.configure.style.tooltipColor = l2) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "文字字号", style: { "margin-top": "-10px" } }, { default: a(() => [u(h, { modelValue: e2.configure.style.tooltipFontSize, "onUpdate:modelValue": b[8] || (b[8] = (l2) => e2.configure.style.tooltipFontSize = l2), placeholder: "默认", clearable: "" }, { default: a(() => [(t(), d(s, null, m(g, (e3) => u(v, { label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "文字粗细", style: { "margin-top": "-10px" } }, { default: a(() => [u(h, { modelValue: e2.configure.style.tooltipWeight, "onUpdate:modelValue": b[9] || (b[9] = (l2) => e2.configure.style.tooltipWeight = l2), placeholder: "默认", clearable: "" }, { default: a(() => [u(v, { label: "bold", value: "bold" }), u(v, { label: "bolder", value: "bolder" }), u(v, { label: "lighter", value: "lighter" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "坐标轴指示器类型", style: { "margin-top": "-10px" } }, { default: a(() => [u(h, { modelValue: e2.configure.style.axisPointer.type, "onUpdate:modelValue": b[10] || (b[10] = (l2) => e2.configure.style.axisPointer.type = l2), placeholder: "none", clearable: "" }, { default: a(() => [u(v, { label: "line", value: "line" }), u(v, { label: "cross", value: "cross" }), u(v, { label: "shadow", value: "shadow" }), u(v, { label: "none", value: "none" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]]), r(u(x, { label: "内容定义", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: a(() => [u(U, { modelValue: e2.configure.style.tooltipFormatter, "onUpdate:modelValue": b[11] || (b[11] = (l2) => e2.configure.style.tooltipFormatter = l2), rows: 2, type: "textarea", placeholder: "" }, null, 8, ["modelValue"]), u(w, { style: { "line-height": "15px", "margin-top": "5px" }, type: "success", size: "small" }, { default: a(() => b[15] || (b[15] = [p(" {a}:系列名;{b}:数据名;{c}:数据值;{@xxx};{@[n]} ")])), _: 1 })]), _: 1 }, 512), [[n, e2.configure.style.enableTooltip]])])]), _: 1 });
|
|
7
7
|
};
|
|
8
8
|
} });
|
|
9
9
|
export {
|