sun-card-design 1.3.0 → 1.3.2
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/mobile/sun-card-design-mobile.es10.js +6 -6
- package/dist/mobile/sun-card-design-mobile.es11.js +8 -8
- package/dist/mobile/sun-card-design-mobile.es12.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es13.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es14.js +6 -6
- package/dist/mobile/sun-card-design-mobile.es15.js +13 -12
- package/dist/mobile/sun-card-design-mobile.es16.js +6 -6
- package/dist/mobile/sun-card-design-mobile.es17.js +6 -6
- package/dist/mobile/sun-card-design-mobile.es18.js +6 -6
- package/dist/mobile/sun-card-design-mobile.es19.js +7 -7
- package/dist/mobile/sun-card-design-mobile.es2.js +15 -25
- package/dist/mobile/sun-card-design-mobile.es20.js +8 -10
- package/dist/mobile/sun-card-design-mobile.es21.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es22.js +8 -9
- package/dist/mobile/sun-card-design-mobile.es23.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es24.js +9 -10
- package/dist/mobile/sun-card-design-mobile.es25.js +75 -47
- package/dist/mobile/sun-card-design-mobile.es27.js +10 -0
- package/dist/mobile/sun-card-design-mobile.es28.js +60 -6
- package/dist/mobile/sun-card-design-mobile.es3.js +14 -14
- package/dist/mobile/sun-card-design-mobile.es37.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es4.js +17 -17
- package/dist/mobile/sun-card-design-mobile.es42.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es5.js +12 -12
- package/dist/mobile/sun-card-design-mobile.es55.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es56.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es57.js +13 -12
- package/dist/mobile/sun-card-design-mobile.es58.js +13 -12
- package/dist/mobile/sun-card-design-mobile.es59.js +13 -12
- package/dist/mobile/sun-card-design-mobile.es6.js +13 -13
- package/dist/mobile/sun-card-design-mobile.es60.js +13 -12
- package/dist/mobile/sun-card-design-mobile.es7.js +16 -16
- package/dist/mobile/sun-card-design-mobile.es8.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es9.js +1 -1
- package/dist/pc/sun-card-design-pc.es10.js +6 -6
- package/dist/pc/sun-card-design-pc.es11.js +8 -8
- package/dist/pc/sun-card-design-pc.es12.js +1 -1
- package/dist/pc/sun-card-design-pc.es13.js +1 -1
- package/dist/pc/sun-card-design-pc.es14.js +6 -6
- package/dist/pc/sun-card-design-pc.es15.js +13 -12
- package/dist/pc/sun-card-design-pc.es16.js +6 -6
- package/dist/pc/sun-card-design-pc.es17.js +6 -6
- package/dist/pc/sun-card-design-pc.es18.js +6 -6
- package/dist/pc/sun-card-design-pc.es19.js +7 -7
- package/dist/pc/sun-card-design-pc.es2.js +16 -34
- package/dist/pc/sun-card-design-pc.es20.js +8 -10
- package/dist/pc/sun-card-design-pc.es21.js +1 -1
- package/dist/pc/sun-card-design-pc.es22.js +8 -9
- package/dist/pc/sun-card-design-pc.es23.js +1 -1
- package/dist/pc/sun-card-design-pc.es24.js +9 -10
- package/dist/pc/sun-card-design-pc.es25.js +75 -47
- package/dist/pc/sun-card-design-pc.es27.js +10 -0
- package/dist/pc/sun-card-design-pc.es28.js +60 -6
- package/dist/pc/sun-card-design-pc.es3.js +14 -14
- package/dist/pc/sun-card-design-pc.es37.js +1 -1
- package/dist/pc/sun-card-design-pc.es4.js +17 -17
- package/dist/pc/sun-card-design-pc.es42.js +1 -1
- package/dist/pc/sun-card-design-pc.es5.js +12 -12
- package/dist/pc/sun-card-design-pc.es55.js +1 -1
- package/dist/pc/sun-card-design-pc.es56.js +1 -1
- package/dist/pc/sun-card-design-pc.es57.js +13 -12
- package/dist/pc/sun-card-design-pc.es58.js +13 -12
- package/dist/pc/sun-card-design-pc.es59.js +13 -12
- package/dist/pc/sun-card-design-pc.es6.js +13 -13
- package/dist/pc/sun-card-design-pc.es60.js +13 -12
- package/dist/pc/sun-card-design-pc.es7.js +16 -16
- package/dist/pc/sun-card-design-pc.es8.js +1 -1
- package/dist/pc/sun-card-design-pc.es9.js +1 -1
- package/dist/public/sun-card-design.css +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useCssVars, computed, resolveComponent, createElementBlock, openBlock, createVNode } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import _export_sfc from "./sun-card-design-pc.
|
|
3
|
+
import _export_sfc from "./sun-card-design-pc.es27.js";
|
|
4
4
|
const _hoisted_1 = { class: "main-table" };
|
|
5
5
|
const _sfc_main = {
|
|
6
6
|
__name: "tableComp",
|
|
7
|
-
props: ["record"],
|
|
7
|
+
props: ["record", "variableList"],
|
|
8
8
|
setup(__props) {
|
|
9
9
|
useCssVars((_ctx) => ({
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
10
|
+
"v356dc688": mainPadding.value,
|
|
11
|
+
"v62d10afc": tableFontSize.value,
|
|
12
|
+
"v21e78506": tableCellPadding.value
|
|
13
13
|
}));
|
|
14
14
|
const props = __props;
|
|
15
15
|
const mainPadding = computed(() => {
|
|
@@ -32,7 +32,7 @@ const _sfc_main = {
|
|
|
32
32
|
};
|
|
33
33
|
const resolveArrayFromVariable = (name) => {
|
|
34
34
|
if (!name) return [];
|
|
35
|
-
const v = (
|
|
35
|
+
const v = (props.variableList || []).find((e) => e.name === name);
|
|
36
36
|
if (!v || !v.defaultValue) return [];
|
|
37
37
|
const data = typeof v.defaultValue === "string" ? parseJsonSafe(v.defaultValue) : v.defaultValue;
|
|
38
38
|
return Array.isArray(data) ? data : [];
|
|
@@ -58,7 +58,7 @@ const _sfc_main = {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
61
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-756a9985"]]);
|
|
62
62
|
export {
|
|
63
63
|
Table as default
|
|
64
64
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock, openBlock, normalizeStyle, Fragment, renderList, createBlock } from "vue";
|
|
2
2
|
import FormItem from "./sun-card-design-pc.es25.js";
|
|
3
|
-
import { previewData } from "./sun-card-design-pc.es26.js";
|
|
4
3
|
/* empty css */
|
|
5
|
-
import _export_sfc from "./sun-card-design-pc.
|
|
4
|
+
import _export_sfc from "./sun-card-design-pc.es27.js";
|
|
6
5
|
const _sfc_main = {
|
|
7
6
|
__name: "pcPanel",
|
|
8
7
|
props: ["record", "config"],
|
|
@@ -10,20 +9,8 @@ const _sfc_main = {
|
|
|
10
9
|
setup(__props, { emit: __emit }) {
|
|
11
10
|
const props = __props;
|
|
12
11
|
const emit = __emit;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
console.info("config: " + props?.config);
|
|
16
|
-
}
|
|
17
|
-
adapter(props.record.list);
|
|
18
|
-
watch(
|
|
19
|
-
() => props?.config?.variableList,
|
|
20
|
-
(newList) => {
|
|
21
|
-
if (newList) {
|
|
22
|
-
previewData.variableList = JSON.parse(JSON.stringify(newList));
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{ deep: true, immediate: false }
|
|
26
|
-
);
|
|
12
|
+
adapter(props.record.list, props.config?.variableList);
|
|
13
|
+
console.info("props: ", props);
|
|
27
14
|
const onClick = (record) => {
|
|
28
15
|
emit("clickEvent", record);
|
|
29
16
|
};
|
|
@@ -33,13 +20,13 @@ const _sfc_main = {
|
|
|
33
20
|
const onClickColumns = (record) => {
|
|
34
21
|
emit("clickColumnsEvent", record);
|
|
35
22
|
};
|
|
36
|
-
function adapter(recordList = []) {
|
|
23
|
+
function adapter(recordList = [], variableList = []) {
|
|
37
24
|
if (!Array.isArray(recordList)) return;
|
|
38
25
|
recordList.forEach((item) => {
|
|
39
26
|
if (!item || typeof item !== "object") return;
|
|
40
27
|
if (["grid", "singleColumn", "multipleColumn", "multipleLine", "gridList"].includes(item.type)) {
|
|
41
28
|
if (item.options.dataType === "动态格数" && item.options.variableName) {
|
|
42
|
-
const variableItem =
|
|
29
|
+
const variableItem = variableList.find(
|
|
43
30
|
(v) => v && v.name === item.options.variableName && v.type === "Array"
|
|
44
31
|
);
|
|
45
32
|
if (variableItem && variableItem.defaultValue) {
|
|
@@ -47,18 +34,12 @@ const _sfc_main = {
|
|
|
47
34
|
const defaultValueArray = JSON.parse(variableItem.defaultValue);
|
|
48
35
|
if (Array.isArray(defaultValueArray) && item.columns[0]) {
|
|
49
36
|
const targetLength = defaultValueArray.length;
|
|
50
|
-
const
|
|
51
|
-
item.columns
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
if (currentLength !== targetLength) {
|
|
57
|
-
for (let index = currentLength; index < targetLength; index++) {
|
|
58
|
-
const newColumn = JSON.parse(JSON.stringify(item.columns[0]));
|
|
59
|
-
newColumn.index = index;
|
|
60
|
-
item.columns.push(newColumn);
|
|
61
|
-
}
|
|
37
|
+
const templateColumn = item.columns[0];
|
|
38
|
+
item.columns = [];
|
|
39
|
+
for (let index = 0; index < targetLength; index++) {
|
|
40
|
+
const newColumn = JSON.parse(JSON.stringify(templateColumn));
|
|
41
|
+
newColumn.index = index;
|
|
42
|
+
item.columns.push(newColumn);
|
|
62
43
|
}
|
|
63
44
|
}
|
|
64
45
|
} catch (error) {
|
|
@@ -69,7 +50,7 @@ const _sfc_main = {
|
|
|
69
50
|
if (Array.isArray(item.columns)) {
|
|
70
51
|
item.columns.forEach((e) => {
|
|
71
52
|
if (e && e.list) {
|
|
72
|
-
adapter(e.list);
|
|
53
|
+
adapter(e.list, variableList);
|
|
73
54
|
}
|
|
74
55
|
});
|
|
75
56
|
}
|
|
@@ -88,18 +69,19 @@ const _sfc_main = {
|
|
|
88
69
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.record.list, (item, index) => {
|
|
89
70
|
return openBlock(), createBlock(FormItem, {
|
|
90
71
|
recordData: props.record,
|
|
72
|
+
variableList: props.config?.variableList,
|
|
91
73
|
record: item,
|
|
92
74
|
key: index,
|
|
93
75
|
onClickEvent: onClick,
|
|
94
76
|
onFileUpdateEvent: onUpdate,
|
|
95
77
|
onClickColumnsEvent: onClickColumns
|
|
96
|
-
}, null, 8, ["recordData", "record"]);
|
|
78
|
+
}, null, 8, ["recordData", "variableList", "record"]);
|
|
97
79
|
}), 128))
|
|
98
80
|
], 4);
|
|
99
81
|
};
|
|
100
82
|
}
|
|
101
83
|
};
|
|
102
|
-
const PcPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
84
|
+
const PcPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-eae40bcb"]]);
|
|
103
85
|
export {
|
|
104
86
|
PcPanel as default
|
|
105
87
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { useCssVars, computed, ref, onMounted, nextTick, onBeforeUnmount, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
-
import { previewData } from "./sun-card-design-pc.es26.js";
|
|
3
2
|
import * as echarts from "echarts";
|
|
4
3
|
/* empty css */
|
|
5
|
-
import _export_sfc from "./sun-card-design-pc.
|
|
4
|
+
import _export_sfc from "./sun-card-design-pc.es27.js";
|
|
6
5
|
const _hoisted_1 = { class: "barChart-table" };
|
|
7
6
|
const _sfc_main = {
|
|
8
7
|
__name: "barChartComp",
|
|
9
|
-
props: ["record"],
|
|
8
|
+
props: ["record", "variableList"],
|
|
10
9
|
setup(__props) {
|
|
11
10
|
useCssVars((_ctx) => ({
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
11
|
+
"v54395fea": mainPadding.value,
|
|
12
|
+
"v259f1a76": chartWidth.value,
|
|
13
|
+
"v74753a77": chartHeight.value
|
|
15
14
|
}));
|
|
16
15
|
const props = __props;
|
|
17
16
|
const mainPadding = computed(() => {
|
|
@@ -42,7 +41,7 @@ const _sfc_main = {
|
|
|
42
41
|
};
|
|
43
42
|
const resolveArrayFromVariable = (name) => {
|
|
44
43
|
if (!name) return [];
|
|
45
|
-
const v = (
|
|
44
|
+
const v = (props.variableList || []).find((e) => e.name === name);
|
|
46
45
|
if (!v || !v.defaultValue) return [];
|
|
47
46
|
const data = typeof v.defaultValue === "string" ? parseJsonSafe(v.defaultValue) : v.defaultValue;
|
|
48
47
|
if (!Array.isArray(data)) return [];
|
|
@@ -70,7 +69,7 @@ const _sfc_main = {
|
|
|
70
69
|
const originalSeriesCfg = props.record.options.seriesConfig || [];
|
|
71
70
|
const seriesCfg = deepClone(originalSeriesCfg);
|
|
72
71
|
const firstSeriesData = originalSeriesCfg?.[0]?.data;
|
|
73
|
-
const dyData = typeof firstSeriesData === "string" ? (
|
|
72
|
+
const dyData = typeof firstSeriesData === "string" ? (props.variableList || []).find((v) => v.name === firstSeriesData) : null;
|
|
74
73
|
if (dyData) {
|
|
75
74
|
const dyDataList = typeof dyData.defaultValue === "string" ? parseJsonSafe(dyData.defaultValue) : dyData.defaultValue;
|
|
76
75
|
if (Array.isArray(dyDataList) && dyDataList.length > 0) {
|
|
@@ -93,7 +92,6 @@ const _sfc_main = {
|
|
|
93
92
|
}
|
|
94
93
|
});
|
|
95
94
|
}
|
|
96
|
-
console.error(seriesCfg);
|
|
97
95
|
return {
|
|
98
96
|
title: props.record.options.titleConfig,
|
|
99
97
|
tooltip: props.record.options.tooltipConfig,
|
|
@@ -152,7 +150,7 @@ const _sfc_main = {
|
|
|
152
150
|
};
|
|
153
151
|
}
|
|
154
152
|
};
|
|
155
|
-
const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
153
|
+
const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-368b9c34"]]);
|
|
156
154
|
export {
|
|
157
155
|
BarChart as default
|
|
158
156
|
};
|
|
@@ -4,7 +4,7 @@ import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
|
|
|
4
4
|
import { CSS2DRenderer, CSS2DObject } from "three/examples/jsm/renderers/CSS2DRenderer.js";
|
|
5
5
|
import { Pic1 } from "./sun-card-design-pc.es32.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import _export_sfc from "./sun-card-design-pc.
|
|
7
|
+
import _export_sfc from "./sun-card-design-pc.es27.js";
|
|
8
8
|
const _sfc_main = {
|
|
9
9
|
__name: "barChart3dComp",
|
|
10
10
|
props: ["record"],
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { useCssVars, computed, ref, onMounted, nextTick, onBeforeUnmount, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
-
import { previewData } from "./sun-card-design-pc.es26.js";
|
|
3
2
|
import * as echarts from "echarts";
|
|
4
3
|
/* empty css */
|
|
5
|
-
import _export_sfc from "./sun-card-design-pc.
|
|
4
|
+
import _export_sfc from "./sun-card-design-pc.es27.js";
|
|
6
5
|
const _hoisted_1 = { class: "pieChart-table" };
|
|
7
6
|
const _sfc_main = {
|
|
8
7
|
__name: "pieChartComp",
|
|
9
|
-
props: ["record"],
|
|
8
|
+
props: ["record", "variableList"],
|
|
10
9
|
setup(__props) {
|
|
11
10
|
useCssVars((_ctx) => ({
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
11
|
+
"d6945370": mainPadding.value,
|
|
12
|
+
"v06ab6058": chartWidth.value,
|
|
13
|
+
"v961c9e56": chartHeight.value
|
|
15
14
|
}));
|
|
16
15
|
const props = __props;
|
|
17
16
|
const mainPadding = computed(() => {
|
|
@@ -42,7 +41,7 @@ const _sfc_main = {
|
|
|
42
41
|
};
|
|
43
42
|
const resolveArrayFromVariable = (name) => {
|
|
44
43
|
if (!name) return [];
|
|
45
|
-
const v = (
|
|
44
|
+
const v = (props.variableList || []).find((e) => e.name === name);
|
|
46
45
|
if (!v || !v.defaultValue) return [];
|
|
47
46
|
const data = typeof v.defaultValue === "string" ? parseJsonSafe(v.defaultValue) : v.defaultValue;
|
|
48
47
|
if (!Array.isArray(data)) return [];
|
|
@@ -69,7 +68,7 @@ const _sfc_main = {
|
|
|
69
68
|
});
|
|
70
69
|
const seriesCfg = deepClone(props.record.options.seriesConfig || []);
|
|
71
70
|
seriesCfg.forEach((s) => {
|
|
72
|
-
const dyData = typeof s.data === "string" ? (
|
|
71
|
+
const dyData = typeof s.data === "string" ? (props.variableList || []).find((v) => v.name === s.data) : null;
|
|
73
72
|
if (dyData) {
|
|
74
73
|
const dyDataList = JSON.parse(dyData.defaultValue) || [];
|
|
75
74
|
s.data = dyDataList;
|
|
@@ -130,7 +129,7 @@ const _sfc_main = {
|
|
|
130
129
|
};
|
|
131
130
|
}
|
|
132
131
|
};
|
|
133
|
-
const PieChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
132
|
+
const PieChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9d7b4107"]]);
|
|
134
133
|
export {
|
|
135
134
|
PieChart as default
|
|
136
135
|
};
|
|
@@ -4,7 +4,7 @@ import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
|
|
|
4
4
|
import { CSS2DRenderer, CSS2DObject } from "three/examples/jsm/renderers/CSS2DRenderer.js";
|
|
5
5
|
import { Pic1 } from "./sun-card-design-pc.es32.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import _export_sfc from "./sun-card-design-pc.
|
|
7
|
+
import _export_sfc from "./sun-card-design-pc.es27.js";
|
|
8
8
|
const _sfc_main = {
|
|
9
9
|
__name: "pieChart3dComp",
|
|
10
10
|
props: ["record"],
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { useCssVars, computed, ref, onMounted, nextTick, onBeforeUnmount, watch, createElementBlock, openBlock, createElementVNode } from "vue";
|
|
2
|
-
import { previewData } from "./sun-card-design-pc.es26.js";
|
|
3
2
|
import * as echarts from "echarts";
|
|
4
3
|
/* empty css */
|
|
5
|
-
import _export_sfc from "./sun-card-design-pc.
|
|
4
|
+
import _export_sfc from "./sun-card-design-pc.es27.js";
|
|
6
5
|
const _hoisted_1 = { class: "lineChart-table" };
|
|
7
6
|
const _sfc_main = {
|
|
8
7
|
__name: "lineChartComp",
|
|
9
|
-
props: ["record"],
|
|
8
|
+
props: ["record", "variableList"],
|
|
10
9
|
setup(__props) {
|
|
11
10
|
useCssVars((_ctx) => ({
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
11
|
+
"v65be307e": mainPadding.value,
|
|
12
|
+
"v36b3e762": chartWidth.value,
|
|
13
|
+
"f40be9ea": chartHeight.value
|
|
15
14
|
}));
|
|
16
15
|
const props = __props;
|
|
17
16
|
const mainPadding = computed(() => {
|
|
@@ -42,7 +41,7 @@ const _sfc_main = {
|
|
|
42
41
|
};
|
|
43
42
|
const resolveArrayFromVariable = (name) => {
|
|
44
43
|
if (!name) return [];
|
|
45
|
-
const v = (
|
|
44
|
+
const v = (props.variableList || []).find((e) => e.name === name);
|
|
46
45
|
if (!v || !v.defaultValue) return [];
|
|
47
46
|
const data = typeof v.defaultValue === "string" ? parseJsonSafe(v.defaultValue) : v.defaultValue;
|
|
48
47
|
if (!Array.isArray(data)) return [];
|
|
@@ -70,7 +69,7 @@ const _sfc_main = {
|
|
|
70
69
|
const originalSeriesCfg = props.record.options.seriesConfig || [];
|
|
71
70
|
const seriesCfg = deepClone(originalSeriesCfg);
|
|
72
71
|
const firstSeriesData = originalSeriesCfg?.[0]?.data;
|
|
73
|
-
const dyData = typeof firstSeriesData === "string" ? (
|
|
72
|
+
const dyData = typeof firstSeriesData === "string" ? (props.variableList || []).find((v) => v.name === firstSeriesData) : null;
|
|
74
73
|
if (dyData) {
|
|
75
74
|
const dyDataList = typeof dyData.defaultValue === "string" ? parseJsonSafe(dyData.defaultValue) : Array.isArray(dyData.defaultValue) ? dyData.defaultValue : null;
|
|
76
75
|
if (Array.isArray(dyDataList) && dyDataList.length > 0) {
|
|
@@ -164,7 +163,7 @@ const _sfc_main = {
|
|
|
164
163
|
props.record.options.xAxisConfig,
|
|
165
164
|
props.record.options.yAxisConfig,
|
|
166
165
|
props.record.options.seriesConfig,
|
|
167
|
-
|
|
166
|
+
props.variableList
|
|
168
167
|
// 变量发生变化也要重算
|
|
169
168
|
],
|
|
170
169
|
() => {
|
|
@@ -185,7 +184,7 @@ const _sfc_main = {
|
|
|
185
184
|
};
|
|
186
185
|
}
|
|
187
186
|
};
|
|
188
|
-
const LineChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
187
|
+
const LineChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e8c89be8"]]);
|
|
189
188
|
export {
|
|
190
189
|
LineChart as default
|
|
191
190
|
};
|
|
@@ -28,14 +28,14 @@ import MultipleColumn from "./sun-card-design-pc.es58.js";
|
|
|
28
28
|
import MultipleLine from "./sun-card-design-pc.es59.js";
|
|
29
29
|
import GridList from "./sun-card-design-pc.es60.js";
|
|
30
30
|
/* empty css */
|
|
31
|
-
import _export_sfc from "./sun-card-design-pc.
|
|
31
|
+
import _export_sfc from "./sun-card-design-pc.es27.js";
|
|
32
32
|
const _hoisted_1 = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "main-box"
|
|
35
35
|
};
|
|
36
36
|
const _sfc_main = {
|
|
37
37
|
__name: "formItem",
|
|
38
|
-
props: ["record", "recordData", "columnsIndex"],
|
|
38
|
+
props: ["record", "recordData", "columnsIndex", "variableList"],
|
|
39
39
|
emits: ["clickEvent", "fileUpdateEvent", "clickColumnsEvent"],
|
|
40
40
|
setup(__props, { emit: __emit }) {
|
|
41
41
|
const props = __props;
|
|
@@ -55,174 +55,202 @@ const _sfc_main = {
|
|
|
55
55
|
key: 0,
|
|
56
56
|
record: props.record,
|
|
57
57
|
columnsIndex: props.columnsIndex,
|
|
58
|
+
variableList: props.variableList,
|
|
58
59
|
onClickEvent: onClick
|
|
59
|
-
}, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
|
|
60
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
60
61
|
__props.record.type === "text" ? (openBlock(), createBlock(Text, {
|
|
61
62
|
key: 1,
|
|
62
63
|
record: props.record,
|
|
63
64
|
columnsIndex: props.columnsIndex,
|
|
65
|
+
variableList: props.variableList,
|
|
64
66
|
onClickEvent: onClick
|
|
65
|
-
}, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
|
|
67
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
66
68
|
__props.record.type === "button" ? (openBlock(), createBlock(Button, {
|
|
67
69
|
key: 2,
|
|
68
70
|
record: props.record,
|
|
69
71
|
columnsIndex: props.columnsIndex,
|
|
72
|
+
variableList: props.variableList,
|
|
70
73
|
onClickEvent: onClick
|
|
71
|
-
}, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
|
|
74
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
72
75
|
__props.record.type === "file" ? (openBlock(), createBlock(File, {
|
|
73
76
|
key: 3,
|
|
74
77
|
record: props.record,
|
|
75
78
|
columnsIndex: props.columnsIndex,
|
|
79
|
+
variableList: props.variableList,
|
|
76
80
|
onClickEvent: onClick,
|
|
77
81
|
onFileUpdateEvent: onUpdate
|
|
78
|
-
}, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
|
|
82
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
79
83
|
__props.record.type === "upload" ? (openBlock(), createBlock(Upload, {
|
|
80
84
|
key: 4,
|
|
81
85
|
record: props.record,
|
|
82
|
-
columnsIndex: props.columnsIndex
|
|
83
|
-
|
|
86
|
+
columnsIndex: props.columnsIndex,
|
|
87
|
+
variableList: props.variableList
|
|
88
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
84
89
|
__props.record.type === "picture" ? (openBlock(), createBlock(Picture, {
|
|
85
90
|
key: 5,
|
|
86
91
|
record: props.record,
|
|
92
|
+
variableList: props.variableList,
|
|
87
93
|
onClickEvent: onClick,
|
|
88
94
|
columnsIndex: props.columnsIndex
|
|
89
|
-
}, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
|
|
95
|
+
}, null, 8, ["record", "variableList", "columnsIndex"])) : createCommentVNode("", true),
|
|
90
96
|
__props.record.type === "tag" ? (openBlock(), createBlock(Tag, {
|
|
91
97
|
key: 6,
|
|
92
98
|
record: props.record,
|
|
93
99
|
columnsIndex: props.columnsIndex,
|
|
100
|
+
variableList: props.variableList,
|
|
94
101
|
onClickEvent: onClick
|
|
95
|
-
}, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
|
|
102
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
96
103
|
__props.record.type === "rate" ? (openBlock(), createBlock(Rate, {
|
|
97
104
|
key: 7,
|
|
98
105
|
record: props.record,
|
|
99
|
-
columnsIndex: props.columnsIndex
|
|
100
|
-
|
|
106
|
+
columnsIndex: props.columnsIndex,
|
|
107
|
+
variableList: props.variableList
|
|
108
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
101
109
|
__props.record.type === "divider" ? (openBlock(), createBlock(Divider, {
|
|
102
110
|
key: 8,
|
|
103
111
|
record: props.record,
|
|
104
|
-
columnsIndex: props.columnsIndex
|
|
105
|
-
|
|
112
|
+
columnsIndex: props.columnsIndex,
|
|
113
|
+
variableList: props.variableList
|
|
114
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
106
115
|
__props.record.type === "audio" ? (openBlock(), createBlock(Audio, {
|
|
107
116
|
key: 9,
|
|
108
117
|
record: props.record,
|
|
109
|
-
columnsIndex: props.columnsIndex
|
|
110
|
-
|
|
118
|
+
columnsIndex: props.columnsIndex,
|
|
119
|
+
variableList: props.variableList
|
|
120
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
111
121
|
__props.record.type === "select" ? (openBlock(), createBlock(Select, {
|
|
112
122
|
key: 10,
|
|
113
123
|
record: props.record,
|
|
114
|
-
columnsIndex: props.columnsIndex
|
|
115
|
-
|
|
124
|
+
columnsIndex: props.columnsIndex,
|
|
125
|
+
variableList: props.variableList
|
|
126
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
116
127
|
__props.record.type === "video" ? (openBlock(), createBlock(Video, {
|
|
117
128
|
key: 11,
|
|
118
129
|
record: props.record,
|
|
119
|
-
columnsIndex: props.columnsIndex
|
|
120
|
-
|
|
130
|
+
columnsIndex: props.columnsIndex,
|
|
131
|
+
variableList: props.variableList
|
|
132
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
121
133
|
__props.record.type === "input" ? (openBlock(), createBlock(Input, {
|
|
122
134
|
key: 12,
|
|
123
|
-
record: props.record
|
|
124
|
-
|
|
135
|
+
record: props.record,
|
|
136
|
+
variableList: props.variableList
|
|
137
|
+
}, null, 8, ["record", "variableList"])) : createCommentVNode("", true),
|
|
125
138
|
__props.record.type === "generateImg" ? (openBlock(), createBlock(GenerateImg, {
|
|
126
139
|
key: 13,
|
|
127
140
|
record: props.record,
|
|
128
|
-
columnsIndex: props.columnsIndex
|
|
129
|
-
|
|
141
|
+
columnsIndex: props.columnsIndex,
|
|
142
|
+
variableList: props.variableList
|
|
143
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
130
144
|
__props.record.type === "sunIcon" ? (openBlock(), createBlock(SunIcon, {
|
|
131
145
|
key: 14,
|
|
132
146
|
record: props.record,
|
|
133
147
|
columnsIndex: props.columnsIndex,
|
|
148
|
+
variableList: props.variableList,
|
|
134
149
|
onClickEvent: onClick
|
|
135
|
-
}, null, 8, ["record", "columnsIndex"])) : createCommentVNode("", true),
|
|
150
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
136
151
|
__props.record.type === "grid" ? (openBlock(), createBlock(Grid, {
|
|
137
152
|
key: 15,
|
|
138
153
|
record: props.record,
|
|
139
154
|
recordData: props.recordData,
|
|
140
155
|
columnsIndex: props.columnsIndex,
|
|
156
|
+
variableList: props.variableList,
|
|
141
157
|
onClickEvent: onClick,
|
|
142
158
|
onFileUpdateEvent: onUpdate,
|
|
143
159
|
onClickColumnsEvent: onClickColumns
|
|
144
|
-
}, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
|
|
160
|
+
}, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
145
161
|
__props.record.type === "singleColumn" ? (openBlock(), createBlock(SingleColumn, {
|
|
146
162
|
key: 16,
|
|
147
163
|
record: props.record,
|
|
148
164
|
recordData: props.recordData,
|
|
149
165
|
columnsIndex: props.columnsIndex,
|
|
166
|
+
variableList: props.variableList,
|
|
150
167
|
onClickEvent: onClick,
|
|
151
168
|
onFileUpdateEvent: onUpdate,
|
|
152
169
|
onClickColumnsEvent: onClickColumns
|
|
153
|
-
}, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
|
|
170
|
+
}, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
154
171
|
__props.record.type === "multipleColumn" ? (openBlock(), createBlock(MultipleColumn, {
|
|
155
172
|
key: 17,
|
|
156
173
|
record: props.record,
|
|
157
174
|
recordData: props.recordData,
|
|
158
175
|
columnsIndex: props.columnsIndex,
|
|
176
|
+
variableList: props.variableList,
|
|
159
177
|
onClickEvent: onClick,
|
|
160
178
|
onFileUpdateEvent: onUpdate,
|
|
161
179
|
onClickColumnsEvent: onClickColumns
|
|
162
|
-
}, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
|
|
180
|
+
}, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
163
181
|
__props.record.type === "multipleLine" ? (openBlock(), createBlock(MultipleLine, {
|
|
164
182
|
key: 18,
|
|
165
183
|
record: props.record,
|
|
166
184
|
recordData: props.recordData,
|
|
167
185
|
columnsIndex: props.columnsIndex,
|
|
186
|
+
variableList: props.variableList,
|
|
168
187
|
onClickEvent: onClick,
|
|
169
188
|
onFileUpdateEvent: onUpdate,
|
|
170
189
|
onClickColumnsEvent: onClickColumns
|
|
171
|
-
}, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
|
|
190
|
+
}, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
172
191
|
__props.record.type === "gridList" ? (openBlock(), createBlock(GridList, {
|
|
173
192
|
key: 19,
|
|
174
193
|
record: props.record,
|
|
175
194
|
recordData: props.recordData,
|
|
176
195
|
columnsIndex: props.columnsIndex,
|
|
196
|
+
variableList: props.variableList,
|
|
177
197
|
onClickEvent: onClick,
|
|
178
198
|
onFileUpdateEvent: onUpdate,
|
|
179
199
|
onClickColumnsEvent: onClickColumns
|
|
180
|
-
}, null, 8, ["record", "recordData", "columnsIndex"])) : createCommentVNode("", true),
|
|
200
|
+
}, null, 8, ["record", "recordData", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
181
201
|
__props.record.type === "enterpriseSearch" ? (openBlock(), createBlock(EnterpriseSearch, {
|
|
182
202
|
key: 20,
|
|
183
203
|
record: props.record,
|
|
184
|
-
columnsIndex: props.columnsIndex
|
|
185
|
-
|
|
204
|
+
columnsIndex: props.columnsIndex,
|
|
205
|
+
variableList: props.variableList
|
|
206
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
186
207
|
__props.record.type === "table" ? (openBlock(), createBlock(Table, {
|
|
187
208
|
key: 21,
|
|
188
209
|
record: props.record,
|
|
189
|
-
columnsIndex: props.columnsIndex
|
|
190
|
-
|
|
210
|
+
columnsIndex: props.columnsIndex,
|
|
211
|
+
variableList: props.variableList
|
|
212
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
191
213
|
__props.record.type === "barChart" ? (openBlock(), createBlock(BarChart, {
|
|
192
214
|
key: 22,
|
|
193
215
|
record: props.record,
|
|
194
|
-
columnsIndex: props.columnsIndex
|
|
195
|
-
|
|
216
|
+
columnsIndex: props.columnsIndex,
|
|
217
|
+
variableList: props.variableList
|
|
218
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
196
219
|
__props.record.type === "pieChart" ? (openBlock(), createBlock(PieChart, {
|
|
197
220
|
key: 23,
|
|
198
221
|
record: props.record,
|
|
199
|
-
columnsIndex: props.columnsIndex
|
|
200
|
-
|
|
222
|
+
columnsIndex: props.columnsIndex,
|
|
223
|
+
variableList: props.variableList
|
|
224
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
201
225
|
__props.record.type === "lineChart" ? (openBlock(), createBlock(LineChart, {
|
|
202
226
|
key: 24,
|
|
203
227
|
record: props.record,
|
|
204
|
-
columnsIndex: props.columnsIndex
|
|
205
|
-
|
|
228
|
+
columnsIndex: props.columnsIndex,
|
|
229
|
+
variableList: props.variableList
|
|
230
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
206
231
|
__props.record.type === "barChart3D" ? (openBlock(), createBlock(BarChart3D, {
|
|
207
232
|
key: 25,
|
|
208
233
|
record: props.record,
|
|
209
|
-
columnsIndex: props.columnsIndex
|
|
210
|
-
|
|
234
|
+
columnsIndex: props.columnsIndex,
|
|
235
|
+
variableList: props.variableList
|
|
236
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
211
237
|
__props.record.type === "pieChart3D" ? (openBlock(), createBlock(PieChart3D, {
|
|
212
238
|
key: 26,
|
|
213
239
|
record: props.record,
|
|
214
|
-
columnsIndex: props.columnsIndex
|
|
215
|
-
|
|
240
|
+
columnsIndex: props.columnsIndex,
|
|
241
|
+
variableList: props.variableList
|
|
242
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true),
|
|
216
243
|
__props.record.type === "panorama" ? (openBlock(), createBlock(Panorama, {
|
|
217
244
|
key: 27,
|
|
218
245
|
record: props.record,
|
|
219
|
-
columnsIndex: props.columnsIndex
|
|
220
|
-
|
|
246
|
+
columnsIndex: props.columnsIndex,
|
|
247
|
+
variableList: props.variableList
|
|
248
|
+
}, null, 8, ["record", "columnsIndex", "variableList"])) : createCommentVNode("", true)
|
|
221
249
|
])) : createCommentVNode("", true);
|
|
222
250
|
};
|
|
223
251
|
}
|
|
224
252
|
};
|
|
225
|
-
const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
253
|
+
const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-900eaa67"]]);
|
|
226
254
|
export {
|
|
227
255
|
FormItem as default
|
|
228
256
|
};
|