super-page-runtime 2.1.932 → 2.2.0
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/_virtual/_plugin-vue_export-helper.js +6 -7
- package/dist/es/assets/chart-themes/theme1.js +2 -6
- package/dist/es/assets/chart-themes/theme2.js +2 -6
- package/dist/es/assets/chart-themes/theme3.js +2 -6
- package/dist/es/components/runtime/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -433
- package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
- package/dist/es/components/runtime/utils/barcode-util.js +10 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -300
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
- package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
- package/dist/es/components/runtime/utils/common-util.js +82 -152
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +361 -727
- package/dist/es/components/runtime/utils/events/print-label.js +73 -140
- package/dist/es/components/runtime/utils/events/standard-event.js +838 -2285
- package/dist/es/components/runtime/utils/events/validator-util.js +237 -536
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
- package/dist/es/components/runtime/utils/global-refs.js +45 -69
- package/dist/es/components/runtime/utils/i18n-util.js +12 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +298 -628
- package/dist/es/components/runtime/utils/page-init-util.js +134 -368
- package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
- package/dist/es/components/runtime/utils/page-store.js +8 -12
- package/dist/es/components/runtime/utils/store-util.js +9 -13
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +49 -84
- package/dist/es/components/runtime/utils/tree-utils.js +18 -36
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +37 -132
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +54 -198
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -169
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +208 -439
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +63 -226
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +168 -512
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +23 -125
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +311 -800
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +251 -592
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +43 -115
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +44 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -98
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +54 -200
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +69 -239
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +28 -98
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +22 -59
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +52 -173
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -249
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +34 -174
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +66 -189
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -243
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +82 -261
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +41 -129
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -252
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +19 -46
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +22 -49
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +21 -58
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +233 -708
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +2 -55
- package/dist/es/i18n/langs/en.js +2 -55
- package/package.json +74 -73
package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js
CHANGED
|
@@ -1,111 +1,21 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as n, resolveComponent as u, openBlock as o, createBlock as a, normalizeClass as i, unref as p, normalizeStyle as r, withCtx as s, createVNode as g, createElementBlock as c, Fragment as m, renderList as f, createTextVNode as v, toDisplayString as d } from "vue";
|
|
2
2
|
import "agilebuilder-ui";
|
|
3
|
-
import { handleAfterInitEvent, handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
|
-
import
|
|
5
|
-
import { $t } from "../../../../utils/i18n-util.js";
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const props = __props;
|
|
15
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
16
|
-
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
17
|
-
const showDropdown = ref(false);
|
|
18
|
-
if (designProperty.value.template && designProperty.value.template.length > 1) {
|
|
19
|
-
showDropdown.value = true;
|
|
20
|
-
}
|
|
21
|
-
const runtimeStyle = runtimeInfo.style;
|
|
22
|
-
const runtimeClass = runtimeInfo.class;
|
|
23
|
-
const componentRef = ref(null);
|
|
24
|
-
onMounted(() => {
|
|
25
|
-
nextTick(() => {
|
|
26
|
-
if (showDropdown.value) {
|
|
27
|
-
handleAfterInitEvent(null, props.pageContext, props.configure, {
|
|
28
|
-
componentRef: componentRef.value,
|
|
29
|
-
entity: props.pageContext.entity.data,
|
|
30
|
-
pageData: props.pageContext.entity.page
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
});
|
|
3
|
+
import { handleAfterInitEvent as y, handleEvent as b } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import k from "../button/button-runtime.vue2.js";
|
|
5
|
+
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
|
+
const x = { key: 1 }, _ = e({ __name: "printlabel-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
|
+
const _2 = e2, w = _2.configure.runtime ? _2.configure.runtime : {}, z = t(w.props ? w.props : {}), j = t(false);
|
|
8
|
+
z.value.template && z.value.template.length > 1 && (j.value = true);
|
|
9
|
+
const B = w.style, D = w.class, R = t(null);
|
|
10
|
+
return l(() => {
|
|
11
|
+
n(() => {
|
|
12
|
+
j.value && y(null, _2.pageContext, _2.configure, { componentRef: R.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
34
13
|
});
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
41
|
-
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
42
|
-
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
43
|
-
return !showDropdown.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
44
|
-
key: 0,
|
|
45
|
-
configure: _ctx.configure,
|
|
46
|
-
pageContext: _ctx.pageContext
|
|
47
|
-
}, null, 8, ["configure", "pageContext"])) : (openBlock(), createBlock(_component_el_dropdown, {
|
|
48
|
-
key: 1,
|
|
49
|
-
ref_key: "componentRef",
|
|
50
|
-
ref: componentRef,
|
|
51
|
-
class: normalizeClass(unref(runtimeClass)),
|
|
52
|
-
style: normalizeStyle(unref(runtimeStyle)),
|
|
53
|
-
placement: designProperty.value.placement,
|
|
54
|
-
"split-button": designProperty.value.splitButton,
|
|
55
|
-
disabled: designProperty.value.state === "disabled",
|
|
56
|
-
type: designProperty.value.buttonType,
|
|
57
|
-
size: designProperty.value.size,
|
|
58
|
-
trigger: designProperty.value.trigger
|
|
59
|
-
}, {
|
|
60
|
-
dropdown: withCtx(() => [
|
|
61
|
-
createVNode(_component_el_dropdown_menu, null, {
|
|
62
|
-
default: withCtx(() => [
|
|
63
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(designProperty.value.template, (item, index) => {
|
|
64
|
-
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
65
|
-
key: item,
|
|
66
|
-
onClick: ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click", { menuItem: item })
|
|
67
|
-
}, {
|
|
68
|
-
default: withCtx(() => [
|
|
69
|
-
createTextVNode(toDisplayString(unref($t)(item.label)), 1)
|
|
70
|
-
]),
|
|
71
|
-
_: 2
|
|
72
|
-
}, 1032, ["onClick"]);
|
|
73
|
-
}), 128))
|
|
74
|
-
]),
|
|
75
|
-
_: 1
|
|
76
|
-
})
|
|
77
|
-
]),
|
|
78
|
-
default: withCtx(() => [
|
|
79
|
-
designProperty.value.triggerElement === "button" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
80
|
-
!designProperty.value.splitButton ? (openBlock(), createBlock(_component_el_button, {
|
|
81
|
-
key: 0,
|
|
82
|
-
size: designProperty.value.size,
|
|
83
|
-
type: designProperty.value.buttonType,
|
|
84
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick"))
|
|
85
|
-
}, {
|
|
86
|
-
default: withCtx(() => [
|
|
87
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)), 1)
|
|
88
|
-
]),
|
|
89
|
-
_: 1
|
|
90
|
-
}, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(unref($t)(designProperty.value.title)), 1))
|
|
91
|
-
], 64)) : (openBlock(), createBlock(_component_el_text, { key: 1 }, {
|
|
92
|
-
default: withCtx(() => [
|
|
93
|
-
createTextVNode(toDisplayString(unref($t)(designProperty.value.title)) + " ", 1),
|
|
94
|
-
createVNode(_component_el_icon, null, {
|
|
95
|
-
default: withCtx(() => [
|
|
96
|
-
createVNode(_component_ArrowDown)
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
})
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
}))
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
}, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]));
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
});
|
|
14
|
+
}), (e3, t2) => {
|
|
15
|
+
const l2 = u("el-button"), n2 = u("ArrowDown"), y2 = u("el-icon"), _3 = u("el-text"), w2 = u("el-dropdown-item"), T = u("el-dropdown-menu"), h = u("el-dropdown");
|
|
16
|
+
return j.value ? (o(), a(h, { key: 1, ref_key: "componentRef", ref: R, class: i(p(D)), style: r(p(B)), placement: z.value.placement, "split-button": z.value.splitButton, disabled: "disabled" === z.value.state, type: z.value.buttonType, size: z.value.size, trigger: z.value.trigger }, { dropdown: s(() => [g(T, null, { default: s(() => [(o(true), c(m, null, f(z.value.template, (t3, l3) => (o(), a(w2, { key: t3, onClick: (l4) => p(b)(l4, e3.pageContext, e3.configure, "click", { menuItem: t3 }) }, { default: s(() => [v(d(p(C)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: s(() => ["button" === z.value.triggerElement ? (o(), c(m, { key: 0 }, [z.value.splitButton ? (o(), c("span", x, d(p(C)(z.value.title)), 1)) : (o(), a(l2, { key: 0, size: z.value.size, type: z.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => p(b)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: s(() => [v(d(p(C)(z.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (o(), a(_3, { key: 1 }, { default: s(() => [v(d(p(C)(z.value.title)) + " ", 1), g(y2, null, { default: s(() => [g(n2)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (o(), a(k, { key: 0, configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]));
|
|
17
|
+
};
|
|
18
|
+
} });
|
|
109
19
|
export {
|
|
110
|
-
|
|
20
|
+
_ as default
|
|
111
21
|
};
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -1,201 +1,57 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, watch, openBlock, createElementBlock, normalizeStyle, unref, normalizeClass, withDirectives, createVNode, vShow } from "vue";
|
|
2
|
-
import { getCustomTheme, initChartOption, monitorChartClickToVariable, clearChartSelected, exportCommonChart } from "../../../../utils/charts/chart-util.js";
|
|
3
|
-
import { getChartDatasFromPage, updateChartDatasources, monitorFieldChange } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { updateChartOption } from "../../../../utils/charts/chart-columnline-util.js";
|
|
5
|
-
import { doClickJumpPageEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import
|
|
7
|
-
import { use } from "echarts/core";
|
|
8
|
-
import { CanvasRenderer } from "echarts/renderers";
|
|
9
|
-
import { LineChart, BarChart } from "echarts/charts";
|
|
10
|
-
import { GridComponent, LegendComponent, TitleComponent, TooltipComponent, ToolboxComponent, DataZoomComponent } from "echarts/components";
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
props: {
|
|
15
|
-
|
|
16
|
-
configure
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
LineChart,
|
|
22
|
-
GridComponent,
|
|
23
|
-
LegendComponent,
|
|
24
|
-
TitleComponent,
|
|
25
|
-
TooltipComponent,
|
|
26
|
-
BarChart,
|
|
27
|
-
ToolboxComponent,
|
|
28
|
-
DataZoomComponent
|
|
29
|
-
]);
|
|
30
|
-
const props = __props;
|
|
31
|
-
const thisRef = ref(null);
|
|
32
|
-
const chartRef = ref();
|
|
33
|
-
const headerRef = ref(null);
|
|
34
|
-
const enableDrill = props.configure.props ? props.configure.props.enableDrill : null;
|
|
35
|
-
const drillEndTrigger = props.configure.props ? props.configure.props.drillEndTrigger : null;
|
|
36
|
-
const linkPage = props.configure.props ? props.configure.props.linkPage : null;
|
|
37
|
-
const linkConfigureMap = {};
|
|
38
|
-
if (props.configure.items) {
|
|
39
|
-
for (const item of props.configure.items) {
|
|
40
|
-
if (item.props && item.props.linkPage && item.props.linkPage.jumpPageUrl) {
|
|
41
|
-
linkConfigureMap[item.uuid] = item;
|
|
42
|
-
} else if (linkPage && linkPage.jumpPageUrl) {
|
|
43
|
-
linkConfigureMap[item.uuid] = props.configure;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
48
|
-
const runtimeStyle = runtimeInfo.style;
|
|
49
|
-
const runtimeClass = runtimeInfo.class;
|
|
50
|
-
const dataConfig = runtimeInfo.dataConfig;
|
|
51
|
-
const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
|
|
52
|
-
const chartOption = runtimeInfo.chartOption;
|
|
53
|
-
const configureProps = props.configure.props ? props.configure.props : {};
|
|
54
|
-
const customTheme = getCustomTheme(configureProps.customTheme);
|
|
55
|
-
initChartOption(props.configure, chartOption);
|
|
56
|
-
onMounted(() => {
|
|
57
|
-
const resultData = getChartDatasFromPage(props.pageContext, props.configure);
|
|
58
|
-
if (resultData) {
|
|
59
|
-
updateChartDatas(resultData);
|
|
60
|
-
}
|
|
61
|
-
if (chartRef.value && (enableDrill || Object.keys(linkConfigureMap).length > 0)) {
|
|
62
|
-
chartRef.value.chart.on("click", function(params) {
|
|
63
|
-
if (enableDrill) {
|
|
64
|
-
if (headerRef.value && headerRef.value.drill) {
|
|
65
|
-
headerRef.value.drill(params, props.configure.cacheDatas);
|
|
66
|
-
}
|
|
67
|
-
} else {
|
|
68
|
-
clickToLink(params);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
if (!enableDrill && props.configure.clickSet && chartRef.value) {
|
|
73
|
-
monitorChartClickToVariable(props.pageContext, props.configure, chartRef.value.chart);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
function onDrillEnd(params) {
|
|
77
|
-
if (drillEndTrigger == "clearDrill") {
|
|
78
|
-
if (headerRef.value && headerRef.value.closeDrill) {
|
|
79
|
-
headerRef.value.closeDrill(0);
|
|
80
|
-
}
|
|
81
|
-
} else if (drillEndTrigger === "clickEvent") {
|
|
82
|
-
clickToLink(params);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function clickToLink(clickParams) {
|
|
86
|
-
console.log("clik0", clickParams);
|
|
87
|
-
if (clickParams.seriesIndex >= chartOption.series.length) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
console.log("clik1", clickParams);
|
|
91
|
-
const selSerieUuid = chartOption.series[clickParams.seriesIndex].uuid;
|
|
92
|
-
console.log("clik2", selSerieUuid);
|
|
93
|
-
const linkConfigure = linkConfigureMap[selSerieUuid];
|
|
94
|
-
console.log("clik3", linkConfigure);
|
|
95
|
-
if (!linkConfigure) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
const params = {
|
|
99
|
-
data: clickParams.data,
|
|
100
|
-
dataIndex: clickParams.dataIndex,
|
|
101
|
-
name: clickParams.name,
|
|
102
|
-
seriesId: clickParams.seriesId,
|
|
103
|
-
seriesIndex: clickParams.seriesIndex,
|
|
104
|
-
seriesName: clickParams.seriesName,
|
|
105
|
-
seriesType: clickParams.seriesType,
|
|
106
|
-
value: clickParams.value
|
|
107
|
-
};
|
|
108
|
-
doClickJumpPageEvent(props.pageContext, linkConfigure, params);
|
|
109
|
-
}
|
|
110
|
-
let hisGroupValue = headerInfo.groupValue;
|
|
111
|
-
watch(headerInfo, () => {
|
|
112
|
-
if (hisGroupValue == headerInfo.groupValue) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
hisGroupValue = headerInfo.groupValue;
|
|
116
|
-
if (dataConfig) {
|
|
117
|
-
dataConfig.services[0].groupValue = headerInfo.groupValue;
|
|
118
|
-
}
|
|
119
|
-
refresh(false);
|
|
120
|
-
});
|
|
121
|
-
function refresh(isHandle) {
|
|
122
|
-
if (!dataConfig) {
|
|
123
|
-
console.log("无数据源配置,不需要查询!");
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
if (isHandle !== true) {
|
|
127
|
-
dataConfig.autoRefresh = true;
|
|
128
|
-
}
|
|
129
|
-
updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
|
|
130
|
-
}
|
|
131
|
-
const monitorFields = headerInfo.monitorFields;
|
|
132
|
-
monitorFieldChange(props.pageContext, monitorFields, () => {
|
|
133
|
-
refresh(true);
|
|
134
|
-
});
|
|
135
|
-
function updateChartDatas(resultData) {
|
|
136
|
-
var _a;
|
|
137
|
-
if (!resultData) {
|
|
138
|
-
resultData = [];
|
|
139
|
-
}
|
|
140
|
-
resultData = resultData.length > 0 ? resultData[0] : {};
|
|
141
|
-
if (!resultData) {
|
|
142
|
-
resultData = {};
|
|
143
|
-
}
|
|
144
|
-
if (resultData.hasRender) {
|
|
145
|
-
resultData.hasRender = true;
|
|
146
|
-
console.log("重复更新!", resultData);
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
resultData.hasRender = true;
|
|
150
|
-
if (!dataConfig.autoRefresh) {
|
|
151
|
-
hisGroupValue = resultData.groupValue;
|
|
152
|
-
if (hisGroupValue && headerInfo.groupComponent !== "checkbox") {
|
|
153
|
-
hisGroupValue = hisGroupValue.join(",");
|
|
154
|
-
}
|
|
155
|
-
headerInfo.groupValue = hisGroupValue;
|
|
156
|
-
}
|
|
157
|
-
if (!dataConfig.autoRefresh || !enableDrill) {
|
|
158
|
-
clearChartSelected(props.pageContext, props.configure, (_a = chartRef.value) == null ? void 0 : _a.chart);
|
|
159
|
-
}
|
|
160
|
-
dataConfig.autoRefresh = false;
|
|
161
|
-
updateChartOption(props.pageContext, props.configure, chartOption, resultData);
|
|
162
|
-
}
|
|
163
|
-
function exportChart() {
|
|
164
|
-
exportCommonChart(chartRef.value);
|
|
165
|
-
}
|
|
166
|
-
__expose({
|
|
167
|
-
updateChartDatas,
|
|
168
|
-
exportChart,
|
|
169
|
-
chartOption
|
|
170
|
-
});
|
|
171
|
-
return (_ctx, _cache) => {
|
|
172
|
-
return openBlock(), createElementBlock("div", {
|
|
173
|
-
style: normalizeStyle(unref(runtimeStyle)),
|
|
174
|
-
class: normalizeClass([unref(runtimeClass), "amb-widget-chart"]),
|
|
175
|
-
ref_key: "thisRef",
|
|
176
|
-
ref: thisRef
|
|
177
|
-
}, [
|
|
178
|
-
withDirectives(createVNode(_sfc_main$1, {
|
|
179
|
-
ref_key: "headerRef",
|
|
180
|
-
ref: headerRef,
|
|
181
|
-
headerInfo: unref(headerInfo),
|
|
182
|
-
configure: _ctx.configure,
|
|
183
|
-
pageContext: _ctx.pageContext,
|
|
184
|
-
onDrillEnd
|
|
185
|
-
}, null, 8, ["headerInfo", "configure", "pageContext"]), [
|
|
186
|
-
[vShow, unref(headerInfo).showHeader]
|
|
187
|
-
]),
|
|
188
|
-
createVNode(unref(VChart), {
|
|
189
|
-
ref_key: "chartRef",
|
|
190
|
-
ref: chartRef,
|
|
191
|
-
theme: unref(customTheme),
|
|
192
|
-
option: unref(chartOption),
|
|
193
|
-
autoresize: ""
|
|
194
|
-
}, null, 8, ["theme", "option"])
|
|
195
|
-
], 6);
|
|
196
|
-
};
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, openBlock as n, createElementBlock as a, normalizeStyle as i, unref as u, normalizeClass as s, withDirectives as l, createVNode as c, vShow as p } from "vue";
|
|
2
|
+
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as m, clearChartSelected as h, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
|
+
import { getChartDatasFromPage as v, updateChartDatasources as x, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { updateChartOption as I } from "../../../../utils/charts/chart-columnline-util.js";
|
|
5
|
+
import { doClickJumpPageEvent as k } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import R from "../common/common-chart-header.vue.js";
|
|
7
|
+
import { use as j } from "echarts/core";
|
|
8
|
+
import { CanvasRenderer as y } from "echarts/renderers";
|
|
9
|
+
import { LineChart as D, BarChart as V } from "echarts/charts";
|
|
10
|
+
import { GridComponent as P, LegendComponent as _, TitleComponent as b, TooltipComponent as T, ToolboxComponent as E, DataZoomComponent as O } from "echarts/components";
|
|
11
|
+
import w from "vue-echarts";
|
|
12
|
+
const N = e({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: N2 }) {
|
|
13
|
+
j([y, D, P, _, b, T, V, E, O]);
|
|
14
|
+
const U = e2, z = r(null), F = r(), H = r(null), S = U.configure.props ? U.configure.props.enableDrill : null, q = U.configure.props ? U.configure.props.drillEndTrigger : null, A = U.configure.props ? U.configure.props.linkPage : null, B = {};
|
|
15
|
+
if (U.configure.items)
|
|
16
|
+
for (const e3 of U.configure.items)
|
|
17
|
+
e3.props && e3.props.linkPage && e3.props.linkPage.jumpPageUrl ? B[e3.uuid] = e3 : A && A.jumpPageUrl && (B[e3.uuid] = U.configure);
|
|
18
|
+
const G = U.configure.runtime ? U.configure.runtime : {}, J = G.style, K = G.class, L = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = G.chartOption, W = U.configure.props ? U.configure.props : {}, X = f(W.customTheme);
|
|
19
|
+
function Y(e3) {
|
|
20
|
+
"clearDrill" == q ? H.value && H.value.closeDrill && H.value.closeDrill(0) : "clickEvent" === q && Z(e3);
|
|
197
21
|
}
|
|
198
|
-
|
|
22
|
+
function Z(e3) {
|
|
23
|
+
if (e3.seriesIndex >= Q.series.length)
|
|
24
|
+
return;
|
|
25
|
+
const r2 = Q.series[e3.seriesIndex].uuid, o2 = B[r2];
|
|
26
|
+
if (!o2)
|
|
27
|
+
return;
|
|
28
|
+
const t2 = { data: e3.data, dataIndex: e3.dataIndex, name: e3.name, seriesId: e3.seriesId, seriesIndex: e3.seriesIndex, seriesName: e3.seriesName, seriesType: e3.seriesType, value: e3.value };
|
|
29
|
+
k(U.pageContext, o2, t2);
|
|
30
|
+
}
|
|
31
|
+
g(U.configure, Q), o(() => {
|
|
32
|
+
const e3 = v(U.pageContext, U.configure);
|
|
33
|
+
e3 && oe(e3), F.value && (S || Object.keys(B).length > 0) && F.value.chart.on("click", function(e4) {
|
|
34
|
+
S ? H.value && H.value.drill && H.value.drill(e4, U.configure.cacheDatas) : Z(e4);
|
|
35
|
+
}), !S && U.configure.clickSet && F.value && m(U.pageContext, U.configure, F.value.chart);
|
|
36
|
+
});
|
|
37
|
+
let $ = M.groupValue;
|
|
38
|
+
function ee(e3) {
|
|
39
|
+
L && (true !== e3 && (L.autoRefresh = true), x(U.pageContext, [L], M.drillParams));
|
|
40
|
+
}
|
|
41
|
+
t(M, () => {
|
|
42
|
+
$ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
|
|
43
|
+
});
|
|
44
|
+
const re = M.monitorFields;
|
|
45
|
+
function oe(e3) {
|
|
46
|
+
var _a;
|
|
47
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && S || h(U.pageContext, U.configure, (_a = F.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(U.pageContext, U.configure, Q, e3));
|
|
48
|
+
}
|
|
49
|
+
return C(U.pageContext, re, () => {
|
|
50
|
+
ee(true);
|
|
51
|
+
}), N2({ updateChartDatas: oe, exportChart: function() {
|
|
52
|
+
d(F.value);
|
|
53
|
+
}, chartOption: Q }), (e3, r2) => (n(), a("div", { style: i(u(J)), class: s([u(K), "amb-widget-chart"]), ref_key: "thisRef", ref: z }, [l(c(R, { ref_key: "headerRef", ref: H, headerInfo: u(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, u(M).showHeader]]), c(u(w), { ref_key: "chartRef", ref: F, theme: u(X), option: u(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
54
|
+
} });
|
|
199
55
|
export {
|
|
200
|
-
|
|
56
|
+
N as default
|
|
201
57
|
};
|
|
@@ -1,44 +1,14 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { ArrowRight } from "@element-plus/icons-vue";
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
setup(__props, { emit: __emit }) {
|
|
13
|
-
const $emits = __emit;
|
|
14
|
-
function closeDrill(drillIndex) {
|
|
15
|
-
$emits("close-drill", drillIndex);
|
|
16
|
-
}
|
|
17
|
-
return (_ctx, _cache) => {
|
|
18
|
-
const _component_el_tag = resolveComponent("el-tag");
|
|
19
|
-
const _component_el_breadcrumb = resolveComponent("el-breadcrumb");
|
|
20
|
-
return openBlock(), createBlock(_component_el_breadcrumb, { "separator-icon": unref(ArrowRight) }, {
|
|
21
|
-
default: withCtx(() => [
|
|
22
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headerInfo.drillOptions, (tag, index) => {
|
|
23
|
-
return openBlock(), createBlock(_component_el_tag, {
|
|
24
|
-
key: tag.name,
|
|
25
|
-
closable: "",
|
|
26
|
-
type: "success",
|
|
27
|
-
style: { "margin-left": "4px" },
|
|
28
|
-
onClose: ($event) => closeDrill(index)
|
|
29
|
-
}, {
|
|
30
|
-
default: withCtx(() => [
|
|
31
|
-
createTextVNode(toDisplayString(tag.label), 1)
|
|
32
|
-
]),
|
|
33
|
-
_: 2
|
|
34
|
-
}, 1032, ["onClose"]);
|
|
35
|
-
}), 128))
|
|
36
|
-
]),
|
|
37
|
-
_: 1
|
|
38
|
-
}, 8, ["separator-icon"]);
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
});
|
|
1
|
+
import { defineComponent as e, resolveComponent as r, openBlock as o, createBlock as l, unref as t, withCtx as s, createElementBlock as a, Fragment as n, renderList as c, createTextVNode as m, toDisplayString as u } from "vue";
|
|
2
|
+
import { ArrowRight as i } from "@element-plus/icons-vue";
|
|
3
|
+
const p = e({ __name: "common-chart-header-breadcrumb", props: { headerInfo: { type: Object, required: true } }, emits: ["close-drill"], setup(e2, { emit: p2 }) {
|
|
4
|
+
const d = p2;
|
|
5
|
+
return (p3, f) => {
|
|
6
|
+
const b = r("el-tag"), h = r("el-breadcrumb");
|
|
7
|
+
return o(), l(h, { "separator-icon": t(i) }, { default: s(() => [(o(true), a(n, null, c(e2.headerInfo.drillOptions, (e3, r2) => (o(), l(b, { key: e3.name, closable: "", type: "success", style: { "margin-left": "4px" }, onClose: (e4) => {
|
|
8
|
+
d("close-drill", r2);
|
|
9
|
+
} }, { default: s(() => [m(u(e3.label), 1)]), _: 2 }, 1032, ["onClose"]))), 128))]), _: 1 }, 8, ["separator-icon"]);
|
|
10
|
+
};
|
|
11
|
+
} });
|
|
42
12
|
export {
|
|
43
|
-
|
|
13
|
+
p as default
|
|
44
14
|
};
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
CHANGED
|
@@ -1,62 +1,9 @@
|
|
|
1
|
-
import { defineComponent, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
required: true
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const props = __props;
|
|
12
|
-
watch(props.headerInfo, () => {
|
|
13
|
-
console.log("props.headerInfo", props.headerInfo);
|
|
14
|
-
});
|
|
15
|
-
return (_ctx, _cache) => {
|
|
16
|
-
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
17
|
-
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
18
|
-
const _component_el_radio = resolveComponent("el-radio");
|
|
19
|
-
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
20
|
-
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
21
|
-
return __props.headerInfo.groupComponent == "checkbox" ? (openBlock(), createBlock(_component_el_checkbox_group, {
|
|
22
|
-
key: 0,
|
|
23
|
-
modelValue: __props.headerInfo.groupValue,
|
|
24
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.headerInfo.groupValue = $event)
|
|
25
|
-
}, {
|
|
26
|
-
default: withCtx(() => [
|
|
27
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headerInfo.options, (o) => {
|
|
28
|
-
return openBlock(), createBlock(_component_el_checkbox, {
|
|
29
|
-
label: o.label,
|
|
30
|
-
value: o.value
|
|
31
|
-
}, null, 8, ["label", "value"]);
|
|
32
|
-
}), 256))
|
|
33
|
-
]),
|
|
34
|
-
_: 1
|
|
35
|
-
}, 8, ["modelValue"])) : __props.headerInfo.groupComponent == "radio" ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.headerInfo.options, (o) => {
|
|
36
|
-
return openBlock(), createBlock(_component_el_radio, {
|
|
37
|
-
modelValue: __props.headerInfo.groupValue,
|
|
38
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.headerInfo.groupValue = $event),
|
|
39
|
-
value: o.value,
|
|
40
|
-
label: o.label
|
|
41
|
-
}, null, 8, ["modelValue", "value", "label"]);
|
|
42
|
-
}), 256)) : (openBlock(), createBlock(_component_el_radio_group, {
|
|
43
|
-
key: 2,
|
|
44
|
-
modelValue: __props.headerInfo.groupValue,
|
|
45
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.headerInfo.groupValue = $event)
|
|
46
|
-
}, {
|
|
47
|
-
default: withCtx(() => [
|
|
48
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headerInfo.options, (o) => {
|
|
49
|
-
return openBlock(), createBlock(_component_el_radio_button, {
|
|
50
|
-
label: o.label,
|
|
51
|
-
value: o.value
|
|
52
|
-
}, null, 8, ["label", "value"]);
|
|
53
|
-
}), 256))
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
|
-
}, 8, ["modelValue"]));
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
});
|
|
1
|
+
import { defineComponent as e, watch as l, resolveComponent as o, openBlock as a, createBlock as u, withCtx as r, createElementBlock as d, Fragment as n, renderList as p } from "vue";
|
|
2
|
+
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
|
|
3
|
+
}), (l2, t2) => {
|
|
4
|
+
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
|
|
5
|
+
return "checkbox" == e2.headerInfo.groupComponent ? (a(), u(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: r(() => [(a(true), d(n, null, p(e2.headerInfo.options, (e3) => (a(), u(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (a(true), d(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (a(), u(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[1] || (t2[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (a(), u(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: r(() => [(a(true), d(n, null, p(e2.headerInfo.options, (e3) => (a(), u(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
6
|
+
}) });
|
|
60
7
|
export {
|
|
61
|
-
|
|
8
|
+
t as default
|
|
62
9
|
};
|