super-page-designer 2.0.9 → 2.0.17
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 +85 -55
- package/dist/es/components/design/utils/chart-design-util.js +203 -160
- package/dist/es/components/design/utils/form-design-util.d.ts +5 -4
- package/dist/es/components/design/utils/form-design-util.js +55 -153
- package/dist/es/components/design/utils/interfaces/page-design-types.d.ts +0 -1
- package/dist/es/components/design/utils/page-design-util.d.ts +2 -1
- package/dist/es/components/design/utils/page-design-util.js +8 -2
- package/dist/es/components/design/utils/page-service-util.d.ts +15 -0
- package/dist/es/components/design/utils/page-service-util.js +5 -0
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +19 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-event.vue.js +6 -3
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-base.vue.js +6 -3
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-style.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +7 -3
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-style.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +68 -3
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +94 -16
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-serieslist.vue.js +12 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-sortby.vue.js +30 -13
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dataset-columnline.vue.js +21 -3
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dynamic.vue.js +12 -66
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-base.vue.js +20 -12
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +318 -0
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-style.vue.js +5 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +34 -15
- package/dist/es/components/design/views/assemblys/chart/gauge/series/gauge-series-attr-base.vue.js +4 -19
- package/dist/es/components/design/views/assemblys/chart/gauge/series/gauge-series-attr-style.vue.js +5 -2
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr-base.vue.js +18 -5
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr-style.vue.js +5 -2
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +34 -16
- package/dist/es/components/design/views/assemblys/chart/pie/series/pie-series-attr-base.vue.js +4 -22
- package/dist/es/components/design/views/assemblys/chart/pie/series/pie-series-attr-style.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-base.vue.js +23 -9
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +318 -0
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-style.vue.js +25 -12
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +37 -13
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-base.vue.js +4 -17
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-dataset.vue.js +82 -256
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-style.vue.js +12 -17
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-base.vue.js +23 -13
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +205 -0
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-style.vue.js +5 -7
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +35 -12
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-attr-base.vue.js +6 -77
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-attr-style.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-data.vue.js +191 -0
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-data.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-event.vue.js +30 -0
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +186 -0
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +28 -4
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +11 -169
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/custom/custom-design.vue2.js +3 -12
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +33 -10
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue2.js +10 -1
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +15 -3
- package/dist/es/components/design/views/assemblys/object-design.vue.js +52 -77
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +2 -2
- package/dist/es/components/design/views/design/page-design.vue.d.ts +13 -1
- package/dist/es/components/design/views/design/page-design.vue.js +218 -100
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +19 -9
- package/dist/es/components/design/views/design/view/page-switch.vue.d.ts +18 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.js +7 -0
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +185 -0
- package/dist/es/components/design/views/design/view/page-switch.vue3.js +1 -0
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +2 -2
- package/dist/es/components/design/views/design/view/view-design.vue.js +7 -9
- package/dist/es/style.css +350 -133
- package/package.json +7 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-drill.vue.js +0 -108
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-drill.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dataset.vue.js +0 -166
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dataset.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/chart/gauge/series/gauge-series-attr-dataset.vue.js +0 -153
- package/dist/es/components/design/views/assemblys/chart/gauge/series/gauge-series-attr-dataset.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/chart/radar/series/attrs/attr-testdatas.vue.js +0 -58
- package/dist/es/components/design/views/assemblys/chart/radar/series/attrs/attr-testdatas.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/form/common/linkpage-params-in.vue.js +0 -154
- package/dist/es/components/design/views/assemblys/form/common/linkpage-params-in.vue2.js +0 -4
- package/dist/es/components/design/views/assemblys/form/common/title.vue.js +0 -45
- package/dist/es/components/design/views/assemblys/form/common/title.vue2.js +0 -4
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, openBlock, createElementBlock, normalizeStyle, normalizeClass, withModifiers, createVNode,
|
|
1
|
+
import { defineComponent, ref, watch, onUnmounted, openBlock, createElementBlock, normalizeStyle, normalizeClass, withModifiers, withDirectives, createVNode, vShow, unref, createElementVNode, Fragment, renderList, toDisplayString } from "vue";
|
|
2
2
|
import { caculateComponentStyle } from "../../../../utils/container-design-util.js";
|
|
3
|
-
import { generateChartOption } from "../../../../utils/chart-design-util.js";
|
|
3
|
+
import { removComponentDataConfig, generateChartHeader, generateChartOption, initComponentDataConfig } from "../../../../utils/chart-design-util.js";
|
|
4
|
+
import { getUuidv4 } from "../../../../utils/common-util.js";
|
|
4
5
|
import { getCustomTheme } from "super-page-runtime";
|
|
5
|
-
import _sfc_main$
|
|
6
|
+
import _sfc_main$2 from "./series/series-attr.vue.js";
|
|
7
|
+
import _sfc_main$1 from "../common/common-chart-header.vue.js";
|
|
6
8
|
import { use } from "echarts/core";
|
|
7
9
|
import { CanvasRenderer } from "echarts/renderers";
|
|
8
10
|
import { RadarChart } from "echarts/charts";
|
|
@@ -13,12 +15,10 @@ const _hoisted_2 = ["onClick"];
|
|
|
13
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
16
|
__name: "radar-design",
|
|
15
17
|
props: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
indexObj: Object,
|
|
21
|
-
selectWidget: Object
|
|
18
|
+
pageDesign: {},
|
|
19
|
+
configure: {},
|
|
20
|
+
indexObj: {},
|
|
21
|
+
selectWidget: {}
|
|
22
22
|
},
|
|
23
23
|
emits: ["onSelectWidget", "onCustomAttrWidget"],
|
|
24
24
|
setup(__props, { emit: __emit }) {
|
|
@@ -32,10 +32,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
}
|
|
33
33
|
if (props.configure.items.length == 0) {
|
|
34
34
|
props.configure.items.push({
|
|
35
|
+
uuid: getUuidv4(),
|
|
36
|
+
name: "",
|
|
35
37
|
index: 1,
|
|
36
38
|
type: "radar",
|
|
39
|
+
label: "数据1",
|
|
37
40
|
props: {
|
|
38
|
-
title: "
|
|
41
|
+
title: "数据1"
|
|
39
42
|
},
|
|
40
43
|
style: {}
|
|
41
44
|
});
|
|
@@ -47,6 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
50
|
const designClass = ref("");
|
|
48
51
|
const customTheme = ref(null);
|
|
49
52
|
const chartOption = ref({});
|
|
53
|
+
const headerInfo = ref({});
|
|
50
54
|
watch(
|
|
51
55
|
props.configure.style,
|
|
52
56
|
() => {
|
|
@@ -55,21 +59,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
59
|
},
|
|
56
60
|
{ immediate: true }
|
|
57
61
|
);
|
|
62
|
+
function updateDataConfig() {
|
|
63
|
+
const dataConfig = initComponentDataConfig(props.configure, headerInfo.value);
|
|
64
|
+
props.configure.runtime.dataConfig = dataConfig;
|
|
65
|
+
}
|
|
58
66
|
watch(props.configure.props, () => {
|
|
59
67
|
customChartOption();
|
|
68
|
+
updateDataConfig();
|
|
60
69
|
});
|
|
61
70
|
watch(props.configure.items, () => {
|
|
62
71
|
customChartOption();
|
|
63
72
|
});
|
|
73
|
+
setTimeout(() => {
|
|
74
|
+
updateDataConfig();
|
|
75
|
+
}, 100);
|
|
76
|
+
onUnmounted(() => {
|
|
77
|
+
removComponentDataConfig(props.configure);
|
|
78
|
+
});
|
|
64
79
|
function customCaculateStyle() {
|
|
65
80
|
caculateComponentStyle(props.configure, designStyle, designClass, null);
|
|
66
81
|
props.configure.runtime.style = designStyle.value;
|
|
67
82
|
props.configure.runtime.class = designClass.value;
|
|
83
|
+
headerInfo.value = generateChartHeader(props.configure);
|
|
84
|
+
props.configure.runtime.headerInfo = headerInfo.value;
|
|
68
85
|
}
|
|
69
86
|
function customChartOption() {
|
|
70
87
|
generateChartOption(props.configure, chartOption);
|
|
88
|
+
headerInfo.value = generateChartHeader(props.configure);
|
|
71
89
|
customTheme.value = getCustomTheme(props.configure.props.customTheme);
|
|
72
90
|
props.configure.runtime.chartOption = chartOption.value;
|
|
91
|
+
props.configure.runtime.headerInfo = headerInfo.value;
|
|
73
92
|
}
|
|
74
93
|
if (props.selectWidget) {
|
|
75
94
|
watch(props.selectWidget, () => {
|
|
@@ -102,8 +121,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
121
|
break;
|
|
103
122
|
}
|
|
104
123
|
}
|
|
124
|
+
selItem.serviceFields = props.configure.serviceFields;
|
|
125
|
+
selItem.serviceDataField = props.configure.serviceDataField;
|
|
105
126
|
selItem.selected = true;
|
|
106
|
-
$emits("onCustomAttrWidget", selItem, _sfc_main$
|
|
127
|
+
$emits("onCustomAttrWidget", selItem, _sfc_main$2);
|
|
107
128
|
}
|
|
108
129
|
const $emits = __emit;
|
|
109
130
|
return (_ctx, _cache) => {
|
|
@@ -113,6 +134,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
113
134
|
onClick: withModifiers(selectParent, ["stop"]),
|
|
114
135
|
ref: "thisRef"
|
|
115
136
|
}, [
|
|
137
|
+
withDirectives(createVNode(_sfc_main$1, { headerInfo: headerInfo.value }, null, 8, ["headerInfo"]), [
|
|
138
|
+
[vShow, headerInfo.value.showHeader]
|
|
139
|
+
]),
|
|
116
140
|
createVNode(unref(VChart), {
|
|
117
141
|
ref: "chartRef",
|
|
118
142
|
theme: customTheme.value,
|
|
@@ -120,14 +144,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
144
|
autoresize: ""
|
|
121
145
|
}, null, 8, ["theme", "option"]),
|
|
122
146
|
withDirectives(createElementVNode("div", _hoisted_1, [
|
|
123
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
147
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.configure.items, (item, itemIndex) => {
|
|
124
148
|
return openBlock(), createElementBlock("label", {
|
|
125
149
|
class: normalizeClass([[item.selected ? "amb-design-chart-series-selected" : ""], "amb-design-chart-series"]),
|
|
126
150
|
onClick: withModifiers(($event) => selectSeries($event, itemIndex), ["stop"])
|
|
127
151
|
}, toDisplayString(item.props.title), 11, _hoisted_2);
|
|
128
152
|
}), 256))
|
|
129
153
|
], 512), [
|
|
130
|
-
[vShow,
|
|
154
|
+
[vShow, _ctx.configure.componentIndex == _ctx.selectWidget.value]
|
|
131
155
|
])
|
|
132
156
|
], 6);
|
|
133
157
|
};
|
package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-base.vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode } from "vue";
|
|
2
2
|
import _sfc_main$1 from "./series-attr-dataset.vue.js";
|
|
3
|
-
import _sfc_main$2 from "
|
|
3
|
+
import _sfc_main$2 from "../../common-series/common-attr-testdatas.vue.js";
|
|
4
4
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "series-attr-base",
|
|
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
default: withCtx(() => [
|
|
26
26
|
createVNode(_component_el_collapse, {
|
|
27
27
|
modelValue: openCollapseItems.value,
|
|
28
|
-
"onUpdate:modelValue": _cache[
|
|
28
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => openCollapseItems.value = $event),
|
|
29
29
|
style: { "margin-top": "6px" }
|
|
30
30
|
}, {
|
|
31
31
|
default: withCtx(() => [
|
|
@@ -37,8 +37,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
default: withCtx(() => [
|
|
38
38
|
createElementVNode("div", _hoisted_1, [
|
|
39
39
|
createVNode(_component_el_form_item, {
|
|
40
|
-
label: "
|
|
41
|
-
style: { "margin-top": "4px" }
|
|
40
|
+
label: "数据名称",
|
|
41
|
+
style: { "margin-top": "4px", "margin-bottom": "-15px" }
|
|
42
42
|
}, {
|
|
43
43
|
default: withCtx(() => [
|
|
44
44
|
createVNode(_component_el_input, {
|
|
@@ -48,19 +48,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
}, null, 8, ["modelValue"])
|
|
49
49
|
]),
|
|
50
50
|
_: 1
|
|
51
|
-
}),
|
|
52
|
-
createVNode(_component_el_form_item, {
|
|
53
|
-
label: "副标题",
|
|
54
|
-
style: { "margin-top": "-10px", "margin-bottom": "-15px" }
|
|
55
|
-
}, {
|
|
56
|
-
default: withCtx(() => [
|
|
57
|
-
createVNode(_component_el_input, {
|
|
58
|
-
modelValue: __props.configure.props.subTitle,
|
|
59
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.props.subTitle = $event),
|
|
60
|
-
placeholder: "请输入"
|
|
61
|
-
}, null, 8, ["modelValue"])
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
51
|
})
|
|
65
52
|
])
|
|
66
53
|
]),
|
package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-dataset.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode,
|
|
2
|
-
import { Search, Plus } from "@element-plus/icons-vue";
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createElementBlock, Fragment, renderList, toDisplayString } from "vue";
|
|
3
2
|
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
4
|
-
const _hoisted_2 = { style: { "
|
|
3
|
+
const _hoisted_2 = { style: { "float": "left" } };
|
|
4
|
+
const _hoisted_3 = { style: { "float": "right", "color": "var(--el-text-color-secondary)", "font-size": "13px" } };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "series-attr-dataset",
|
|
7
7
|
props: {
|
|
@@ -11,21 +11,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const sourceFields = ref([]);
|
|
16
|
+
let hisServiceFields = null;
|
|
17
|
+
let hisServiceDataField = null;
|
|
18
|
+
function updateBindFields() {
|
|
19
|
+
if (props.configure.serviceFields == hisServiceFields && props.configure.serviceDataField == hisServiceDataField) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
hisServiceFields = props.configure.serviceFields;
|
|
23
|
+
hisServiceDataField = props.configure.serviceDataField;
|
|
24
|
+
const newFields = [];
|
|
25
|
+
if (hisServiceFields) {
|
|
26
|
+
const prevField = hisServiceDataField ? hisServiceDataField : "";
|
|
27
|
+
for (let f of hisServiceFields) {
|
|
28
|
+
if (!(!f.type || f.type == "any" || f.type == "number")) {
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (!prevField || f.value.startsWith(prevField + ".")) {
|
|
32
|
+
const tempField = {};
|
|
33
|
+
Object.assign(tempField, f);
|
|
34
|
+
if (prevField) {
|
|
35
|
+
const newValue = f.value.substring(prevField.length + 1);
|
|
36
|
+
tempField.value = newValue;
|
|
37
|
+
if (f.label) {
|
|
38
|
+
tempField.label = f.label.replace(prevField + ".", "");
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
newFields.push(tempField);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
sourceFields.value = newFields;
|
|
46
|
+
}
|
|
47
|
+
updateBindFields();
|
|
14
48
|
return (_ctx, _cache) => {
|
|
15
|
-
const
|
|
16
|
-
const _component_el_input = resolveComponent("el-input");
|
|
17
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
49
|
+
const _component_el_radio = resolveComponent("el-radio");
|
|
18
50
|
const _component_el_option = resolveComponent("el-option");
|
|
19
51
|
const _component_el_select = resolveComponent("el-select");
|
|
20
|
-
const
|
|
21
|
-
const _component_el_divider = resolveComponent("el-divider");
|
|
22
|
-
const _component_Top = resolveComponent("Top");
|
|
23
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
24
|
-
const _component_Bottom = resolveComponent("Bottom");
|
|
25
|
-
const _component_el_table_column = resolveComponent("el-table-column");
|
|
26
|
-
const _component_Delete = resolveComponent("Delete");
|
|
27
|
-
const _component_el_table = resolveComponent("el-table");
|
|
28
|
-
const _component_el_radio = resolveComponent("el-radio");
|
|
52
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
29
53
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
30
54
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
31
55
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
@@ -36,269 +60,71 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
60
|
}, {
|
|
37
61
|
default: withCtx(() => [
|
|
38
62
|
createElementVNode("div", _hoisted_1, [
|
|
39
|
-
createVNode(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, {
|
|
43
|
-
default: withCtx(() => [
|
|
44
|
-
createVNode(_component_el_input, {
|
|
45
|
-
modelValue: __props.configure.props.serviceName,
|
|
46
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.props.serviceName = $event),
|
|
47
|
-
readonly: ""
|
|
48
|
-
}, {
|
|
49
|
-
append: withCtx(() => [
|
|
50
|
-
createVNode(_component_el_button, { icon: unref(Search) }, null, 8, ["icon"]),
|
|
51
|
-
createVNode(_component_el_button, { icon: unref(Plus) }, null, 8, ["icon"])
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}, 8, ["modelValue"])
|
|
55
|
-
]),
|
|
56
|
-
_: 1
|
|
57
|
-
}),
|
|
58
|
-
createVNode(_component_el_form_item, {
|
|
59
|
-
label: "数据集",
|
|
60
|
-
style: { "margin-top": "-5px" }
|
|
61
|
-
}, {
|
|
62
|
-
default: withCtx(() => [
|
|
63
|
-
createVNode(_component_el_select, {
|
|
64
|
-
modelValue: __props.configure.props.datasField,
|
|
65
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.props.datasField = $event),
|
|
66
|
-
placeholder: "根目录",
|
|
67
|
-
clearable: ""
|
|
68
|
-
}, {
|
|
69
|
-
default: withCtx(() => [
|
|
70
|
-
createVNode(_component_el_option, {
|
|
71
|
-
label: "data",
|
|
72
|
-
value: "root"
|
|
73
|
-
})
|
|
74
|
-
]),
|
|
75
|
-
_: 1
|
|
76
|
-
}, 8, ["modelValue"]),
|
|
77
|
-
createVNode(_component_el_text, {
|
|
78
|
-
type: "success",
|
|
79
|
-
size: "small"
|
|
80
|
-
}, {
|
|
81
|
-
default: withCtx(() => [
|
|
82
|
-
createTextVNode("默认为根目录")
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
})
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}),
|
|
89
|
-
createVNode(_component_el_form_item, {
|
|
90
|
-
label: "配置项字段",
|
|
91
|
-
style: { "margin-top": "-10px" }
|
|
63
|
+
createVNode(_component_el_radio_group, {
|
|
64
|
+
modelValue: __props.configure.props.yaxisSource,
|
|
65
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.configure.props.yaxisSource = $event)
|
|
92
66
|
}, {
|
|
93
67
|
default: withCtx(() => [
|
|
94
|
-
createVNode(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}, {
|
|
102
|
-
default: withCtx(() => [
|
|
103
|
-
createVNode(_component_el_option, {
|
|
104
|
-
label: "field1",
|
|
105
|
-
value: "root"
|
|
68
|
+
createVNode(_component_el_form_item, { style: { "margin-top": "4px" } }, {
|
|
69
|
+
label: withCtx(() => [
|
|
70
|
+
createVNode(_component_el_radio, { value: "variable" }, {
|
|
71
|
+
default: withCtx(() => [
|
|
72
|
+
createTextVNode("数据字段")
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
106
75
|
})
|
|
107
76
|
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}, 8, ["modelValue"]),
|
|
110
|
-
createVNode(_component_el_text, {
|
|
111
|
-
type: "success",
|
|
112
|
-
size: "small"
|
|
113
|
-
}, {
|
|
114
77
|
default: withCtx(() => [
|
|
115
|
-
createTextVNode("默认为选择的维度字段,可为空")
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
})
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
}),
|
|
122
|
-
createVNode(_component_el_divider, null, {
|
|
123
|
-
default: withCtx(() => [
|
|
124
|
-
createTextVNode(" 数据项 ")
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}),
|
|
128
|
-
createVNode(_component_el_table, {
|
|
129
|
-
data: __props.configure.props.yaxisFields,
|
|
130
|
-
style: { "width": "100%" }
|
|
131
|
-
}, {
|
|
132
|
-
default: withCtx(() => [
|
|
133
|
-
createVNode(_component_el_table_column, {
|
|
134
|
-
label: "",
|
|
135
|
-
width: "32"
|
|
136
|
-
}, {
|
|
137
|
-
default: withCtx((scope) => [
|
|
138
|
-
createElementVNode("div", _hoisted_2, [
|
|
139
|
-
createVNode(_component_el_icon, {
|
|
140
|
-
size: "14",
|
|
141
|
-
style: { "cursor": "pointer" },
|
|
142
|
-
onClick: ($event) => _ctx.moveTop(scope.row)
|
|
143
|
-
}, {
|
|
144
|
-
default: withCtx(() => [
|
|
145
|
-
createVNode(_component_Top)
|
|
146
|
-
]),
|
|
147
|
-
_: 2
|
|
148
|
-
}, 1032, ["onClick"]),
|
|
149
|
-
createVNode(_component_el_icon, {
|
|
150
|
-
size: "14",
|
|
151
|
-
style: { "margin-left": "2px", "cursor": "pointer" },
|
|
152
|
-
onClick: ($event) => _ctx.moveToBottom(scope.row)
|
|
153
|
-
}, {
|
|
154
|
-
default: withCtx(() => [
|
|
155
|
-
createVNode(_component_Bottom)
|
|
156
|
-
]),
|
|
157
|
-
_: 2
|
|
158
|
-
}, 1032, ["onClick"])
|
|
159
|
-
])
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
}),
|
|
163
|
-
createVNode(_component_el_table_column, {
|
|
164
|
-
prop: "label",
|
|
165
|
-
label: "名称",
|
|
166
|
-
width: "100"
|
|
167
|
-
}, {
|
|
168
|
-
default: withCtx((scope) => [
|
|
169
|
-
createVNode(_component_el_input, {
|
|
170
|
-
modelValue: scope.row.name,
|
|
171
|
-
"onUpdate:modelValue": ($event) => scope.row.name = $event,
|
|
172
|
-
size: "small"
|
|
173
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
174
|
-
]),
|
|
175
|
-
_: 1
|
|
176
|
-
}),
|
|
177
|
-
createVNode(_component_el_table_column, {
|
|
178
|
-
prop: "label",
|
|
179
|
-
label: "字段",
|
|
180
|
-
width: "58"
|
|
181
|
-
}, {
|
|
182
|
-
default: withCtx((scope) => [
|
|
183
78
|
createVNode(_component_el_select, {
|
|
79
|
+
size: "small",
|
|
80
|
+
disabled: __props.configure.props.yaxisSource == "fix",
|
|
184
81
|
modelValue: __props.configure.props.yaxisField,
|
|
185
|
-
"onUpdate:modelValue": _cache[
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
82
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.props.yaxisField = $event),
|
|
83
|
+
title: __props.configure.props.yaxisField,
|
|
84
|
+
style: { "width": "160px" },
|
|
85
|
+
filterable: "",
|
|
86
|
+
"allow-create": "",
|
|
87
|
+
clearable: "",
|
|
88
|
+
placeholder: "请选择"
|
|
190
89
|
}, {
|
|
191
90
|
default: withCtx(() => [
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
91
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(sourceFields.value, (item) => {
|
|
92
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
93
|
+
key: item.value,
|
|
94
|
+
label: item.label,
|
|
95
|
+
value: item.value
|
|
96
|
+
}, {
|
|
97
|
+
default: withCtx(() => [
|
|
98
|
+
createElementVNode("span", _hoisted_2, toDisplayString(item.label), 1),
|
|
99
|
+
createElementVNode("span", _hoisted_3, toDisplayString(item.type), 1)
|
|
100
|
+
]),
|
|
101
|
+
_: 2
|
|
102
|
+
}, 1032, ["label", "value"]);
|
|
103
|
+
}), 128))
|
|
196
104
|
]),
|
|
197
105
|
_: 1
|
|
198
|
-
}, 8, ["modelValue"])
|
|
106
|
+
}, 8, ["disabled", "modelValue", "title"])
|
|
199
107
|
]),
|
|
200
108
|
_: 1
|
|
201
109
|
}),
|
|
202
|
-
createVNode(
|
|
203
|
-
label: "操作",
|
|
204
|
-
width: "60"
|
|
205
|
-
}, {
|
|
206
|
-
default: withCtx((scope) => [
|
|
207
|
-
createVNode(_component_el_icon, {
|
|
208
|
-
size: "14",
|
|
209
|
-
style: { "color": "#5893EF", "cursor": "pointer", "font-weight": "bold", "margin-right": "8px" },
|
|
210
|
-
onClick: ($event) => _ctx.addColor(scope.row)
|
|
211
|
-
}, {
|
|
212
|
-
default: withCtx(() => [
|
|
213
|
-
createVNode(unref(Plus))
|
|
214
|
-
]),
|
|
215
|
-
_: 2
|
|
216
|
-
}, 1032, ["onClick"]),
|
|
217
|
-
createVNode(_component_el_icon, {
|
|
218
|
-
size: "14",
|
|
219
|
-
style: { "color": "#5893EF", "cursor": "pointer" },
|
|
220
|
-
onClick: ($event) => _ctx.deleteColor(scope.row)
|
|
221
|
-
}, {
|
|
222
|
-
default: withCtx(() => [
|
|
223
|
-
createVNode(_component_Delete)
|
|
224
|
-
]),
|
|
225
|
-
_: 2
|
|
226
|
-
}, 1032, ["onClick"])
|
|
227
|
-
]),
|
|
228
|
-
_: 1
|
|
229
|
-
})
|
|
230
|
-
]),
|
|
231
|
-
_: 1
|
|
232
|
-
}, 8, ["data"]),
|
|
233
|
-
createVNode(_component_el_text, {
|
|
234
|
-
style: { "line-height": "15px" },
|
|
235
|
-
type: "success",
|
|
236
|
-
size: "small"
|
|
237
|
-
}, {
|
|
238
|
-
default: withCtx(() => [
|
|
239
|
-
createTextVNode("选择比较的数值字段,为空时为默认字段")
|
|
240
|
-
]),
|
|
241
|
-
_: 1
|
|
242
|
-
}),
|
|
243
|
-
createVNode(_component_el_radio_group, {
|
|
244
|
-
modelValue: __props.configure.props.maxValueSource,
|
|
245
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.maxValueSource = $event)
|
|
246
|
-
}, {
|
|
247
|
-
default: withCtx(() => [
|
|
248
|
-
createVNode(_component_el_form_item, { style: { "margin-top": "-10px" } }, {
|
|
110
|
+
createVNode(_component_el_form_item, { style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, {
|
|
249
111
|
label: withCtx(() => [
|
|
250
|
-
createVNode(_component_el_radio, { value: "
|
|
112
|
+
createVNode(_component_el_radio, { value: "fixed" }, {
|
|
251
113
|
default: withCtx(() => [
|
|
252
|
-
createTextVNode("
|
|
114
|
+
createTextVNode("固定值 ")
|
|
253
115
|
]),
|
|
254
116
|
_: 1
|
|
255
117
|
})
|
|
256
118
|
]),
|
|
257
119
|
default: withCtx(() => [
|
|
258
120
|
createVNode(_component_el_input_number, {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
createVNode(_component_el_form_item, { style: { "margin-top": "-10px" } }, {
|
|
267
|
-
label: withCtx(() => [
|
|
268
|
-
createVNode(_component_el_radio, { value: "field" }, {
|
|
269
|
-
default: withCtx(() => [
|
|
270
|
-
createTextVNode("最大值字段")
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
})
|
|
274
|
-
]),
|
|
275
|
-
default: withCtx(() => [
|
|
276
|
-
createVNode(_component_el_select, {
|
|
277
|
-
modelValue: __props.configure.props.maxValueField,
|
|
278
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => __props.configure.props.maxValueField = $event),
|
|
279
|
-
disabled: __props.configure.props.maxValueSource != "field",
|
|
280
|
-
placeholder: "请选择",
|
|
281
|
-
multiple: "",
|
|
282
|
-
"collapse-tags": "",
|
|
283
|
-
clearable: ""
|
|
284
|
-
}, {
|
|
285
|
-
default: withCtx(() => [
|
|
286
|
-
createVNode(_component_el_option, {
|
|
287
|
-
label: "field1",
|
|
288
|
-
value: "root"
|
|
289
|
-
})
|
|
290
|
-
]),
|
|
291
|
-
_: 1
|
|
292
|
-
}, 8, ["modelValue", "disabled"]),
|
|
293
|
-
createVNode(_component_el_text, {
|
|
294
|
-
type: "success",
|
|
295
|
-
size: "small"
|
|
296
|
-
}, {
|
|
297
|
-
default: withCtx(() => [
|
|
298
|
-
createTextVNode("指示器的最大值字段,可为空")
|
|
299
|
-
]),
|
|
300
|
-
_: 1
|
|
301
|
-
})
|
|
121
|
+
disabled: __props.configure.props.yaxisSource != "fixed",
|
|
122
|
+
placeholder: "请输入",
|
|
123
|
+
modelValue: __props.configure.props.yaxisFix,
|
|
124
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.configure.props.yaxisFix = $event),
|
|
125
|
+
min: 1,
|
|
126
|
+
preision: "2"
|
|
127
|
+
}, null, 8, ["disabled", "modelValue"])
|
|
302
128
|
]),
|
|
303
129
|
_: 1
|
|
304
130
|
})
|
package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-style.vue.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../common/common-style-font-subtitle.vue.js";
|
|
3
|
-
import _sfc_main$
|
|
4
|
-
import _sfc_main$
|
|
5
|
-
import _sfc_main$4 from "./styles/style-
|
|
6
|
-
import _sfc_main$5 from "
|
|
7
|
-
import _sfc_main$7 from "./styles/style-axis.vue.js";
|
|
8
|
-
import _sfc_main$8 from "./styles/style-split.vue.js";
|
|
9
|
-
import _sfc_main$9 from "./styles/style-splitarea.vue.js";
|
|
10
|
-
import _sfc_main$6 from "./styles/style-dataarea.vue.js";
|
|
11
|
-
import _sfc_main$a from "../../common/common-style-custom.vue.js";
|
|
3
|
+
import _sfc_main$2 from "./styles/style-datalabel.vue.js";
|
|
4
|
+
import _sfc_main$3 from "./styles/style-dataline.vue.js";
|
|
5
|
+
import _sfc_main$4 from "./styles/style-dataarea.vue.js";
|
|
6
|
+
import _sfc_main$5 from "../../common/common-style-custom.vue.js";
|
|
12
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
8
|
__name: "series-attr-style",
|
|
14
9
|
props: {
|
|
@@ -18,11 +13,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
13
|
}
|
|
19
14
|
},
|
|
20
15
|
setup(__props) {
|
|
21
|
-
const openCollapseItems = ref([]);
|
|
16
|
+
const openCollapseItems = ref(["styleDataLabel"]);
|
|
22
17
|
return (_ctx, _cache) => {
|
|
18
|
+
const _component_commonStyleAxis = resolveComponent("commonStyleAxis");
|
|
23
19
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
24
20
|
const _component_el_form = resolveComponent("el-form");
|
|
25
|
-
return openBlock(), createBlock(_component_el_form, {
|
|
21
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
22
|
+
"label-width": "80px",
|
|
23
|
+
size: "small"
|
|
24
|
+
}, {
|
|
26
25
|
default: withCtx(() => [
|
|
27
26
|
createVNode(_component_el_collapse, {
|
|
28
27
|
modelValue: openCollapseItems.value,
|
|
@@ -39,12 +38,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
38
|
createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]),
|
|
40
39
|
createVNode(_sfc_main$3, { configure: __props.configure }, null, 8, ["configure"]),
|
|
41
40
|
createVNode(_sfc_main$4, { configure: __props.configure }, null, 8, ["configure"]),
|
|
42
|
-
createVNode(
|
|
43
|
-
createVNode(_sfc_main$
|
|
44
|
-
createVNode(_sfc_main$7, { configure: __props.configure }, null, 8, ["configure"]),
|
|
45
|
-
createVNode(_sfc_main$8, { configure: __props.configure }, null, 8, ["configure"]),
|
|
46
|
-
createVNode(_sfc_main$9, { configure: __props.configure }, null, 8, ["configure"]),
|
|
47
|
-
createVNode(_sfc_main$a, { configure: __props.configure }, null, 8, ["configure"])
|
|
41
|
+
createVNode(_component_commonStyleAxis, { configure: __props.configure }, null, 8, ["configure"]),
|
|
42
|
+
createVNode(_sfc_main$5, { configure: __props.configure }, null, 8, ["configure"])
|
|
48
43
|
]),
|
|
49
44
|
_: 1
|
|
50
45
|
}, 8, ["modelValue"])
|