super-page-designer 2.3.18-tmp1-design1 → 2.3.19-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 +6 -6
- package/dist/es/components/design/utils/chart-design-util.js +100 -92
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +22 -22
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/export-pdf/common-template-select.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/button/print-label/print-template-select.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-advanced.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-style.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-bar.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-line.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-serieslist.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-sortby.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-stack.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/common/common-style-datazoom.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/common/common-style-font-subtitle.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/common/common-style-font-title.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/common/common-style-legend.vue.js +7 -4
- package/dist/es/components/design/views/assemblys/chart/common/common-style-tooltip.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/common/common-style-xaxis.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-style-yaxis.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dataset-columnline.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dynamic.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/chart/common-series/common-style-label.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-anchor.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-axislabel.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-detail.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-gauge.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-pointer.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-split.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-title.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr.vue2.js +8 -7
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/pie/series/styles/style-pie.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-dataset.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/chart/radar/series/styles/style-axisname.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/radar/series/styles/style-datalabel.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/radar/series/styles/style-dataline.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/radar/series/styles/style-radar.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +15 -15
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-style-xaxis.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-data.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/scatter/series/styles/style-scatter.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue2.js +14 -14
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr.vue2.js +11 -10
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/common/common-attr-cursor.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-bind-default-value.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/common/common-style-border.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-style-font-head.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-style-font.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-style-position.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-task-title.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/common/common-template-select.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +13 -13
- package/dist/es/components/design/views/assemblys/common/common-watermark.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/card/card-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/container/container/container-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/container/form/form-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/container/tools/tools-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/return-set-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +8 -7
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-style.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +13 -13
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +29 -29
- package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +15 -15
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/row-ul-li.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +15 -15
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/form/link/link-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +3 -3
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/workflow/component/condition-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/workflow/component/journal-set-dialog.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/workflow/component/set-dialog.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue2.js +1 -1
- 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-container.vue.js +7 -7
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +2 -2
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +8 -8
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue2.js +27 -27
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +7 -7
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +4 -4
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js +14 -14
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +3 -3
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +12 -12
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design.vue.js +3 -3
- package/dist/es/style.css +37 -63
- package/package.json +4 -4
package/dist/es/components/design/views/assemblys/chart/common/common-attr-serieslist.vue.js
CHANGED
|
@@ -15,7 +15,7 @@ const m = { style: { padding: "8px 0px 0px 0px" } }, g = { style: { "text-align"
|
|
|
15
15
|
if (t4 < 1) return;
|
|
16
16
|
const l2 = x2.configure.items;
|
|
17
17
|
[l2[t4 - 1], l2[t4]] = [l2[t4], l2[t4 - 1]];
|
|
18
|
-
}(e3.row) }, { default: o(() => [a(s(d))]), _:
|
|
18
|
+
}(e3.row) }, { default: o(() => [a(s(d))]), _: 1 }, 8, ["onClick"]), a(h, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (t3) => function(e4) {
|
|
19
19
|
let t4 = -1;
|
|
20
20
|
const i2 = x2.configure.items.length;
|
|
21
21
|
for (let l3 = 0; l3 < i2; l3++) if (x2.configure.items[l3].index == e4.index) {
|
|
@@ -25,12 +25,12 @@ const m = { style: { padding: "8px 0px 0px 0px" } }, g = { style: { "text-align"
|
|
|
25
25
|
if (-1 == t4 || x2.configure.items.length == t4 + 1) return;
|
|
26
26
|
const l2 = x2.configure.items;
|
|
27
27
|
[l2[t4], l2[t4 + 1]] = [l2[t4 + 1], l2[t4]];
|
|
28
|
-
}(e3.row) }, { default: o(() => [a(s(f))]), _:
|
|
28
|
+
}(e3.row) }, { default: o(() => [a(s(f))]), _: 1 }, 8, ["onClick"])])]), _: 1 }), a(k, { prop: "label", label: "名称", width: "130" }, { default: o((e3) => [a(w, { modelValue: e3.row.props.title, "onUpdate:modelValue": (t3) => e3.row.props.title = t3, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), a(k, { label: "操作", width: "90" }, { default: o((e3) => [a(h, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (t3) => function(e4) {
|
|
29
29
|
let t4 = -1, i2 = -1;
|
|
30
30
|
x2.configure.items.find((l2, n2) => {
|
|
31
31
|
l2.index == e4.index && (i2 = n2), l2.index > t4 && (t4 = l2.index);
|
|
32
32
|
}), i2 > -1 && x2.configure.items.splice(i2 + 1, 0, { type: x2.defaultType ? x2.defaultType : "bar", index: t4 + 1, uuid: u(), props: { title: ("radar" == x2.defaultType ? "数据" : "系列") + (t4 + 1) }, style: { yaxisLeft: {}, yaxisRight: {} } });
|
|
33
|
-
}(e3.row) }, { default: o(() => [a(s(c))]), _:
|
|
33
|
+
}(e3.row) }, { default: o(() => [a(s(c))]), _: 1 }, 8, ["onClick"]), a(h, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (t3) => function(e4) {
|
|
34
34
|
if (1 == x2.configure.items.length) return void alert("必须保留一个系列!");
|
|
35
35
|
if (!confirm("确定要删除吗?")) return;
|
|
36
36
|
let t4 = -1;
|
|
@@ -39,7 +39,7 @@ const m = { style: { padding: "8px 0px 0px 0px" } }, g = { style: { "text-align"
|
|
|
39
39
|
break;
|
|
40
40
|
}
|
|
41
41
|
t4 > -1 && x2.configure.items.splice(t4, 1);
|
|
42
|
-
}(e3.row) }, { default: o(() => [a(s(p))]), _:
|
|
42
|
+
}(e3.row) }, { default: o(() => [a(s(p))]), _: 1 }, 8, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 }, 8, ["title"]);
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, watch as o, resolveComponent as a, createBlock as r, openBlock as u, withCtx as i, createElementVNode as t, createVNode as p, withDirectives as m, createElementBlock as d, Fragment as s, renderList as n, createTextVNode as c, vShow as f } from "vue";
|
|
2
2
|
import g from "../../common/common-variable-bind.vue.js";
|
|
3
3
|
const b = { style: { padding: "8px 0px 0px 0px" } }, V = e({ __name: "common-attr-sortby", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
4
|
-
const V2 = e2,
|
|
5
|
-
function
|
|
4
|
+
const V2 = e2, x = l([]);
|
|
5
|
+
function v(e3, l2) {
|
|
6
6
|
"orderVariable" == l2 ? V2.configure.props.orderVariable = e3 : "itemNumVariable" == l2 && (V2.configure.props.itemNumVariable = e3);
|
|
7
7
|
}
|
|
8
8
|
return o(V2.configure.items, () => {
|
|
9
9
|
!function() {
|
|
10
10
|
const e3 = [];
|
|
11
11
|
if (e3.push({ value: "X", label: "[横坐标]" }), V2.configure.items) for (let l2 of V2.configure.items) l2.props && l2.props.title && e3.push({ value: l2.uuid, label: l2.props.title });
|
|
12
|
-
|
|
12
|
+
x.value = e3;
|
|
13
13
|
}();
|
|
14
14
|
}, { immediate: true }), (l2, o2) => {
|
|
15
|
-
const V3 = a("el-option"),
|
|
16
|
-
return u(), r(F, { title: "排序", name: "propsSort", class: "amb-design-attr-group-header" }, { default: i(() => [t("div", b, [p(
|
|
15
|
+
const V3 = a("el-option"), y = a("el-select"), _ = a("el-form-item"), h = a("el-radio"), N = a("el-text"), S = a("el-radio-group"), U = a("el-divider"), w = a("el-switch"), T = a("el-input-number"), B = a("el-input"), F = a("el-collapse-item");
|
|
16
|
+
return u(), r(F, { title: "排序", name: "propsSort", class: "amb-design-attr-group-header" }, { default: i(() => [t("div", b, [p(_, { label: "排序对象", style: { "margin-top": "4px", "margin-bottom": "-5px" } }, { default: i(() => [p(y, { modelValue: e2.configure.props.orderByTarget, "onUpdate:modelValue": o2[0] || (o2[0] = (l3) => e2.configure.props.orderByTarget = l3), placeholder: "默认", clearable: "" }, { default: i(() => [(u(true), d(s, null, n(x.value, (e3) => (u(), r(V3, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), p(S, { modelValue: e2.configure.props.orderSource, "onUpdate:modelValue": o2[3] || (o2[3] = (l3) => e2.configure.props.orderSource = l3) }, { default: i(() => [m(p(_, { style: { "margin-top": "15px" } }, { label: i(() => [p(h, { value: "fix" }, { default: i(() => [...o2[9] || (o2[9] = [c("排序方式", -1)])]), _: 1 })]), default: i(() => [p(y, { style: { width: "90px" }, modelValue: e2.configure.props.orderFix, "onUpdate:modelValue": o2[1] || (o2[1] = (l3) => e2.configure.props.orderFix = l3), disabled: "fix" != e2.configure.props.orderSource, placeholder: "默认", clearable: "" }, { default: i(() => [p(V3, { label: "升序", value: "asc" }), p(V3, { label: "降序", value: "desc" })]), _: 1 }, 8, ["modelValue", "disabled"])]), _: 1 }, 512), [[f, e2.configure.props.orderByTarget]]), m(p(_, { style: { "margin-top": "-10px" } }, { label: i(() => [p(h, { value: "variable" }, { default: i(() => [...o2[10] || (o2[10] = [c("排序变量", -1)])]), _: 1 })]), default: i(() => [p(g, { showLabel: "variable" != e2.configure.props.orderSource, modelValue: e2.configure.props.orderVariable, paramTypes: ["data", "page"], "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => v(e3, "orderVariable")) }, null, 8, ["showLabel", "modelValue"]), m(p(N, { type: "success", size: "small" }, { default: i(() => [...o2[11] || (o2[11] = [c("将根据此变量排序", -1)])]), _: 1 }, 512), [[f, "variable" == e2.configure.props.orderSource]])]), _: 1 }, 512), [[f, e2.configure.props.orderByTarget]])]), _: 1 }, 8, ["modelValue"]), p(U, { style: { "margin-top": "-5px", "margin-bottom": "15px" } }), p(_, { label: "限制数量", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: i(() => [p(w, { modelValue: e2.configure.props.limitQuantity, "onUpdate:modelValue": o2[4] || (o2[4] = (l3) => e2.configure.props.limitQuantity = l3) }, null, 8, ["modelValue"])]), _: 1 }), m(p(S, { modelValue: e2.configure.props.itemNumSource, "onUpdate:modelValue": o2[7] || (o2[7] = (l3) => e2.configure.props.itemNumSource = l3) }, { default: i(() => [p(_, { style: { "margin-top": "25px" } }, { label: i(() => [p(h, { value: "fix" }, { default: i(() => [...o2[12] || (o2[12] = [c("固定数量", -1)])]), _: 1 })]), default: i(() => [p(T, { disabled: e2.configure.props.itemNumSource && "fix" != e2.configure.props.itemNumSource, placeholder: "10", modelValue: e2.configure.props.itemNumFix, "onUpdate:modelValue": o2[5] || (o2[5] = (l3) => e2.configure.props.itemNumFix = l3), min: 1 }, null, 8, ["disabled", "modelValue"])]), _: 1 }), p(_, { style: { "margin-top": "-10px" } }, { label: i(() => [p(h, { value: "variable" }, { default: i(() => [...o2[13] || (o2[13] = [c("数量变量", -1)])]), _: 1 })]), default: i(() => [p(g, { showLabel: "variable" != e2.configure.props.itemNumSource, modelValue: e2.configure.props.itemNumVariable, paramTypes: ["data", "page"], "onUpdate:modelValue": o2[6] || (o2[6] = (e3) => v(e3, "itemNumVariable")) }, null, 8, ["showLabel", "modelValue"]), m(p(N, { type: "success", size: "small" }, { default: i(() => [...o2[14] || (o2[14] = [c("将根据此变量控制显示数量", -1)])]), _: 1 }, 512), [[f, "variable" == e2.configure.props.itemNumSource]])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), [[f, e2.configure.props.limitQuantity]]), m(p(_, { label: "超出时别名", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: i(() => [p(B, { modelValue: e2.configure.props.overItemAlias, "onUpdate:modelValue": o2[8] || (o2[8] = (l3) => e2.configure.props.overItemAlias = l3), placeholder: "请输入" }, null, 8, ["modelValue"]), p(N, { type: "success", size: "small" }, { default: i(() => [...o2[15] || (o2[15] = [c("未设置时不显示超出数量的数据项", -1)])]), _: 1 })]), _: 1 }, 512), [[f, e2.configure.props.limitQuantity]])])]), _: 1 });
|
|
17
17
|
};
|
|
18
18
|
} });
|
|
19
19
|
export {
|
|
@@ -4,10 +4,10 @@ import { Plus as v, Delete as g } from "@element-plus/icons-vue";
|
|
|
4
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
5
|
var _a;
|
|
6
6
|
const y2 = e2, h = l([]);
|
|
7
|
-
function
|
|
8
|
-
h.value.splice(e3 + 1, 0, { series: [], uuid: m() }),
|
|
7
|
+
function b(e3) {
|
|
8
|
+
h.value.splice(e3 + 1, 0, { series: [], uuid: m() }), _();
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function _() {
|
|
11
11
|
const e3 = [];
|
|
12
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
13
|
0 !== e3.length ? y2.configure.stacks = e3 : y2.configure.stacks = null;
|
|
@@ -16,9 +16,9 @@ const k = { style: { "text-align": "center" } }, y = e({ __name: "common-attr-st
|
|
|
16
16
|
const y3 = t("el-button"), C = t("el-option"), V = t("el-select"), x = t("el-icon"), O = t("el-collapse-item");
|
|
17
17
|
return a(), u(O, { title: "堆叠系列", name: "stackList", class: "amb-design-attr-group-header" }, { default: n(() => {
|
|
18
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:
|
|
20
|
-
h.value.splice(e4, 1),
|
|
21
|
-
}(t2), ["prevent"]) }, { default: n(() => [d(f(g))]), _:
|
|
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))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"]), d(x, { onClick: s((e3) => b(t2), ["prevent"]) }, { default: n(() => [d(f(v))]), _: 1 }, 8, ["onClick"]), d(x, { onClick: s((e3) => function(e4) {
|
|
20
|
+
h.value.splice(e4, 1), _();
|
|
21
|
+
}(t2), ["prevent"]) }, { default: n(() => [d(f(g))]), _: 1 }, 8, ["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)])]), _: 1 }))])];
|
|
22
22
|
}), _: 1 });
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
@@ -2,9 +2,9 @@ import { defineComponent as e, ref as a, reactive as o, resolveComponent as l, c
|
|
|
2
2
|
import { Top as h, Bottom as v } from "@element-plus/icons-vue";
|
|
3
3
|
import y from "../../common/common-variable-bind.vue.js";
|
|
4
4
|
import { getAttrComponentByName as b } from "../../../../utils/assemblys-config.js";
|
|
5
|
-
import { getDefaultComponent as C, updateConfEvents as
|
|
6
|
-
import
|
|
7
|
-
import { getUuidv4 as
|
|
5
|
+
import { getDefaultComponent as C, updateConfEvents as x } from "../../../../utils/home-chart-util.js";
|
|
6
|
+
import H from "../../object-design.vue.js";
|
|
7
|
+
import { getUuidv4 as _ } from "../../../../utils/common-util.js";
|
|
8
8
|
import "@vueuse/core";
|
|
9
9
|
const V = { style: { padding: "8px 0px 0px 0px" } }, k = { class: "dialog-footer" }, w = e({ __name: "common-home-chart", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
|
|
10
10
|
} } }, setup(e2) {
|
|
@@ -19,7 +19,7 @@ const V = { style: { padding: "8px 0px 0px 0px" } }, k = { class: "dialog-footer
|
|
|
19
19
|
const T = () => {
|
|
20
20
|
U.value = true;
|
|
21
21
|
}, q = () => {
|
|
22
|
-
w2.configure.pushHomepage.initConfig.unshift({ prop: "", value: "", uuid:
|
|
22
|
+
w2.configure.pushHomepage.initConfig.unshift({ prop: "", value: "", uuid: _() });
|
|
23
23
|
}, A = () => {
|
|
24
24
|
w2.configure.pushHomepage.searchConditions.push(C());
|
|
25
25
|
}, R = (e3, a2) => {
|
|
@@ -27,25 +27,25 @@ const V = { style: { padding: "8px 0px 0px 0px" } }, k = { class: "dialog-footer
|
|
|
27
27
|
"up" === a2 ? (w2.configure.pushHomepage.searchConditions[e3] = w2.configure.pushHomepage.searchConditions[e3 - 1], w2.configure.pushHomepage.searchConditions[e3 - 1] = o2) : (w2.configure.pushHomepage.searchConditions[e3] = w2.configure.pushHomepage.searchConditions[e3 + 1], w2.configure.pushHomepage.searchConditions[e3 + 1] = o2);
|
|
28
28
|
};
|
|
29
29
|
function B(e3) {
|
|
30
|
-
|
|
30
|
+
x(e3), j.value = e3, $.value = b(e3.name);
|
|
31
31
|
}
|
|
32
32
|
return (a2, o2) => {
|
|
33
|
-
const C2 = l("el-switch"),
|
|
34
|
-
return n(), i(M, { title: "推送首页", name: "pushHomepage", class: "amb-design-attr-group-header" }, { default: u(() => [p("div", V, [r(
|
|
33
|
+
const C2 = l("el-switch"), x2 = l("el-button"), _2 = l("el-form-item"), E = l("el-alert"), F = l("el-table-column"), G = l("el-table"), I = l("el-input"), J = l("el-button-group"), K = l("el-drawer"), L = l("el-dialog"), M = l("el-collapse-item");
|
|
34
|
+
return n(), i(M, { title: "推送首页", name: "pushHomepage", class: "amb-design-attr-group-header" }, { default: u(() => [p("div", V, [r(_2, { label: "是否推送", class: "amb-design-attr-item" }, { default: u(() => [r(C2, { modelValue: e2.configure.pushHomepage.enable, "onUpdate:modelValue": o2[0] || (o2[0] = (a3) => e2.configure.pushHomepage.enable = a3), "inline-prompt": "", "active-text": "是", "inactive-text": "否", onChange: z }, null, 8, ["modelValue"]), e2.configure.pushHomepage.enable ? (n(), i(x2, { key: 0, type: "primary", onClick: T }, { default: u(() => [...o2[4] || (o2[4] = [s(" 编辑 ", -1)])]), _: 1 })) : t("", true)]), _: 1 })]), e2.configure.pushHomepage && e2.configure.pushHomepage.enable ? (n(), i(L, { key: 0, id: "pushHomepageDialog", "append-to-body": false, modelValue: U.value, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => U.value = e3), title: "首页图表查询设置", top: "2vh" }, { footer: u(() => [p("div", k, [r(x2, { type: "primary", onClick: o2[1] || (o2[1] = (e3) => U.value = false) }, { default: u(() => [...o2[10] || (o2[10] = [s(" 关闭 ", -1)])]), _: 1 })])]), default: u(() => [r(E, { title: "初始化设置", type: "info", closable: false }), r(G, { data: e2.configure.pushHomepage.initConfig, style: { width: "100%" }, "max-height": "250", "row-key": "uuid", "empty-text": "请添加初始化设置" }, { default: u(() => [r(F, { align: "center", label: "字段名", prop: "prop" }, { default: u((e3) => [(n(), i(y, { key: e3.row.prop, modelValue: e3.row.prop, paramTypes: ["page"], "onUpdate:modelValue": (a3) => {
|
|
35
35
|
return o3 = a3, void ((l2 = e3.row) && (l2.prop = o3));
|
|
36
36
|
var o3, l2;
|
|
37
37
|
} }, null, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), r(F, { align: "center", label: "值", prop: "value" }, { default: u((e3) => [r(y, { paramTypes: ["context", "system", "fixed"], modelValue: e3.row.value, isRange: true, "onUpdate:modelValue": (a3) => ((e4, a4) => {
|
|
38
38
|
a4 && (a4.value = e4);
|
|
39
|
-
})(a3, e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(F, { align: "center" }, { header: u(() => [r(
|
|
39
|
+
})(a3, e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(F, { align: "center" }, { header: u(() => [r(x2, { type: "primary", onClick: q }, { default: u(() => [...o2[5] || (o2[5] = [s(" 添加 ", -1)])]), _: 1 })]), default: u((e3) => [r(x2, { size: "small", type: "danger", onClick: (a3) => {
|
|
40
40
|
return o3 = e3.$index, e3.row, void w2.configure.pushHomepage.initConfig.splice(o3, 1);
|
|
41
41
|
var o3;
|
|
42
|
-
} }, { default: u(() => o2[6] || (o2[6] = [s(" 删除 ", -1)])), _:
|
|
42
|
+
} }, { default: u(() => [...o2[6] || (o2[6] = [s(" 删除 ", -1)])]), _: 1 }, 8, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(E, { title: "查询条件设置", type: "info", closable: false }), r(G, { data: e2.configure.pushHomepage.searchConditions, style: { width: "100%" }, height: "400", "default-expand-all": true, "empty-text": "请添加查询条件设置" }, { default: u(() => [r(F, { align: "center", label: "标签名", prop: "prop" }, { default: u((e3) => [r(I, { modelValue: e3.row.props.base.title, "onUpdate:modelValue": (a3) => e3.row.props.base.title = a3, class: "table-input-width", placeholder: "请输入标签名" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(F, { align: "center", label: "字段", prop: "value" }, { default: u((e3) => [(n(), i(y, { key: e3.row.props.base.prop, paramTypes: ["data", "page"], "model-value": e3.row.props.base.prop, "onUpdate:modelValue": (a3) => e3.row.props.base.prop = a3 }, null, 8, ["model-value", "onUpdate:modelValue"]))]), _: 1 }), r(F, { align: "center", label: "组件配置" }, { default: u((e3) => [r(x2, { size: "small", type: "primary", onClick: (a3) => {
|
|
43
43
|
return e3.$index, o3 = e3.row, D.value = true, j.value = o3, void ($.value = b(o3.name));
|
|
44
44
|
var o3;
|
|
45
|
-
} }, { default: u(() => o2[7] || (o2[7] = [s(" 设置 ", -1)])), _:
|
|
45
|
+
} }, { default: u(() => [...o2[7] || (o2[7] = [s(" 设置 ", -1)])]), _: 1 }, 8, ["onClick"])]), _: 1 }), r(F, { align: "center" }, { header: u(() => [r(x2, { type: "primary", onClick: A }, { default: u(() => [...o2[8] || (o2[8] = [s(" 添加 ", -1)])]), _: 1 })]), default: u((a3) => [r(J, { class: "ml-4" }, { default: u(() => [r(x2, { type: "primary", disabled: 0 === a3.$index, icon: d(h), onClick: (e3) => R(a3.$index, "up") }, null, 8, ["disabled", "icon", "onClick"]), r(x2, { type: "primary", disabled: a3.$index === e2.configure.pushHomepage.searchConditions.length - 1, icon: d(v), onClick: (e3) => R(a3.$index, "down") }, null, 8, ["disabled", "icon", "onClick"])]), _: 2 }, 1024), r(x2, { size: "small", type: "danger", onClick: (e3) => {
|
|
46
46
|
return o3 = a3.$index, a3.row, void w2.configure.pushHomepage.searchConditions.splice(o3, 1);
|
|
47
47
|
var o3;
|
|
48
|
-
} }, { default: u(() => o2[9] || (o2[9] = [s(" 删除 ", -1)])), _:
|
|
48
|
+
} }, { default: u(() => [...o2[9] || (o2[9] = [s(" 删除 ", -1)])]), _: 1 }, 8, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(K, { modelValue: D.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => D.value = e3), "with-header": false }, { default: u(() => [(n(true), g(m, null, c(e2.configure.pushHomepage.searchConditions, (a3, o3) => (n(), g("div", { key: a3.uuid, style: { display: "none" } }, [r(H, { indexObj: O, configure: a3, pageDesign: e2.pageDesign }, null, 8, ["indexObj", "configure", "pageDesign"])]))), 128)), (n(), i(f($.value), { key: "attr_" + j.value.uuid, pageDesign: e2.pageDesign, configure: j.value, onChangeAssembly: B }, null, 40, ["pageDesign", "configure"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])) : t("", true)]), _: 1 });
|
|
49
49
|
};
|
|
50
50
|
} });
|
|
51
51
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, resolveComponent as a, createBlock as l, openBlock as t, withCtx as o, createElementVNode as m, createVNode as u, withDirectives as n, createTextVNode as d, vShow as i } from "vue";
|
|
2
2
|
const r = { style: { padding: "8px 0px 0px 0px" } }, s = e({ __name: "common-style-datazoom", props: { configure: { type: Object, required: true } }, setup: (e2) => (s2, p) => {
|
|
3
|
-
const f = a("el-switch"), g = a("el-form-item"), y = a("el-radio-button"), c = a("el-radio-group"),
|
|
4
|
-
return t(), l(
|
|
3
|
+
const f = a("el-switch"), g = a("el-form-item"), y = a("el-radio-button"), c = a("el-radio-group"), x = a("el-input-number"), b = a("el-text"), V = a("el-collapse-item");
|
|
4
|
+
return t(), l(V, { title: "缩略轴(横坐标)", name: "styleDatazoom", class: "amb-design-attr-group-header" }, { default: o(() => [m("div", r, [u(g, { label: "是否显示", style: { "margin-top": "0px", "margin-bottom": "-15px" } }, { default: o(() => [u(f, { modelValue: e2.configure.style.enableDatazoom, "onUpdate:modelValue": p[0] || (p[0] = (a2) => e2.configure.style.enableDatazoom = a2) }, null, 8, ["modelValue"])]), _: 1 }), n(u(g, { label: "类型", style: { "margin-top": "18px" } }, { default: o(() => [u(c, { modelValue: e2.configure.style.dataZoomType, "onUpdate:modelValue": p[1] || (p[1] = (a2) => e2.configure.style.dataZoomType = a2) }, { default: o(() => [u(y, { value: "" }, { default: o(() => [...p[4] || (p[4] = [d("默认", -1)])]), _: 1 }), u(y, { value: "slider" }, { default: o(() => [...p[5] || (p[5] = [d("滑动", -1)])]), _: 1 }), u(y, { value: "inside" }, { default: o(() => [...p[6] || (p[6] = [d("内置", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[i, e2.configure.style.enableDatazoom]]), n(u(g, { label: "开始比例", style: { "margin-top": "-10px" } }, { default: o(() => [u(x, { modelValue: e2.configure.style.dataZoomStart, "onUpdate:modelValue": p[2] || (p[2] = (a2) => e2.configure.style.dataZoomStart = a2), min: 0, max: e2.configure.style.dataZoomEnd }, null, 8, ["modelValue", "max"])]), _: 1 }, 512), [[i, e2.configure.style.enableDatazoom]]), n(u(g, { label: "结束比例", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: o(() => [u(x, { modelValue: e2.configure.style.dataZoomEnd, "onUpdate:modelValue": p[3] || (p[3] = (a2) => e2.configure.style.dataZoomEnd = a2), min: e2.configure.style.dataZoomStart, max: 100 }, null, 8, ["modelValue", "min"]), p[8] || (p[8] = d("、 ", -1)), u(b, { style: { "line-height": "15px", "margin-top": "5px" }, type: "success", size: "small" }, { default: o(() => [...p[7] || (p[7] = [d(" 数据窗口范围的起始百分比,范围是:0 ~ 100,表示 0% ~ 100% ", -1)])]), _: 1 })]), _: 1 }, 512), [[i, e2.configure.style.enableDatazoom]])])]), _: 1 });
|
|
5
5
|
} });
|
|
6
6
|
export {
|
|
7
7
|
s as default
|
package/dist/es/components/design/views/assemblys/chart/common/common-style-font-subtitle.vue.js
CHANGED
|
@@ -2,8 +2,8 @@ import { defineComponent as e, resolveComponent as l, createBlock as t, openBloc
|
|
|
2
2
|
const b = { style: { padding: "8px 0px 0px 0px" } }, f = e({ __name: "common-style-font-subtitle", props: { configure: { type: Object, required: true }, chartType: { type: String, default: "" } }, setup(e2) {
|
|
3
3
|
const f2 = ["8", "10", "12", "14", "16", "18", "20", "24", "28"];
|
|
4
4
|
return (c, g) => {
|
|
5
|
-
const y = l("el-color-picker"),
|
|
6
|
-
return a(), t(w, { title: "副标题", name: "subtitleFont", class: "amb-design-attr-group-header" }, { default: o(() => [u("div", b, [i(
|
|
5
|
+
const y = l("el-color-picker"), h = l("el-form-item"), x = l("el-option"), _ = l("el-select"), V = l("el-radio-button"), v = l("el-radio-group"), T = l("el-input"), U = l("el-col"), F = l("el-text"), w = l("el-collapse-item");
|
|
6
|
+
return a(), t(w, { title: "副标题", name: "subtitleFont", class: "amb-design-attr-group-header" }, { default: o(() => [u("div", b, [i(h, { label: "颜色", style: { "margin-top": "4px" } }, { default: o(() => [i(y, { modelValue: e2.configure.style.subtitleColor, "onUpdate:modelValue": g[0] || (g[0] = (l2) => e2.configure.style.subtitleColor = l2) }, null, 8, ["modelValue"])]), _: 1 }), i(h, { label: "字号", style: { "margin-top": "-10px" } }, { default: o(() => [i(_, { modelValue: e2.configure.style.subtitleFontSize, "onUpdate:modelValue": g[1] || (g[1] = (l2) => e2.configure.style.subtitleFontSize = l2), placeholder: "默认", clearable: "" }, { default: o(() => [(a(), d(n, null, s(f2, (e3) => i(x, { label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(h, { label: "文字粗细", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: o(() => [i(_, { modelValue: e2.configure.style.subtitleFontWeight, "onUpdate:modelValue": g[2] || (g[2] = (l2) => e2.configure.style.subtitleFontWeight = l2), placeholder: "默认", clearable: "" }, { default: o(() => [i(x, { label: "normal", value: "normal" }), i(x, { label: "bold", value: "bold" }), i(x, { label: "bolder", value: "bolder" }), i(x, { label: "lighter", value: "lighter" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(i(h, { label: "左右对齐", style: { "margin-top": "24px", "margin-bottom": "-15px" } }, { default: o(() => [i(v, { modelValue: e2.configure.style.subtitleTextAlign, "onUpdate:modelValue": g[3] || (g[3] = (l2) => e2.configure.style.subtitleTextAlign = l2) }, { default: o(() => [i(V, { value: "left" }, { default: o(() => [...g[6] || (g[6] = [p("左", -1)])]), _: 1 }), i(V, { value: "center" }, { default: o(() => [...g[7] || (g[7] = [p("中", -1)])]), _: 1 }), i(V, { value: "right" }, { default: o(() => [...g[8] || (g[8] = [p("右", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[m, "seriesChart" != e2.chartType]]), r(i(h, { label: "位置", style: { "margin-top": "24px", "margin-bottom": "-15px" } }, { default: o(() => [i(U, { span: 12 }, { default: o(() => [i(h, { "label-width": "40", label: "left" }, { default: o(() => [i(T, { style: { width: "40px" }, modelValue: e2.configure.style.subtitleLeft, "onUpdate:modelValue": g[4] || (g[4] = (l2) => e2.configure.style.subtitleLeft = l2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), i(U, { span: 12 }, { default: o(() => [i(h, { "label-width": "40", label: "top" }, { default: o(() => [i(T, { style: { width: "40px" }, modelValue: e2.configure.style.subtitleTop, "onUpdate:modelValue": g[5] || (g[5] = (l2) => e2.configure.style.subtitleTop = l2), placeholder: "" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), i(F, { type: "success", size: "small", style: { "line-height": "15px", "margin-top": "4px" } }, { default: o(() => [...g[9] || (g[9] = [p("值可以是像 20 这样的具体像素值,可以是像 '20%' 这样相对于容器高宽的百分比", -1)])]), _: 1 })]), _: 1 }, 512), [[m, "seriesChart" == e2.chartType]])])]), _: 1 });
|
|
7
7
|
};
|
|
8
8
|
} });
|
|
9
9
|
export {
|
package/dist/es/components/design/views/assemblys/chart/common/common-style-font-title.vue.js
CHANGED
|
@@ -2,8 +2,8 @@ import { defineComponent as e, resolveComponent as l, createBlock as t, openBloc
|
|
|
2
2
|
const m = { style: { padding: "8px 0px 0px 0px" } }, c = e({ __name: "common-style-font-title", props: { configure: { type: Object, required: true }, chartType: Object }, setup(e2) {
|
|
3
3
|
const c2 = ["8", "10", "12", "14", "16", "18", "20", "24", "28"];
|
|
4
4
|
return (f, g) => {
|
|
5
|
-
const s = l("el-color-picker"), b = l("el-form-item"),
|
|
6
|
-
return a(), t(v, { title: "主标题", name: "titleFont", class: "amb-design-attr-group-header" }, { default: o(() => [u("div", m, [r(b, { label: "颜色", style: { "margin-top": "4px" } }, { default: o(() => [r(s, { modelValue: e2.configure.style.titleColor, "onUpdate:modelValue": g[0] || (g[0] = (l2) => e2.configure.style.titleColor = l2) }, null, 8, ["modelValue"])]), _: 1 }), r(b, { label: "字号", style: { "margin-top": "-10px" } }, { default: o(() => [r(
|
|
5
|
+
const s = l("el-color-picker"), b = l("el-form-item"), y = l("el-option"), _ = l("el-select"), x = l("el-radio-button"), V = l("el-radio-group"), v = l("el-collapse-item");
|
|
6
|
+
return a(), t(v, { title: "主标题", name: "titleFont", class: "amb-design-attr-group-header" }, { default: o(() => [u("div", m, [r(b, { label: "颜色", style: { "margin-top": "4px" } }, { default: o(() => [r(s, { modelValue: e2.configure.style.titleColor, "onUpdate:modelValue": g[0] || (g[0] = (l2) => e2.configure.style.titleColor = l2) }, null, 8, ["modelValue"])]), _: 1 }), r(b, { label: "字号", style: { "margin-top": "-10px" } }, { default: o(() => [r(_, { modelValue: e2.configure.style.titleFontSize, "onUpdate:modelValue": g[1] || (g[1] = (l2) => e2.configure.style.titleFontSize = l2), placeholder: "默认", clearable: "" }, { default: o(() => [(a(), i(n, null, d(c2, (e3) => r(y, { label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(b, { label: "文字粗细", style: { "margin-top": "-10px" } }, { default: o(() => [r(_, { modelValue: e2.configure.style.titleFontWeight, "onUpdate:modelValue": g[2] || (g[2] = (l2) => e2.configure.style.titleFontWeight = l2), placeholder: "默认", clearable: "" }, { default: o(() => [r(y, { label: "normal", value: "normal" }), r(y, { label: "bold", value: "bold" }), r(y, { label: "bolder", value: "bolder" }), r(y, { label: "lighter", value: "lighter" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(b, { label: "左右对齐", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: o(() => [r(V, { modelValue: e2.configure.style.titleTextAlign, "onUpdate:modelValue": g[3] || (g[3] = (l2) => e2.configure.style.titleTextAlign = l2) }, { default: o(() => [r(x, { value: "left" }, { default: o(() => [...g[4] || (g[4] = [p("左", -1)])]), _: 1 }), r(x, { value: "center" }, { default: o(() => [...g[5] || (g[5] = [p("中", -1)])]), _: 1 }), r(x, { value: "right" }, { default: o(() => [...g[6] || (g[6] = [p("右", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 });
|
|
7
7
|
};
|
|
8
8
|
} });
|
|
9
9
|
export {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as l, createBlock as a, openBlock as t, withCtx as n, createElementVNode as o, createVNode as u,
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
return
|
|
1
|
+
import { defineComponent as e, resolveComponent as l, createBlock as a, openBlock as t, withCtx as n, createElementVNode as o, createVNode as u, createCommentVNode as d, withDirectives as r, createTextVNode as g, vShow as i } from "vue";
|
|
2
|
+
const s = { style: { padding: "8px 0px 0px 0px" } }, m = e({ __name: "common-style-legend", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
3
|
+
const m2 = e2;
|
|
4
|
+
return m2.configure.style.legend || (m2.configure.style.legend = { type: "plain" }), (m3, p) => {
|
|
5
|
+
const c = l("el-switch"), f = l("el-form-item"), y = l("el-radio-button"), b = l("el-radio-group"), V = l("el-option"), _ = l("el-select"), x = l("el-input-number"), L = l("el-input"), v = l("el-text"), h = l("el-collapse-item");
|
|
6
|
+
return t(), a(h, { title: "图例", name: "styleLegend", class: "amb-design-attr-group-header" }, { default: n(() => [o("div", s, [u(f, { label: "是否显示", style: { "margin-top": "0px" } }, { default: n(() => [u(c, { modelValue: e2.configure.style.enableLegend, "onUpdate:modelValue": p[0] || (p[0] = (l2) => e2.configure.style.enableLegend = l2) }, null, 8, ["modelValue"])]), _: 1 }), e2.configure.style.enableLegend ? (t(), a(f, { key: 0, label: "类型", style: { "margin-top": "-10px" } }, { default: n(() => [u(b, { modelValue: e2.configure.style.legend.type, "onUpdate:modelValue": p[1] || (p[1] = (l2) => e2.configure.style.legend.type = l2) }, { default: n(() => [u(y, { value: "plain" }, { default: n(() => [...p[8] || (p[8] = [g("普通图例", -1)])]), _: 1 }), u(y, { value: "scroll" }, { default: n(() => [...p[9] || (p[9] = [g("滚动翻页", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true), r(u(f, { label: "布局", style: { "margin-top": "-10px" } }, { default: n(() => [u(b, { modelValue: e2.configure.style.legendLayout, "onUpdate:modelValue": p[2] || (p[2] = (l2) => e2.configure.style.legendLayout = l2) }, { default: n(() => [u(y, { value: "" }, { default: n(() => [...p[10] || (p[10] = [g("默认", -1)])]), _: 1 }), u(y, { value: "horizontal" }, { default: n(() => [...p[11] || (p[11] = [g("水平", -1)])]), _: 1 }), u(y, { value: "vertical" }, { default: n(() => [...p[12] || (p[12] = [g("垂直", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[i, e2.configure.style.enableLegend]]), r(u(f, { label: "水平对齐", style: { "margin-top": "-10px" } }, { default: n(() => [u(_, { modelValue: e2.configure.style.legendAlign, "onUpdate:modelValue": p[3] || (p[3] = (l2) => e2.configure.style.legendAlign = l2), placeholder: "默认", clearable: "" }, { default: n(() => [u(V, { label: "靠左", value: "left" }), u(V, { label: "居中", value: "center" }), u(V, { label: "靠右", value: "right" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[i, e2.configure.style.enableLegend]]), r(u(f, { label: "垂直对齐", style: { "margin-top": "-10px" } }, { default: n(() => [u(_, { modelValue: e2.configure.style.legendVerticalAlign, "onUpdate:modelValue": p[4] || (p[4] = (l2) => e2.configure.style.legendVerticalAlign = l2), placeholder: "默认", clearable: "" }, { default: n(() => [u(V, { label: "顶部", value: "top" }), u(V, { label: "居中", value: "middle" }), u(V, { label: "底部", value: "bottom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[i, e2.configure.style.enableLegend]]), r(u(f, { label: "内边距", style: { "margin-top": "-10px" } }, { default: n(() => [u(x, { modelValue: e2.configure.style.legendPadding, "onUpdate:modelValue": p[5] || (p[5] = (l2) => e2.configure.style.legendPadding = l2), min: "0", max: "200" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[i, e2.configure.style.enableLegend]]), r(u(f, { label: "自定义配置", style: { "margin-top": "-8px" } }, { default: n(() => [u(L, { modelValue: e2.configure.style.customLegendParams, "onUpdate:modelValue": p[6] || (p[6] = (l2) => e2.configure.style.customLegendParams = l2), rows: 5, type: "textarea", placeholder: "{\r\n textStyle: {\r\n width: 180, \r\n overflow: 'truncate'\r\n },\r\n top: '10%',\r\n tooltip: {\r\n show: true \r\n }\r\n }" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[i, e2.configure.style.enableLegend]]), r(u(f, { label: "内容定义", style: { "margin-bottom": "-15px" } }, { default: n(() => [u(L, { modelValue: e2.configure.style.customLegend, "onUpdate:modelValue": p[7] || (p[7] = (l2) => e2.configure.style.customLegend = l2), rows: 3, type: "textarea", placeholder: "Legend {name}" }, null, 8, ["modelValue"]), u(v, { type: "success", size: "small" }, { default: n(() => [...p[13] || (p[13] = [g("模板变量为图例名称{name}", -1)])]), _: 1 })]), _: 1 }, 512), [[i, e2.configure.style.enableLegend]])])]), _: 1 });
|
|
7
|
+
};
|
|
5
8
|
} });
|
|
6
9
|
export {
|
|
7
10
|
m as default
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
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 n, vShow as p, 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
3
|
const c2 = e2, g = ["8", "10", "12", "14", "16", "18", "20", "24", "28"];
|
|
4
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"),
|
|
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(
|
|
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] = [n("默认", -1)])]), _: 1 }), u(V, { value: "item" }, { default: a(() => [...b[13] || (b[13] = [n("item", -1)])]), _: 1 }), r(u(V, { value: "axis" }, { default: a(() => [...b[14] || (b[14] = [n("axis", -1)])]), _: 1 }, 512), [[p, "radar" != e2.chartType]])]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[p, 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), [[p, 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), [[p, 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), [[p, 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), [[p, 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), [[p, 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), [[p, 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: "{a} <br/>{b} : <strong>{d}%</strong>" }, null, 8, ["modelValue"]), u(w, { style: { "line-height": "15px", "margin-top": "5px" }, type: "success", size: "small" }, { default: a(() => [...b[15] || (b[15] = [n(" {a}:系列名;{b}:数据名;{c}:数据值;{@xxx};{@[n]} ", -1)])]), _: 1 })]), _: 1 }, 512), [[p, e2.configure.style.enableTooltip]])])]), _: 1 });
|
|
7
7
|
};
|
|
8
8
|
} });
|
|
9
9
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, resolveComponent as l, createBlock as a, openBlock as t, withCtx as i, createElementVNode as o, createVNode as s, withDirectives as n, vShow as u, createTextVNode as x } from "vue";
|
|
2
2
|
const m = { style: { padding: "8px 0px 0px 0px" } }, r = e({ __name: "common-style-xaxis", props: { configure: { type: Object, required: true } }, setup: (e2) => (r2, p) => {
|
|
3
3
|
const d = l("el-switch"), g = l("el-form-item"), f = l("el-input-number"), y = l("el-input"), c = l("el-text"), b = l("el-collapse-item");
|
|
4
|
-
return t(), a(b, { title: "横坐标", name: "styleXaxis", class: "amb-design-attr-group-header" }, { default: i(() => [o("div", m, [s(g, { label: "是否显示", style: { "margin-top": "0px", "margin-bottom": "-15px" } }, { default: i(() => [s(d, { modelValue: e2.configure.style.enableXaxis, "onUpdate:modelValue": p[0] || (p[0] = (l2) => e2.configure.style.enableXaxis = l2) }, null, 8, ["modelValue"])]), _: 1 }), n(s(g, { label: "旋转角度", style: { "margin-top": "18px" } }, { default: i(() => [s(f, { modelValue: e2.configure.style.xaxisAngle, "onUpdate:modelValue": p[1] || (p[1] = (l2) => e2.configure.style.xaxisAngle = l2), min: -90, max: 90 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[u, e2.configure.style.enableXaxis]]), n(s(g, { label: "偏移量", style: { "margin-top": "-10px" } }, { default: i(() => [s(f, { modelValue: e2.configure.style.xaxisOffset, "onUpdate:modelValue": p[2] || (p[2] = (l2) => e2.configure.style.xaxisOffset = l2), min: 0, max: "180" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[u, e2.configure.style.enableXaxis]]), n(s(g, { label: "文本宽度", style: { "margin-top": "-10px" } }, { default: i(() => [s(f, { modelValue: e2.configure.style.xaxisWidth, "onUpdate:modelValue": p[3] || (p[3] = (l2) => e2.configure.style.xaxisWidth = l2), min: 10, max: 180 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[u, e2.configure.style.enableXaxis]]), n(s(g, { label: "截断显示", style: { "margin-top": "-10px" } }, { default: i(() => [s(y, { modelValue: e2.configure.style.xaxisEllipsis, "onUpdate:modelValue": p[4] || (p[4] = (l2) => e2.configure.style.xaxisEllipsis = l2), placeholder: "..." }, null, 8, ["modelValue"])]), _: 1 }, 512), [[u, e2.configure.style.enableXaxis]]), n(s(g, { label: "内容定义", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: i(() => [s(y, { modelValue: e2.configure.style.xaxisFormatter, "onUpdate:modelValue": p[5] || (p[5] = (l2) => e2.configure.style.xaxisFormatter = l2), type: "textarea", row: "2", placeholder: "" }, null, 8, ["modelValue"]), s(c, { style: { "line-height": "15px", "margin-top": "5px" }, type: "success", size: "small" }, { default: i(() => p[6] || (p[6] = [x(" 模板变量为刻度默认标签 {value},如{value} kg ", -1)])), _: 1
|
|
4
|
+
return t(), a(b, { title: "横坐标", name: "styleXaxis", class: "amb-design-attr-group-header" }, { default: i(() => [o("div", m, [s(g, { label: "是否显示", style: { "margin-top": "0px", "margin-bottom": "-15px" } }, { default: i(() => [s(d, { modelValue: e2.configure.style.enableXaxis, "onUpdate:modelValue": p[0] || (p[0] = (l2) => e2.configure.style.enableXaxis = l2) }, null, 8, ["modelValue"])]), _: 1 }), n(s(g, { label: "旋转角度", style: { "margin-top": "18px" } }, { default: i(() => [s(f, { modelValue: e2.configure.style.xaxisAngle, "onUpdate:modelValue": p[1] || (p[1] = (l2) => e2.configure.style.xaxisAngle = l2), min: -90, max: 90 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[u, e2.configure.style.enableXaxis]]), n(s(g, { label: "偏移量", style: { "margin-top": "-10px" } }, { default: i(() => [s(f, { modelValue: e2.configure.style.xaxisOffset, "onUpdate:modelValue": p[2] || (p[2] = (l2) => e2.configure.style.xaxisOffset = l2), min: 0, max: "180" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[u, e2.configure.style.enableXaxis]]), n(s(g, { label: "文本宽度", style: { "margin-top": "-10px" } }, { default: i(() => [s(f, { modelValue: e2.configure.style.xaxisWidth, "onUpdate:modelValue": p[3] || (p[3] = (l2) => e2.configure.style.xaxisWidth = l2), min: 10, max: 180 }, null, 8, ["modelValue"])]), _: 1 }, 512), [[u, e2.configure.style.enableXaxis]]), n(s(g, { label: "截断显示", style: { "margin-top": "-10px" } }, { default: i(() => [s(y, { modelValue: e2.configure.style.xaxisEllipsis, "onUpdate:modelValue": p[4] || (p[4] = (l2) => e2.configure.style.xaxisEllipsis = l2), placeholder: "..." }, null, 8, ["modelValue"])]), _: 1 }, 512), [[u, e2.configure.style.enableXaxis]]), n(s(g, { label: "内容定义", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: i(() => [s(y, { modelValue: e2.configure.style.xaxisFormatter, "onUpdate:modelValue": p[5] || (p[5] = (l2) => e2.configure.style.xaxisFormatter = l2), type: "textarea", row: "2", placeholder: "" }, null, 8, ["modelValue"]), s(c, { style: { "line-height": "15px", "margin-top": "5px" }, type: "success", size: "small" }, { default: i(() => [...p[6] || (p[6] = [x(" 模板变量为刻度默认标签 {value},如{value} kg ", -1)])]), _: 1 })]), _: 1 }, 512), [[u, e2.configure.style.enableXaxis]])])]), _: 1 });
|
|
5
5
|
} });
|
|
6
6
|
export {
|
|
7
7
|
r as default
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as l, createBlock as a, openBlock as t, withCtx as d, createElementVNode as u, createVNode as o, withDirectives as i, createCommentVNode as n, createTextVNode as m, vShow as x, createElementBlock as s, Fragment as p, renderList as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as e, resolveComponent as l, createBlock as a, openBlock as t, withCtx as d, createElementVNode as u, createVNode as o, withDirectives as i, createCommentVNode as n, createTextVNode as m, vShow as x, createElementBlock as s, Fragment as p, renderList as y } from "vue";
|
|
2
|
+
const r = { style: { padding: "8px 0px 0px 0px" } }, f = e({ __name: "common-style-yaxis", props: { yaxis: { type: Object, required: true }, title: Object, name: Object }, setup(e2) {
|
|
3
|
+
const f2 = e2, V = ["8", "10", "12", "14", "16", "18", "20", "24", "28"], _ = ["start", "middle", "center", "end"];
|
|
4
4
|
function b() {
|
|
5
|
-
"fixed" !==
|
|
5
|
+
"fixed" !== f2.yaxis._dataMin && delete f2.yaxis.min, "fixed" !== f2.yaxis._dataMax && delete f2.yaxis.min;
|
|
6
6
|
}
|
|
7
|
-
return (
|
|
7
|
+
return (f3, g) => {
|
|
8
8
|
const c = l("el-input"), v = l("el-form-item"), U = l("el-radio"), h = l("el-radio-group"), M = l("el-input-number"), A = l("el-divider"), C = l("el-option"), z = l("el-select"), L = l("el-radio-button"), k = l("el-color-picker"), F = l("el-text"), S = l("el-switch"), j = l("el-collapse-item");
|
|
9
|
-
return t(), a(j, { title: e2.title, name: e2.name, class: "amb-design-attr-group-header" }, { default: d(() => [u("div",
|
|
9
|
+
return t(), a(j, { title: e2.title, name: e2.name, class: "amb-design-attr-group-header" }, { default: d(() => [u("div", r, [o(v, { label: "名称", style: { "margin-top": "0px" } }, { default: d(() => [o(c, { modelValue: e2.yaxis.name, "onUpdate:modelValue": g[0] || (g[0] = (l2) => e2.yaxis.name = l2), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), o(v, { label: "最小值设置", style: { "margin-top": "-10px" } }, { default: d(() => [o(h, { modelValue: e2.yaxis._dataMin, "onUpdate:modelValue": g[1] || (g[1] = (l2) => e2.yaxis._dataMin = l2), onChange: b }, { default: d(() => [o(U, { value: "default" }, { default: d(() => [...g[17] || (g[17] = [m("默认", -1)])]), _: 1 }), o(U, { value: "fixed" }, { default: d(() => [...g[18] || (g[18] = [m("固定值", -1)])]), _: 1 }), o(U, { value: "auto" }, { default: d(() => [...g[19] || (g[19] = [m("自动计算", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), "fixed" === e2.yaxis._dataMin ? (t(), a(M, { key: 0, modelValue: e2.yaxis.min, "onUpdate:modelValue": g[2] || (g[2] = (l2) => e2.yaxis.min = l2), max: e2.yaxis.max }, null, 8, ["modelValue", "max"])) : n("", true)]), _: 1 }), o(v, { label: "最大值设置", style: { "margin-top": "-10px" }, onChange: b }, { default: d(() => [o(h, { modelValue: e2.yaxis._dataMax, "onUpdate:modelValue": g[3] || (g[3] = (l2) => e2.yaxis._dataMax = l2) }, { default: d(() => [o(U, { value: "default" }, { default: d(() => [...g[20] || (g[20] = [m("默认", -1)])]), _: 1 }), o(U, { value: "fixed" }, { default: d(() => [...g[21] || (g[21] = [m("固定值", -1)])]), _: 1 }), o(U, { value: "auto" }, { default: d(() => [...g[22] || (g[22] = [m("自动计算", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), "fixed" === e2.yaxis._dataMax ? (t(), a(M, { key: 0, modelValue: e2.yaxis.max, "onUpdate:modelValue": g[4] || (g[4] = (l2) => e2.yaxis.max = l2), min: e2.yaxis.min }, null, 8, ["modelValue", "min"])) : n("", true)]), _: 1 }), o(v, { label: "坐标偏移", style: { "margin-top": "-10px" } }, { default: d(() => [o(M, { modelValue: e2.yaxis.offset, "onUpdate:modelValue": g[5] || (g[5] = (l2) => e2.yaxis.offset = l2), min: 0, max: "180" }, null, 8, ["modelValue"])]), _: 1 }), i(o(A, null, { default: d(() => [...g[23] || (g[23] = [m(" 名称 ", -1)])]), _: 1 }, 512), [[x, e2.yaxis.name]]), i(o(v, { label: "名称位置", style: { "margin-top": "-10px" } }, { default: d(() => [o(z, { modelValue: e2.yaxis.nameLocation, "onUpdate:modelValue": g[6] || (g[6] = (l2) => e2.yaxis.nameLocation = l2), placeholder: "默认", clearable: "" }, { default: d(() => [(t(), s(p, null, y(_, (e3) => o(C, { label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[x, e2.yaxis.name]]), i(o(v, { label: "名称对齐", style: { "margin-top": "-10px" } }, { default: d(() => [o(h, { modelValue: e2.yaxis.nameAlign, "onUpdate:modelValue": g[7] || (g[7] = (l2) => e2.yaxis.nameAlign = l2) }, { default: d(() => [o(L, { value: "right" }, { default: d(() => [...g[24] || (g[24] = [m("左", -1)])]), _: 1 }), o(L, { value: "center" }, { default: d(() => [...g[25] || (g[25] = [m("中", -1)])]), _: 1 }), o(L, { value: "left" }, { default: d(() => [...g[26] || (g[26] = [m("右", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), o(h, { style: { "margin-top": "10px" }, modelValue: e2.yaxis.nameVerticalAlign, "onUpdate:modelValue": g[8] || (g[8] = (l2) => e2.yaxis.nameVerticalAlign = l2) }, { default: d(() => [o(L, { value: "bottom" }, { default: d(() => [...g[27] || (g[27] = [m("上", -1)])]), _: 1 }), o(L, { value: "middle" }, { default: d(() => [...g[28] || (g[28] = [m("中", -1)])]), _: 1 }), o(L, { value: "top" }, { default: d(() => [...g[29] || (g[29] = [m("底", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[x, e2.yaxis.name]]), i(o(v, { label: "内边距", style: { "margin-top": "-10px" } }, { default: d(() => [o(M, { modelValue: e2.yaxis.namePadding, "onUpdate:modelValue": g[9] || (g[9] = (l2) => e2.yaxis.namePadding = l2), min: "0", max: "200" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[x, e2.yaxis.name]]), i(o(v, { label: "名称颜色", style: { "margin-top": "4px" } }, { default: d(() => [o(k, { modelValue: e2.yaxis.nameColor, "onUpdate:modelValue": g[10] || (g[10] = (l2) => e2.yaxis.nameColor = l2) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[x, e2.yaxis.name]]), i(o(v, { label: "名称字号", style: { "margin-top": "-10px" } }, { default: d(() => [o(z, { modelValue: e2.yaxis.nameFontSize, "onUpdate:modelValue": g[11] || (g[11] = (l2) => e2.yaxis.nameFontSize = l2), placeholder: "默认", clearable: "" }, { default: d(() => [(t(), s(p, null, y(V, (e3) => o(C, { label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[x, e2.yaxis.name]]), o(A, null, { default: d(() => [...g[30] || (g[30] = [m(" 刻度标签 ", -1)])]), _: 1 }), o(v, { label: "内容定义", style: { "margin-top": "-10px" } }, { default: d(() => [o(c, { modelValue: e2.yaxis.formatter, "onUpdate:modelValue": g[12] || (g[12] = (l2) => e2.yaxis.formatter = l2), rows: 2, type: "textarea", placeholder: "" }, null, 8, ["modelValue"]), o(F, { type: "success", size: "small" }, { default: d(() => [...g[31] || (g[31] = [m("标签取值{value},如{value} kg", -1)])]), _: 1 })]), _: 1 }), o(v, { label: "标签颜色", style: { "margin-top": "4px" } }, { default: d(() => [o(k, { modelValue: e2.yaxis.labelColor, "onUpdate:modelValue": g[13] || (g[13] = (l2) => e2.yaxis.labelColor = l2) }, null, 8, ["modelValue"])]), _: 1 }), o(v, { label: "标签字号", style: { "margin-top": "-10px" } }, { default: d(() => [o(z, { modelValue: e2.yaxis.labelFontSize, "onUpdate:modelValue": g[14] || (g[14] = (l2) => e2.yaxis.labelFontSize = l2), placeholder: "默认", clearable: "" }, { default: d(() => [(t(), s(p, null, y(V, (e3) => o(C, { label: e3, value: e3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), o(v, { label: "分隔线", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: d(() => [o(S, { modelValue: e2.yaxis.enableAxisLine, "onUpdate:modelValue": g[15] || (g[15] = (l2) => e2.yaxis.enableAxisLine = l2) }, null, 8, ["modelValue"])]), _: 1 }), i(o(v, { label: "分割段数", style: { "margin-top": "18px", "margin-bottom": "-15px" } }, { default: d(() => [o(M, { modelValue: e2.yaxis.splitNumber, "onUpdate:modelValue": g[16] || (g[16] = (l2) => e2.yaxis.splitNumber = l2), min: "0", max: "100" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[x, e2.yaxis.enableAxisLine]])])]), _: 1 }, 8, ["title", "name"]);
|
|
10
10
|
};
|
|
11
11
|
} });
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
f as default
|
|
14
14
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createElementVNode as r, createVNode as i, withDirectives as n, createElementBlock as s, Fragment as p, renderList as d, toDisplayString as c, createTextVNode as f, vShow as m } from "vue";
|
|
2
2
|
const g = { style: { padding: "8px 0px 0px 0px" } }, b = { style: { float: "left" } }, x = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, y = { style: { width: "100%", "padding-left": "20px", "margin-bottom": "-15px" } }, v = e({ __name: "common-attr-dataset-columnline", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
3
|
-
const v2 = e2,
|
|
4
|
-
let
|
|
3
|
+
const v2 = e2, V = l([]);
|
|
4
|
+
let $ = null, _ = null;
|
|
5
5
|
return function() {
|
|
6
|
-
if (v2.configure.serviceFields ==
|
|
7
|
-
|
|
6
|
+
if (v2.configure.serviceFields == $ && v2.configure.serviceDataField == _) return;
|
|
7
|
+
$ = v2.configure.serviceFields, _ = v2.configure.serviceDataField;
|
|
8
8
|
const e3 = [];
|
|
9
|
-
if (
|
|
10
|
-
const l2 =
|
|
11
|
-
for (let a2 of
|
|
9
|
+
if ($) {
|
|
10
|
+
const l2 = _ || "";
|
|
11
|
+
for (let a2 of $) if ((!a2.type || "any" == a2.type || "number" == a2.type) && (!l2 || a2.value.startsWith(l2 + "."))) {
|
|
12
12
|
const o2 = {};
|
|
13
13
|
if (Object.assign(o2, a2), l2) {
|
|
14
14
|
const e4 = a2.value.substring(l2.length + 1);
|
|
@@ -17,10 +17,10 @@ const g = { style: { padding: "8px 0px 0px 0px" } }, b = { style: { float: "left
|
|
|
17
17
|
e3.push(o2);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
V.value = e3;
|
|
21
21
|
}(), l(""), (l2, v3) => {
|
|
22
|
-
const
|
|
23
|
-
return t(), o(C, { title: "数据设置", name: "dataList", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", g, [i(q, { modelValue: e2.configure.props.yaxisSource, "onUpdate:modelValue": v3[4] || (v3[4] = (l3) => e2.configure.props.yaxisSource = l3) }, { default: u(() => [i(F, { style: { "margin-top": "4px" } }, { label: u(() => [i(
|
|
22
|
+
const $2 = a("el-radio"), _2 = a("el-option"), h = a("el-select"), F = a("el-form-item"), S = a("el-switch"), w = a("el-input-number"), U = a("QuestionFilled"), k = a("el-icon"), z = a("el-tooltip"), j = a("el-input"), q = a("el-radio-group"), C = a("el-collapse-item");
|
|
23
|
+
return t(), o(C, { title: "数据设置", name: "dataList", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", g, [i(q, { modelValue: e2.configure.props.yaxisSource, "onUpdate:modelValue": v3[4] || (v3[4] = (l3) => e2.configure.props.yaxisSource = l3) }, { default: u(() => [i(F, { style: { "margin-top": "4px" } }, { label: u(() => [i($2, { value: "variable" }, { default: u(() => [...v3[5] || (v3[5] = [f("数据字段", -1)])]), _: 1 })]), default: u(() => [i(h, { size: "small", disabled: "fix" == e2.configure.props.yaxisSource, modelValue: e2.configure.props.yaxisField, "onUpdate:modelValue": v3[0] || (v3[0] = (l3) => e2.configure.props.yaxisField = l3), title: e2.configure.props.yaxisField, style: { width: "160px" }, filterable: "", "allow-create": "", clearable: "", placeholder: "请选择" }, { default: u(() => [(t(true), s(p, null, d(V.value, (e3) => (t(), o(_2, { key: e3.value, label: e3.label, value: e3.value }, { default: u(() => [r("span", b, c(e3.label), 1), r("span", x, c(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["disabled", "modelValue", "title"])]), _: 1 }), n(i(F, { label: "累计显示", style: { "margin-top": "-10px" } }, { default: u(() => [i(S, { modelValue: e2.configure.props.isCumulative, "onUpdate:modelValue": v3[1] || (v3[1] = (l3) => e2.configure.props.isCumulative = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[m, !e2.configure.props.yaxisSource || "variable" == e2.configure.props.yaxisSource]]), i(F, { style: { "margin-top": "-10px" } }, { label: u(() => [i($2, { value: "fix" }, { default: u(() => [...v3[6] || (v3[6] = [f("固定值 ", -1)])]), _: 1 })]), default: u(() => [i(w, { disabled: "fix" != e2.configure.props.yaxisSource, placeholder: "请输入", modelValue: e2.configure.props.yaxisFix, "onUpdate:modelValue": v3[2] || (v3[2] = (l3) => e2.configure.props.yaxisFix = l3), min: 1, preision: "2" }, null, 8, ["disabled", "modelValue"])]), _: 1 }), i($2, { value: "formula", style: { "margin-top": "-10px" } }, { default: u(() => [v3[8] || (v3[8] = f("计算公式 ", -1)), i(z, { class: "box-item", effect: "dark", placement: "top-start" }, { content: u(() => [...v3[7] || (v3[7] = [f("字段值: ${row.字段名}", -1), r("br", null, null, -1), f(" 最大值: ${max.字段名}", -1), r("br", null, null, -1), f(" 求和: ${sum.字段名}", -1), r("br", null, null, -1), f(" 均值: ${avg.字段名}", -1), r("br", null, null, -1), f(" 最小值: ${min.字段名}", -1), r("br", null, null, -1), f(" 最大值: ${max.字段名}", -1), r("br", null, null, -1), f(" 累计值: ${add.字段名}", -1), r("br", null, null, -1), f(" 其他可用变量如${page},${data},${task},${request},${context},${system}", -1), r("br", null, null, -1)])]), default: u(() => [i(k, { size: "16" }, { default: u(() => [i(U)]), _: 1 })]), _: 1 })]), _: 1 }), r("div", y, [i(j, { modelValue: e2.configure.props.formula, "onUpdate:modelValue": v3[3] || (v3[3] = (l3) => e2.configure.props.formula = l3), disabled: "formula" != e2.configure.props.yaxisSource, rows: 4, type: "textarea", placeholder: "支持三元表达式,支持JS函数,如 return ${row.字段名}/${sum.字段名}*100" }, null, 8, ["modelValue", "disabled"])])]), _: 1 }, 8, ["modelValue"])])]), _: 1 });
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dynamic.vue.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as t, openBlock as i, withCtx as o, createElementVNode as r, createVNode as s, withDirectives as n, createElementBlock as c, Fragment as p, renderList as u, toDisplayString as d, createTextVNode as m, vShow as f } from "vue";
|
|
2
2
|
const y = { style: { padding: "8px 0px 0px 0px" } }, g = { style: { float: "left" } }, b = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, v = e({ __name: "common-attr-dynamic", props: { configure: { type: Object, required: true }, chartType: Object }, setup(e2) {
|
|
3
|
-
const v2 = e2,
|
|
4
|
-
let
|
|
3
|
+
const v2 = e2, x = l([]);
|
|
4
|
+
let h = null, S = null;
|
|
5
5
|
return function() {
|
|
6
|
-
if (v2.configure.serviceFields ==
|
|
7
|
-
|
|
6
|
+
if (v2.configure.serviceFields == h && v2.configure.serviceDataField == S) return;
|
|
7
|
+
h = v2.configure.serviceFields, S = v2.configure.serviceDataField;
|
|
8
8
|
const e3 = [];
|
|
9
|
-
if (
|
|
10
|
-
const l2 =
|
|
11
|
-
for (let a2 of
|
|
9
|
+
if (h) {
|
|
10
|
+
const l2 = S || "";
|
|
11
|
+
for (let a2 of h) if ((!a2.type || "string" == a2.type || "any" == a2.type) && (!l2 || a2.value.startsWith(l2 + "."))) {
|
|
12
12
|
const t2 = {};
|
|
13
13
|
if (Object.assign(t2, a2), l2) {
|
|
14
14
|
const e4 = a2.value.substring(l2.length + 1);
|
|
@@ -17,10 +17,10 @@ const y = { style: { padding: "8px 0px 0px 0px" } }, g = { style: { float: "left
|
|
|
17
17
|
e3.push(t2);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
x.value = e3;
|
|
21
21
|
}(), (l2, v3) => {
|
|
22
|
-
const
|
|
23
|
-
return i(), t(z, { title: "动态设置", name: "propsDynamic", class: "amb-design-attr-group-header" }, { default: o(() => [r("div", y, [s(V, { label: "动态系列", style: { "margin-top": "4px" } }, { default: o(() => [s(
|
|
22
|
+
const h2 = a("el-option"), S2 = a("el-select"), _ = a("el-text"), V = a("el-form-item"), F = a("el-input"), w = a("el-switch"), z = a("el-collapse-item");
|
|
23
|
+
return i(), t(z, { title: "动态设置", name: "propsDynamic", class: "amb-design-attr-group-header" }, { default: o(() => [r("div", y, [s(V, { label: "动态系列", style: { "margin-top": "4px" } }, { default: o(() => [s(S2, { size: "small", modelValue: e2.configure.props.dynamicSeriesField, "onUpdate:modelValue": v3[0] || (v3[0] = (l3) => e2.configure.props.dynamicSeriesField = l3), title: e2.configure.props.dynamicSeriesField, filterable: "", "allow-create": "", clearable: "", placeholder: "请选择" }, { default: o(() => [(i(true), c(p, null, u(x.value, (e3) => (i(), t(h2, { key: e3.value, label: e3.label, value: e3.value }, { default: o(() => [r("span", g, d(e3.label), 1), r("span", b, d(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "title"]), s(_, { type: "success", size: "small" }, { default: o(() => [...v3[3] || (v3[3] = [m("如按年份展开分析,动态字段为类别时,根据查询出的类别动态生成系列", -1)])]), _: 1 })]), _: 1 }), s(V, { label: "动态名称", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: o(() => [s(F, { modelValue: e2.configure.props.dynamicSeriesTitle, "onUpdate:modelValue": v3[1] || (v3[1] = (l3) => e2.configure.props.dynamicSeriesTitle = l3), placeholder: "请输入" }, null, 8, ["modelValue"]), s(_, { type: "success", size: "small" }, { default: o(() => [...v3[4] || (v3[4] = [m("默认为动态字段的值,可按${name}获取默认名称", -1)])]), _: 1 })]), _: 1 }), n(s(V, { label: "堆叠展示", style: { "margin-top": "15px", "margin-bottom": "-15px" } }, { default: o(() => [s(w, { modelValue: e2.configure.props.dynamicShowStack, "onUpdate:modelValue": v3[2] || (v3[2] = (l3) => e2.configure.props.dynamicShowStack = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[f, "bar" == e2.configure.type && e2.configure.props.dynamicSeriesField]])])]), _: 1 });
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|