super-page-designer 2.3.12-sit1-design2 → 2.3.13-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/chart-design-util.js +27 -27
- package/dist/es/components/design/utils/page-table-util.d.ts +1 -9
- package/dist/es/components/design/utils/page-table-util.js +13 -13
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +18 -18
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +18 -18
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +18 -18
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +35 -33
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +7 -6
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +2 -2
- 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-advanced.vue.js +55 -56
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +2 -2
- 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/form/date-picker/datepicker-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +18 -18
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/form/link/link-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +52 -52
- 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 +2 -2
- package/package.json +5 -5
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
|
@@ -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 : {},
|
|
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
|
-
|
|
18
|
+
u2.title[0].subtext = i2.subTitle, a2.subtitleTextAlign && (u2.title[0].left = a2.subtitleTextAlign);
|
|
19
19
|
const e3 = o(a2);
|
|
20
|
-
Object.assign(
|
|
20
|
+
Object.assign(u2.title[0], e3);
|
|
21
21
|
}
|
|
22
|
-
if ((i2.enableDownloadBtn || 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), (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],
|
|
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,
|
|
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),
|
|
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,
|
|
71
|
+
}(a2, u2);
|
|
72
72
|
const f = e2.items ? e2.items : [];
|
|
73
73
|
if (g) {
|
|
74
|
-
|
|
75
|
-
let e3 =
|
|
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,
|
|
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, (
|
|
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,
|
|
85
|
+
t3.subtext = e3.props.subTitle, u2.title.push(t3);
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
u2.series.push(t2);
|
|
88
88
|
}
|
|
89
|
-
if (h2 && (0 == a2.enableLegend && (
|
|
90
|
-
for (let e3 of
|
|
91
|
-
|
|
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(
|
|
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 = [],
|
|
261
|
-
for (let e3 = 0; e3 < 8 || 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 <
|
|
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
|
|
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
|
|
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
|
-
|
|
389
|
-
|
|
388
|
+
b as initComponentDataConfig,
|
|
389
|
+
u as removComponentDataConfig,
|
|
390
390
|
c as updateDynamicSeriesField,
|
|
391
391
|
h as updateServiceInputs
|
|
392
392
|
};
|
|
@@ -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(
|
|
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 += "?
|
|
9
|
+
return o2 += "?tableName=" + (a2 || ""), e.get(o2);
|
|
10
10
|
}
|
|
11
|
-
function s(t2
|
|
12
|
-
|
|
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:
|
|
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:
|
|
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 =
|
|
69
|
+
return a3 ? (a3.valueSetOptions = m(n2), JSON.stringify(a3)) : null;
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
|
-
function
|
|
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
|
|
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 =
|
|
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
|
|
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
|
-
|
|
285
|
+
w as getTableConfigByTableUuid,
|
|
286
286
|
v as getTableNameByTableUuid,
|
|
287
287
|
s as querySublist,
|
|
288
288
|
n as queryTableFields,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as
|
|
2
|
-
import { SuperIcon as
|
|
3
|
-
import { caculateDetailComponentStyle as
|
|
4
|
-
import { batchUpdatePermissions as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
l(
|
|
10
|
-
|
|
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 =
|
|
12
|
+
const P = d2.configure.props && d2.configure.props.base ? d2.configure.props.base : {};
|
|
13
13
|
let h = P.title;
|
|
14
|
-
return l(
|
|
15
|
-
|
|
16
|
-
let e4 =
|
|
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 &&
|
|
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"),
|
|
22
|
-
return z.value.text ? (
|
|
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
|
-
|
|
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
|
|
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
|
|
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 {
|
package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as
|
|
2
|
-
import { SuperIcon as
|
|
3
|
-
import { caculateDetailComponentStyle as
|
|
4
|
-
import { batchUpdatePermissions as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
l(
|
|
10
|
-
|
|
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 =
|
|
12
|
+
const x = V2.configure.props && V2.configure.props.base ? V2.configure.props.base : {};
|
|
13
13
|
let j = x.title;
|
|
14
|
-
return l(
|
|
15
|
-
|
|
16
|
-
let e4 =
|
|
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 &&
|
|
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"),
|
|
22
|
-
return h.value.text ? (
|
|
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
|
-
|
|
26
|
+
V as default
|
|
27
27
|
};
|
package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as e, ref as i, watch as l, resolveComponent as u, createBlock as
|
|
2
|
-
import { SuperIcon as
|
|
3
|
-
import { caculateDetailComponentStyle as
|
|
4
|
-
import { batchUpdatePermissions as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
l(
|
|
10
|
-
|
|
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 =
|
|
12
|
+
const j = V2.configure.props && V2.configure.props.base ? V2.configure.props.base : {};
|
|
13
13
|
let x = j.title;
|
|
14
|
-
return l(
|
|
15
|
-
|
|
16
|
-
let e4 =
|
|
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 &&
|
|
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"),
|
|
22
|
-
return h.value.text ? (
|
|
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
|
-
|
|
26
|
+
V as default
|
|
27
27
|
};
|
package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js
CHANGED
|
@@ -1,64 +1,66 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as i, watch as t, onUnmounted as r, createElementBlock as o, openBlock as n, withModifiers as u, normalizeClass as s, 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
|
-
import { removComponentDataConfig as W, generateChartHeader as j, generateChartOption as
|
|
5
|
-
import { getCustomTheme as
|
|
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 x } from "super-page-runtime";
|
|
6
6
|
import k 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";
|
|
10
|
-
import { LineChart as w, BarChart as
|
|
11
|
-
import { GridComponent as
|
|
10
|
+
import { LineChart as w, BarChart as z } from "echarts/charts";
|
|
11
|
+
import { GridComponent as A, LegendComponent as O, TitleComponent as R, TooltipComponent as _, ToolboxComponent as q, DataZoomComponent as B } from "echarts/components";
|
|
12
12
|
import H from "vue-echarts";
|
|
13
13
|
import "element-plus";
|
|
14
14
|
import "agilebuilder-ui/src/utils/request";
|
|
15
15
|
import "../../../../utils/eventBus.js";
|
|
16
|
-
const
|
|
17
|
-
F([T, w, O, R, _,
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
function
|
|
22
|
-
const e3 =
|
|
23
|
-
|
|
16
|
+
const Q = { class: "amb-design-item-title" }, S = ["onClick"], E = e({ __name: "column-line-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: E2 }) {
|
|
17
|
+
F([T, w, A, O, R, _, z, q, B]);
|
|
18
|
+
const G = e2;
|
|
19
|
+
G.configure.props || (G.configure.props = {}), G.configure.items || (G.configure.items = []), 0 == G.configure.items.length && G.configure.items.push({ uuid: h(), index: 1, name: "", type: "bar", label: "柱状图", props: { title: "系列1" }, style: {} }), G.configure.runtime || (G.configure.runtime = {});
|
|
20
|
+
const J = i({}), K = i(""), L = i({}), M = i({}), N = i(null);
|
|
21
|
+
function P() {
|
|
22
|
+
const e3 = I(G.configure, M.value);
|
|
23
|
+
G.configure.runtime.dataConfig = e3;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
b(
|
|
27
|
-
}, { immediate: true }),
|
|
28
|
-
V(),
|
|
29
|
-
}),
|
|
25
|
+
t(G.configure.style, () => {
|
|
26
|
+
b(G.configure, J, K, null), G.configure.runtime.style = J.value, G.configure.runtime.class = K.value, M.value = j(G.configure), G.configure.runtime.headerInfo = M.value, V();
|
|
27
|
+
}, { immediate: true }), t(G.configure.props, () => {
|
|
28
|
+
V(), P();
|
|
29
|
+
}), t(() => G.configure.initializationQuery, () => {
|
|
30
|
+
P();
|
|
31
|
+
}), t(G.configure.items, () => {
|
|
30
32
|
V();
|
|
31
33
|
});
|
|
32
34
|
const U = setTimeout(() => {
|
|
33
|
-
|
|
35
|
+
P();
|
|
34
36
|
}, 100);
|
|
35
37
|
function V() {
|
|
36
|
-
|
|
38
|
+
y(G.configure, L), M.value = j(G.configure), N.value = x(G.configure.props.customTheme), G.configure.runtime.chartOption = L.value, G.configure.runtime.headerInfo = M.value, C(G.configure, M.value);
|
|
37
39
|
}
|
|
38
40
|
function X() {
|
|
39
|
-
if (
|
|
41
|
+
if (G.configure.items) for (let e3 of G.configure.items) e3.selected = false;
|
|
40
42
|
}
|
|
41
43
|
function Y(e3) {
|
|
42
44
|
X();
|
|
43
45
|
}
|
|
44
46
|
r(() => {
|
|
45
|
-
W(
|
|
46
|
-
}),
|
|
47
|
-
null !=
|
|
48
|
-
}),
|
|
49
|
-
const Z =
|
|
50
|
-
return (e3,
|
|
47
|
+
W(G.configure), U && clearTimeout(U);
|
|
48
|
+
}), G.selectWidget && t(G.selectWidget, () => {
|
|
49
|
+
null != G.selectWidget && G.selectWidget.value != G.configure.componentIndex && X();
|
|
50
|
+
}), i(null);
|
|
51
|
+
const Z = E2;
|
|
52
|
+
return (e3, i2) => (n(), o("div", { style: c([J.value, { position: "relative" }]), class: s([K.value, "amb-widget-chart"]), onClick: u(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: s([[e4.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]), onClick: u((e5) => function(e6, i4) {
|
|
51
53
|
e6 && e6.preventDefault();
|
|
52
|
-
const
|
|
53
|
-
if (!
|
|
54
|
-
for (let e7 of
|
|
54
|
+
const t2 = G.configure.items[i4];
|
|
55
|
+
if (!t2.selected) {
|
|
56
|
+
for (let e7 of G.configure.items) if (e7.selected) {
|
|
55
57
|
e7.selected = false;
|
|
56
58
|
break;
|
|
57
59
|
}
|
|
58
|
-
|
|
60
|
+
t2.serviceFields = G.configure.serviceFields, t2.serviceDataField = G.configure.serviceDataField, t2.selected = true, Z("onCustomAttrWidget", t2, k);
|
|
59
61
|
}
|
|
60
|
-
}(e5,
|
|
62
|
+
}(e5, i3), ["stop"]) }, v(e4.props.title), 11, S))), 256))], 512), [[a, e3.configure.componentIndex == e3.selectWidget.value]])], 6));
|
|
61
63
|
} });
|
|
62
64
|
export {
|
|
63
|
-
|
|
65
|
+
E as default
|
|
64
66
|
};
|