@topdatasec/report 1.0.8 → 1.0.10
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/LICENSE +21 -0
- package/README.md +218 -0
- package/lib/index.d.ts +5 -8
- package/{es/bar/Bar.d.ts → lib/report/components/Bar.vue.d.ts} +2 -2
- package/{es/pie/Pie.d.ts → lib/report/components/Line.vue.d.ts} +2 -2
- package/{es/line/Line.d.ts → lib/report/components/Pie.vue.d.ts} +2 -2
- package/{es/time/Time.d.ts → lib/report/components/RangeTime.vue.d.ts} +3 -3
- package/lib/report/components/Report.vue.d.ts +18 -0
- package/{es/table/Table.d.ts → lib/report/components/ReportChart.vue.d.ts} +2 -2
- package/lib/report/components/ReportDescribe.vue.d.ts +5 -0
- package/{es/select/Select.d.ts → lib/report/components/ReportSelect.vue.d.ts} +3 -3
- package/lib/report/components/ReportTable.vue.d.ts +5 -0
- package/lib/report/components/ReportText.vue.d.ts +5 -0
- package/lib/report/components/SettingTable.vue.d.ts +2 -0
- package/lib/report/components/editor/components/Setting.vue.d.ts +2 -0
- package/lib/report/components/editor/index.vue.d.ts +24 -0
- package/{es/settingFilter/settingFilter.d.ts → lib/report/components/preview/Catalogue.vue.d.ts} +5 -3
- package/lib/report/components/preview/index.vue.d.ts +24 -0
- package/lib/report/index.d.ts +5 -8
- package/lib/report/index.vue.d.ts +2 -0
- package/lib/stores/interface/index.d.ts +1 -0
- package/lib/stores/modules/report.d.ts +10 -9
- package/lib/style.css +1 -0
- package/lib/tds-report-ui.es.js +26431 -0
- package/lib/tds-report-ui.umd.js +205 -0
- package/lib/utils/api.d.ts +6 -0
- package/lib/utils/chartsOption.d.ts +45 -12
- package/lib/utils/index.d.ts +1 -41
- package/lib/withInstall.d.ts +4 -0
- package/package.json +69 -88
- package/README.zh-CN.md +0 -0
- package/dist/index.iife.js +0 -1
- package/dist/index.js +0 -919
- package/dist/index.umd.cjs +0 -1
- package/dist/style.css +0 -1
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/es/bar/Bar.vue.js +0 -20
- package/es/bar/Bar.vue2.js +0 -4
- package/es/bar/index.d.ts +0 -15
- package/es/bar/index.js +0 -6
- package/es/components.d.ts +0 -4
- package/es/components.js +0 -8
- package/es/config/Config.css +0 -1
- package/es/config/Config.vue.js +0 -7
- package/es/config/Config.vue2.js +0 -207
- package/es/config/index.d.ts +0 -14
- package/es/config/index.js +0 -6
- package/es/index.d.ts +0 -10
- package/es/index.js +0 -38
- package/es/line/Line.vue.js +0 -20
- package/es/line/Line.vue2.js +0 -4
- package/es/line/index.d.ts +0 -15
- package/es/line/index.js +0 -6
- package/es/pie/index.d.ts +0 -15
- package/es/report/Report.d.ts +0 -7
- package/es/report/index.d.ts +0 -17
- package/es/select/index.d.ts +0 -25
- package/es/settingCharts/SettingCharts.d.ts +0 -5
- package/es/settingCharts/index.d.ts +0 -14
- package/es/settingFilter/index.d.ts +0 -15
- package/es/settingTable/index.d.ts +0 -14
- package/es/settingText/index.d.ts +0 -15
- package/es/settingText/settingText.d.ts +0 -5
- package/es/settingTitle/index.d.ts +0 -14
- package/es/stores/interface/index.d.ts +0 -18
- package/es/stores/modules/report.d.ts +0 -35
- package/es/stores/modules/report.js +0 -45
- package/es/style/global.css +0 -1
- package/es/table/index.d.ts +0 -15
- package/es/text/Text.d.ts +0 -5
- package/es/text/index.d.ts +0 -15
- package/es/time/index.d.ts +0 -25
- package/es/utils/api.d.ts +0 -12
- package/es/utils/api.js +0 -9
- package/es/utils/chartsOption.d.ts +0 -298
- package/es/utils/chartsOption.js +0 -187
- package/es/utils/data.d.ts +0 -4
- package/es/utils/data.js +0 -101
- package/es/utils/index.d.ts +0 -43
- package/es/utils/index.js +0 -309
- package/es/utils/resolver.d.ts +0 -11
- package/es/utils/resolver.js +0 -36
- package/es/utils/type.d.ts +0 -2
- package/es/utils/type.js +0 -9
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -1
- package/lib/bar/Bar.d.ts +0 -5
- package/lib/bar/Bar.vue.cjs +0 -1
- package/lib/bar/Bar.vue2.cjs +0 -1
- package/lib/bar/index.cjs +0 -1
- package/lib/bar/index.d.ts +0 -15
- package/lib/components.cjs +0 -1
- package/lib/components.d.ts +0 -4
- package/lib/config/Config.css +0 -1
- package/lib/config/Config.vue.cjs +0 -1
- package/lib/config/Config.vue2.cjs +0 -1
- package/lib/config/index.cjs +0 -1
- package/lib/config/index.d.ts +0 -14
- package/lib/index.cjs +0 -1
- package/lib/line/Line.d.ts +0 -5
- package/lib/line/Line.vue.cjs +0 -1
- package/lib/line/Line.vue2.cjs +0 -1
- package/lib/line/index.cjs +0 -1
- package/lib/line/index.d.ts +0 -15
- package/lib/pie/Pie.d.ts +0 -5
- package/lib/pie/index.d.ts +0 -15
- package/lib/report/Report.d.ts +0 -7
- package/lib/select/Select.d.ts +0 -9
- package/lib/select/index.d.ts +0 -25
- package/lib/settingCharts/SettingCharts.d.ts +0 -5
- package/lib/settingCharts/index.d.ts +0 -14
- package/lib/settingFilter/index.d.ts +0 -15
- package/lib/settingFilter/settingFilter.d.ts +0 -5
- package/lib/settingTable/index.d.ts +0 -14
- package/lib/settingText/index.d.ts +0 -15
- package/lib/settingText/settingText.d.ts +0 -5
- package/lib/settingTitle/index.d.ts +0 -14
- package/lib/stores/modules/report.cjs +0 -1
- package/lib/style/global.css +0 -1
- package/lib/table/Table.d.ts +0 -5
- package/lib/table/index.d.ts +0 -15
- package/lib/text/Text.d.ts +0 -5
- package/lib/text/index.d.ts +0 -15
- package/lib/time/Time.d.ts +0 -9
- package/lib/time/index.d.ts +0 -25
- package/lib/utils/api.cjs +0 -1
- package/lib/utils/chartsOption.cjs +0 -1
- package/lib/utils/data.cjs +0 -1
- package/lib/utils/index.cjs +0 -1
- package/lib/utils/resolver.cjs +0 -1
- package/lib/utils/resolver.d.ts +0 -11
- package/lib/utils/type.cjs +0 -1
- package/lib/utils/type.d.ts +0 -2
- /package/{es/config/Config.d.ts → lib/report/components/ChartsUniConfig.vue.d.ts} +0 -0
- /package/{es/settingTable/SettingTable.d.ts → lib/report/components/SettingCharts.vue.d.ts} +0 -0
- /package/lib/{settingTable/SettingTable.d.ts → report/components/SettingDescribe.vue.d.ts} +0 -0
- /package/{es/settingTitle/settingTitle.d.ts → lib/report/components/SettingFilter.vue.d.ts} +0 -0
- /package/lib/{config/Config.d.ts → report/components/SettingText.vue.d.ts} +0 -0
- /package/lib/{settingTitle/settingTitle.d.ts → report/components/SettingTitle.vue.d.ts} +0 -0
package/dist/index.js
DELETED
|
@@ -1,919 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, computed as S, resolveComponent as h, createElementBlock as B, openBlock as x, createVNode as d, onMounted as I, onUnmounted as Z, ref as v, toValue as $, watch as H, onBeforeUnmount as O, useSlots as K, reactive as X, getCurrentInstance as Q, Comment as ee, Text as te, createCommentVNode as F, withCtx as f, createElementVNode as _, createBlock as U, Fragment as oe, renderList as ne, toDisplayString as se } from "vue";
|
|
2
|
-
import { defineStore as ae } from "pinia";
|
|
3
|
-
import "echarts";
|
|
4
|
-
const re = { class: "chart-components" }, le = /* @__PURE__ */ z({
|
|
5
|
-
name: "TdsReportBar",
|
|
6
|
-
__name: "Bar",
|
|
7
|
-
props: {
|
|
8
|
-
data: {}
|
|
9
|
-
},
|
|
10
|
-
setup(t) {
|
|
11
|
-
const o = t, e = S(() => o.data.options);
|
|
12
|
-
return (n, s) => {
|
|
13
|
-
const r = h("TdsChart");
|
|
14
|
-
return x(), B("div", re, [
|
|
15
|
-
d(r, { option: e.value }, null, 8, ["option"])
|
|
16
|
-
]);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}), N = (t) => {
|
|
20
|
-
const o = t;
|
|
21
|
-
return o.install = function(e) {
|
|
22
|
-
e.component(o.name, t);
|
|
23
|
-
}, t;
|
|
24
|
-
}, ie = N(le), W = window.$envURL, ue = (t) => W.request({
|
|
25
|
-
url: `${W}/tds/report/demo/get`,
|
|
26
|
-
method: "get",
|
|
27
|
-
params: t,
|
|
28
|
-
isError: !1
|
|
29
|
-
});
|
|
30
|
-
function Ue(t = Date.now(), o = "YYYY-MM-DD HH:mm:ss") {
|
|
31
|
-
try {
|
|
32
|
-
let e;
|
|
33
|
-
if (typeof t == "number" || typeof t == "string") {
|
|
34
|
-
if (e = new Date(t), isNaN(e.getTime()))
|
|
35
|
-
throw new Error("Invalid date");
|
|
36
|
-
} else
|
|
37
|
-
e = t;
|
|
38
|
-
const n = (r, l = 2) => String(r).padStart(l, "0"), s = (r) => {
|
|
39
|
-
switch (r) {
|
|
40
|
-
case "YYYY":
|
|
41
|
-
return n(e.getFullYear());
|
|
42
|
-
case "YY":
|
|
43
|
-
return n(e.getFullYear()).slice(2, 4);
|
|
44
|
-
case "MM":
|
|
45
|
-
return n(e.getMonth() + 1);
|
|
46
|
-
case "M":
|
|
47
|
-
return String(e.getMonth() + 1);
|
|
48
|
-
case "DD":
|
|
49
|
-
return n(e.getDate());
|
|
50
|
-
case "D":
|
|
51
|
-
return String(e.getDate());
|
|
52
|
-
case "HH":
|
|
53
|
-
return n(e.getHours());
|
|
54
|
-
case "H":
|
|
55
|
-
return String(e.getHours());
|
|
56
|
-
case "mm":
|
|
57
|
-
return n(e.getMinutes());
|
|
58
|
-
case "m":
|
|
59
|
-
return String(e.getMinutes());
|
|
60
|
-
case "ss":
|
|
61
|
-
return n(e.getSeconds());
|
|
62
|
-
case "s":
|
|
63
|
-
return String(e.getSeconds());
|
|
64
|
-
case "SSS":
|
|
65
|
-
return n(e.getMilliseconds(), 3);
|
|
66
|
-
default:
|
|
67
|
-
return r;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
return o.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g, s);
|
|
71
|
-
} catch (e) {
|
|
72
|
-
return console.error("Error formatting date:", e), "";
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function Be(t, o = 2, e = ",", n = ".", s, r) {
|
|
76
|
-
typeof t != "number" && typeof t != "string" && console.warn("Expected value to be of type number or string"), typeof o != "number" && console.warn("Expected precision to be of type number");
|
|
77
|
-
const l = Number(t);
|
|
78
|
-
if (isNaN(l) || !isFinite(l))
|
|
79
|
-
return "";
|
|
80
|
-
if (l === 0)
|
|
81
|
-
return l.toFixed(o);
|
|
82
|
-
let u = l.toFixed(o);
|
|
83
|
-
if (typeof e == "string" && e !== "") {
|
|
84
|
-
const [i, a] = u.split(".");
|
|
85
|
-
u = i.replace(/(\d)(?=(\d{3})+$)/g, "$1" + e) + (a ? n + a : "");
|
|
86
|
-
}
|
|
87
|
-
return (s || "") + u + (r || "");
|
|
88
|
-
}
|
|
89
|
-
function Oe(t, o = 0, e = !1) {
|
|
90
|
-
let n = null;
|
|
91
|
-
function s(l) {
|
|
92
|
-
if (n || (n = l), l - n >= o) {
|
|
93
|
-
try {
|
|
94
|
-
t();
|
|
95
|
-
} catch (i) {
|
|
96
|
-
console.error("Error executing rafTimeout function:", i);
|
|
97
|
-
}
|
|
98
|
-
e && (n = l, r.id = requestAnimationFrame(s));
|
|
99
|
-
} else
|
|
100
|
-
r.id = requestAnimationFrame(s);
|
|
101
|
-
}
|
|
102
|
-
const r = {
|
|
103
|
-
id: requestAnimationFrame(s)
|
|
104
|
-
};
|
|
105
|
-
return r;
|
|
106
|
-
}
|
|
107
|
-
function Ye(t) {
|
|
108
|
-
t && t.id && typeof t.id == "number" ? cancelAnimationFrame(t.id) : console.warn("cancelRaf received an invalid id:", t);
|
|
109
|
-
}
|
|
110
|
-
function ce(t, o = 300) {
|
|
111
|
-
let e = !0;
|
|
112
|
-
return function(...n) {
|
|
113
|
-
return e && (t(...n), e = !1, setTimeout(() => {
|
|
114
|
-
e = !0;
|
|
115
|
-
}, o)), !1;
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
function de(t, o = 300) {
|
|
119
|
-
let e = null;
|
|
120
|
-
return function(...n) {
|
|
121
|
-
e && clearTimeout(e), e = setTimeout(() => {
|
|
122
|
-
t(...n);
|
|
123
|
-
}, o);
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function ze(t, o) {
|
|
127
|
-
if (Number.isNaN(t) || Number.isNaN(o))
|
|
128
|
-
throw new Error("Both num1 and num2 must be valid numbers.");
|
|
129
|
-
const e = t % 1 !== 0, n = o % 1 !== 0;
|
|
130
|
-
if (!e && !n)
|
|
131
|
-
return t + o;
|
|
132
|
-
const s = String(t).split(".")[1] ?? "", r = String(o).split(".")[1] ?? "", l = Math.max(s.length, r.length), u = Math.pow(10, l), i = t.toFixed(l), a = o.toFixed(l);
|
|
133
|
-
return (+i.replace(".", "") + +a.replace(".", "")) / u;
|
|
134
|
-
}
|
|
135
|
-
function Ie(t, o) {
|
|
136
|
-
if (!t) {
|
|
137
|
-
console.error("无效的 url");
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
const e = o || t.split("?")[0].split("/").pop() || "download";
|
|
141
|
-
try {
|
|
142
|
-
fetch(t).then((n) => {
|
|
143
|
-
n.ok ? n.blob().then((s) => {
|
|
144
|
-
const r = URL.createObjectURL(s), l = document.createElement("a");
|
|
145
|
-
l.href = r, l.download = e, document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(r);
|
|
146
|
-
}) : console.error("请求文件失败,状态码:", n.status);
|
|
147
|
-
});
|
|
148
|
-
} catch (n) {
|
|
149
|
-
console.error("文件下载失败:", n);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
function He() {
|
|
153
|
-
const t = document.documentElement;
|
|
154
|
-
t.classList.toggle("dark"), t.classList.contains("dark") ? t.style.colorScheme = "dark" : t.style.colorScheme = "light";
|
|
155
|
-
}
|
|
156
|
-
function pe() {
|
|
157
|
-
const t = v(!1), o = Q();
|
|
158
|
-
return o && I(() => {
|
|
159
|
-
t.value = !0;
|
|
160
|
-
}, o), t;
|
|
161
|
-
}
|
|
162
|
-
function q(t) {
|
|
163
|
-
const o = pe();
|
|
164
|
-
return S(() => (o.value, !!t()));
|
|
165
|
-
}
|
|
166
|
-
function Ne(t, o, e) {
|
|
167
|
-
I(() => t.addEventListener(o, e)), Z(() => t.removeEventListener(o, e));
|
|
168
|
-
}
|
|
169
|
-
function We(t, o, e = {}) {
|
|
170
|
-
const n = q(() => window && "MutationObserver" in window), s = v(!1);
|
|
171
|
-
let r;
|
|
172
|
-
const l = S(() => {
|
|
173
|
-
const m = $(t);
|
|
174
|
-
return m ? Array.isArray(m) ? m.map((g) => $(g)).filter((g) => g) : [m] : [];
|
|
175
|
-
}), u = () => {
|
|
176
|
-
r && (r.disconnect(), r = void 0);
|
|
177
|
-
}, i = () => {
|
|
178
|
-
n.value && l.value.length && !s.value && (r = new MutationObserver(o), l.value.forEach((m) => r.observe(m, e)));
|
|
179
|
-
};
|
|
180
|
-
H(
|
|
181
|
-
() => l.value,
|
|
182
|
-
() => {
|
|
183
|
-
u(), i();
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
immediate: !0,
|
|
187
|
-
// 立即触发回调,以便初始状态也被观察
|
|
188
|
-
flush: "post"
|
|
189
|
-
}
|
|
190
|
-
);
|
|
191
|
-
const a = () => {
|
|
192
|
-
s.value = !0, u();
|
|
193
|
-
}, y = () => {
|
|
194
|
-
s.value = !1, i();
|
|
195
|
-
};
|
|
196
|
-
return O(() => u()), {
|
|
197
|
-
stop: a,
|
|
198
|
-
start: y
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
function je(t = window, o = 0, e, n) {
|
|
202
|
-
const s = v(0), r = v(0), l = v(0), u = v(0), i = v(!1), a = v(!1), y = v(!1), m = v(!1), g = v(!1), b = v(0), E = v(0);
|
|
203
|
-
function M(c) {
|
|
204
|
-
i.value = !0;
|
|
205
|
-
const w = c.target.documentElement ?? c.target;
|
|
206
|
-
s.value = w.scrollLeft, l.value = w.scrollTop, a.value = s.value < b.value, y.value = s.value > b.value, m.value = l.value < E.value, g.value = l.value > E.value, b.value = s.value, E.value = l.value, D(c), e && e(c);
|
|
207
|
-
}
|
|
208
|
-
const L = ce(M, o);
|
|
209
|
-
function k(c) {
|
|
210
|
-
i.value && (i.value = !1, a.value = !1, y.value = !1, m.value = !1, g.value = !1, n && n(c));
|
|
211
|
-
}
|
|
212
|
-
const D = de(k, o + 200), p = S(() => {
|
|
213
|
-
const c = $(t);
|
|
214
|
-
return c || null;
|
|
215
|
-
});
|
|
216
|
-
H(
|
|
217
|
-
() => p.value,
|
|
218
|
-
(c, w) => {
|
|
219
|
-
var A;
|
|
220
|
-
if (w && V(w), c) {
|
|
221
|
-
const C = ((A = c == null ? void 0 : c.document) == null ? void 0 : A.documentElement) || (c == null ? void 0 : c.documentElement) || c;
|
|
222
|
-
r.value = C.scrollWidth - C.clientWidth, u.value = C.scrollHeight - C.clientHeight, C.addEventListener("scroll", L), C.addEventListener("scrollend", D);
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
immediate: !0,
|
|
227
|
-
flush: "post"
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
function V(c) {
|
|
231
|
-
var A;
|
|
232
|
-
const w = ((A = c == null ? void 0 : c.document) == null ? void 0 : A.documentElement) || (c == null ? void 0 : c.documentElement) || c;
|
|
233
|
-
w.removeEventListener("scroll", L), w.removeEventListener("scrollend", D);
|
|
234
|
-
}
|
|
235
|
-
return O(() => V(p.value)), { x: s, xScrollMax: r, y: l, yScrollMax: u, isScrolling: i, left: a, right: y, top: m, bottom: g };
|
|
236
|
-
}
|
|
237
|
-
function qe() {
|
|
238
|
-
const t = v(0), o = v(0);
|
|
239
|
-
let e = performance.now();
|
|
240
|
-
const n = 10, s = (r) => {
|
|
241
|
-
if (o.value++, o.value >= n) {
|
|
242
|
-
const l = r - e;
|
|
243
|
-
t.value = Math.round(1e3 / (l / n)), e = r, o.value = 0;
|
|
244
|
-
}
|
|
245
|
-
requestAnimationFrame(s);
|
|
246
|
-
};
|
|
247
|
-
return requestAnimationFrame(s), { fps: t };
|
|
248
|
-
}
|
|
249
|
-
function Pe(t) {
|
|
250
|
-
if (!t || typeof t != "string" || t.trim() === "")
|
|
251
|
-
throw new Error("Invalid mediaQuery parameter. It must be a non-empty string.");
|
|
252
|
-
const o = v(window && window.matchMedia(t).matches), e = window.matchMedia(t), n = (s) => {
|
|
253
|
-
o.value = s.matches;
|
|
254
|
-
};
|
|
255
|
-
return I(() => {
|
|
256
|
-
e.addEventListener("change", n);
|
|
257
|
-
}), O(() => {
|
|
258
|
-
e.removeEventListener("change", n);
|
|
259
|
-
}), { match: o };
|
|
260
|
-
}
|
|
261
|
-
function Ge(t, o, e = {}) {
|
|
262
|
-
const n = q(() => window && "ResizeObserver" in window);
|
|
263
|
-
let s;
|
|
264
|
-
const r = v(!1), l = S(() => {
|
|
265
|
-
const m = $(t);
|
|
266
|
-
return m ? Array.isArray(m) ? m.map((g) => $(g)).filter((g) => g) : [m] : [];
|
|
267
|
-
}), u = () => {
|
|
268
|
-
s && (s.disconnect(), s = void 0);
|
|
269
|
-
}, i = () => {
|
|
270
|
-
n.value && l.value.length && !r.value && (s = new ResizeObserver(o), l.value.forEach((m) => s.observe(m, e)));
|
|
271
|
-
};
|
|
272
|
-
H(
|
|
273
|
-
() => l.value,
|
|
274
|
-
() => {
|
|
275
|
-
u(), i();
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
immediate: !0,
|
|
279
|
-
// 立即触发回调,以便初始状态也被观察
|
|
280
|
-
flush: "post"
|
|
281
|
-
}
|
|
282
|
-
);
|
|
283
|
-
const a = () => {
|
|
284
|
-
r.value = !0, u();
|
|
285
|
-
}, y = () => {
|
|
286
|
-
r.value = !1, i();
|
|
287
|
-
};
|
|
288
|
-
return O(() => u()), {
|
|
289
|
-
stop: a,
|
|
290
|
-
start: y
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
function Je(t = "default") {
|
|
294
|
-
const o = K(), e = (n) => {
|
|
295
|
-
var l;
|
|
296
|
-
const s = (l = o[n]) == null ? void 0 : l.call(o), r = (u) => {
|
|
297
|
-
if (u.type === ee || Array.isArray(u.children) && !u.children.length)
|
|
298
|
-
return !1;
|
|
299
|
-
if (u.type !== te)
|
|
300
|
-
return !0;
|
|
301
|
-
if (typeof u.children == "string")
|
|
302
|
-
return u.children.trim() !== "";
|
|
303
|
-
};
|
|
304
|
-
return s && (s != null && s.length) ? s.some((i) => r(i)) : !1;
|
|
305
|
-
};
|
|
306
|
-
if (Array.isArray(t)) {
|
|
307
|
-
const n = X({});
|
|
308
|
-
return t.forEach((s) => {
|
|
309
|
-
const r = S(() => e(s));
|
|
310
|
-
n[s] = r;
|
|
311
|
-
}), n;
|
|
312
|
-
} else
|
|
313
|
-
return S(() => e(t));
|
|
314
|
-
}
|
|
315
|
-
const R = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), me = (t) => JSON.parse(JSON.stringify(t)), fe = "rgba(51, 51, 51, 0.15)", Y = "rgba(51, 51, 51, 1)", ve = 12, ge = (t = !1) => {
|
|
316
|
-
const o = {
|
|
317
|
-
// top: '2%',
|
|
318
|
-
left: "3%",
|
|
319
|
-
right: "3%",
|
|
320
|
-
bottom: "2%",
|
|
321
|
-
containLabel: !0
|
|
322
|
-
};
|
|
323
|
-
return t && (o.top = "5%"), o;
|
|
324
|
-
}, T = [
|
|
325
|
-
"46, 145, 255",
|
|
326
|
-
"48, 212, 183",
|
|
327
|
-
"108, 108, 255",
|
|
328
|
-
"109, 237, 124",
|
|
329
|
-
"128, 218, 236",
|
|
330
|
-
"58, 200, 218",
|
|
331
|
-
"146, 218, 89",
|
|
332
|
-
"118, 218, 218",
|
|
333
|
-
"143, 192, 244",
|
|
334
|
-
"192, 192, 145",
|
|
335
|
-
"153, 136, 204",
|
|
336
|
-
"212, 217, 230",
|
|
337
|
-
"124, 186, 255",
|
|
338
|
-
"209, 182, 225",
|
|
339
|
-
"255, 197, 84",
|
|
340
|
-
"249, 140, 106",
|
|
341
|
-
"246, 179, 82",
|
|
342
|
-
"100, 161, 206",
|
|
343
|
-
"246, 175, 159",
|
|
344
|
-
"238, 97, 97"
|
|
345
|
-
], be = (t = [
|
|
346
|
-
{
|
|
347
|
-
name: "数据1",
|
|
348
|
-
value: 63
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
name: "数据2",
|
|
352
|
-
value: 45
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
name: "数据3",
|
|
356
|
-
value: 43
|
|
357
|
-
}
|
|
358
|
-
], o = { name: "name", value: "value" }) => {
|
|
359
|
-
const e = (s = "rgba(46, 145, 255, 0.7)", r = "rgba(46, 145, 255, 0.2)") => ({
|
|
360
|
-
color: {
|
|
361
|
-
type: "linear",
|
|
362
|
-
x: 0,
|
|
363
|
-
y: 0,
|
|
364
|
-
x2: 0,
|
|
365
|
-
y2: 1,
|
|
366
|
-
colorStops: [
|
|
367
|
-
{
|
|
368
|
-
offset: 0,
|
|
369
|
-
color: s
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
offset: 0.8,
|
|
373
|
-
color: r
|
|
374
|
-
}
|
|
375
|
-
]
|
|
376
|
-
}
|
|
377
|
-
}), n = t.map((s) => s[o.value]);
|
|
378
|
-
return {
|
|
379
|
-
// 提示框组件
|
|
380
|
-
tooltip: {
|
|
381
|
-
trigger: "item"
|
|
382
|
-
//触发类型,axis:坐标轴触发
|
|
383
|
-
},
|
|
384
|
-
// 图例组件
|
|
385
|
-
// legend: {
|
|
386
|
-
// type: 'plain', //plain:普通图例;scroll:可滚动翻页的图例。当图例数量较多时使。
|
|
387
|
-
// show: true,
|
|
388
|
-
// },
|
|
389
|
-
grid: ge(),
|
|
390
|
-
title: {
|
|
391
|
-
show: !0,
|
|
392
|
-
text: "样例数据",
|
|
393
|
-
textStyle: {
|
|
394
|
-
color: "#333",
|
|
395
|
-
fontSize: 18
|
|
396
|
-
},
|
|
397
|
-
x: 10,
|
|
398
|
-
y: 10
|
|
399
|
-
},
|
|
400
|
-
// x 轴设置
|
|
401
|
-
xAxis: [
|
|
402
|
-
{
|
|
403
|
-
type: "category",
|
|
404
|
-
nameGap: 8,
|
|
405
|
-
// X轴名称与轴线之间的距离
|
|
406
|
-
nameRotate: 0,
|
|
407
|
-
// 坐标轴名称旋转
|
|
408
|
-
axisLabel: {
|
|
409
|
-
color: Y,
|
|
410
|
-
// X轴类目名称样式
|
|
411
|
-
rotate: 0
|
|
412
|
-
// X轴类目名称旋转角度
|
|
413
|
-
},
|
|
414
|
-
axisLine: {
|
|
415
|
-
//X轴轴线设置
|
|
416
|
-
show: !0,
|
|
417
|
-
lineStyle: {
|
|
418
|
-
color: fe,
|
|
419
|
-
width: 1
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
axisTick: { show: !1 },
|
|
423
|
-
// X轴刻度相关设置
|
|
424
|
-
splitLine: { show: !1 },
|
|
425
|
-
// 横向分隔线
|
|
426
|
-
data: t.map((s) => s[o.name])
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
// y轴设置
|
|
430
|
-
yAxis: [
|
|
431
|
-
{
|
|
432
|
-
type: "value",
|
|
433
|
-
min: 0,
|
|
434
|
-
// 坐标轴刻度最小值
|
|
435
|
-
position: "left",
|
|
436
|
-
nameTextStyle: {
|
|
437
|
-
fontSize: ve,
|
|
438
|
-
color: Y,
|
|
439
|
-
fontWeight: "bold"
|
|
440
|
-
},
|
|
441
|
-
axisLine: { show: !1 },
|
|
442
|
-
// y轴轴线设置
|
|
443
|
-
axisTick: { show: !1 },
|
|
444
|
-
// 刻度设置
|
|
445
|
-
splitLine: { show: !1 },
|
|
446
|
-
// 纵向分隔线
|
|
447
|
-
axisLabel: {
|
|
448
|
-
color: Y,
|
|
449
|
-
// y轴刻度标签
|
|
450
|
-
formatter: "{value}",
|
|
451
|
-
inside: !1
|
|
452
|
-
// 刻度标签是否朝内,默认朝外
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
],
|
|
456
|
-
series: [
|
|
457
|
-
{
|
|
458
|
-
type: "bar",
|
|
459
|
-
barWidth: 15,
|
|
460
|
-
barGap: "0%",
|
|
461
|
-
itemStyle: e(`rgba(${T[0]}, 0.7)`, `rgba(${T[0]}, 0.2)`),
|
|
462
|
-
data: n,
|
|
463
|
-
label: {
|
|
464
|
-
show: !0,
|
|
465
|
-
// 显示标签
|
|
466
|
-
position: "top",
|
|
467
|
-
// 标签位置
|
|
468
|
-
color: "inherit",
|
|
469
|
-
// 标签颜色
|
|
470
|
-
lineHeight: 24
|
|
471
|
-
// 行高
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
// 柱底圆片
|
|
476
|
-
name: "",
|
|
477
|
-
type: "pictorialBar",
|
|
478
|
-
symbolSize: [15, 10],
|
|
479
|
-
//调整截面形状
|
|
480
|
-
symbolOffset: [0, 5],
|
|
481
|
-
itemStyle: e(`rgba(${T[0]}, 0.7)`, `rgba(${T[0]}, 0.2)`),
|
|
482
|
-
data: n
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
// 柱顶圆片
|
|
486
|
-
name: "",
|
|
487
|
-
type: "pictorialBar",
|
|
488
|
-
symbolSize: [15, 10],
|
|
489
|
-
//调整截面形状
|
|
490
|
-
symbolOffset: [0, -5],
|
|
491
|
-
symbolPosition: "end",
|
|
492
|
-
itemStyle: e(`rgba(${T[0]}, 0.9)`, `rgba(${T[0]}, 1)`),
|
|
493
|
-
data: n
|
|
494
|
-
}
|
|
495
|
-
]
|
|
496
|
-
};
|
|
497
|
-
}, P = [
|
|
498
|
-
{ key: "assets", name: "资产名称" },
|
|
499
|
-
{ key: "type", name: "资产类型" },
|
|
500
|
-
{ key: "data", name: "资产数据" }
|
|
501
|
-
], G = [
|
|
502
|
-
{ assets: "name1", type: "type1", data: "data1" },
|
|
503
|
-
{ assets: "name2", type: "type2", data: "data2" },
|
|
504
|
-
{ assets: "name3", type: "type3", data: "data3" }
|
|
505
|
-
], ye = [
|
|
506
|
-
{ data: [{ name: "默认数据", value: 180 }], label: "name1" },
|
|
507
|
-
{ data: [{ name: "默认数据", value: 311 }], label: "name2" },
|
|
508
|
-
{ data: [{ name: "默认数据", value: 42 }], label: "name3" },
|
|
509
|
-
{ data: [{ name: "默认数据", value: 32391 }], label: "name4" }
|
|
510
|
-
], he = [
|
|
511
|
-
{
|
|
512
|
-
type: "report-select",
|
|
513
|
-
label: "资产:",
|
|
514
|
-
value: "0",
|
|
515
|
-
data: [
|
|
516
|
-
{
|
|
517
|
-
label: "全部",
|
|
518
|
-
data: "0"
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
label: "10.10.2.20_root",
|
|
522
|
-
data: "743dbb32-8a41-4990-9d76-48925b000a93"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
label: "10.10.4.206_sysdba",
|
|
526
|
-
data: "23193788-c895-47a8-8123-65799540394c"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
label: "10.10.4.26_root@/root/files/",
|
|
530
|
-
data: "bb7b07c9-b96b-4caf-ac76-bb45ae849844"
|
|
531
|
-
}
|
|
532
|
-
],
|
|
533
|
-
uri: "/da/report/sens/get_asset_all",
|
|
534
|
-
id: R()
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
type: "range-time",
|
|
538
|
-
data: [
|
|
539
|
-
{
|
|
540
|
-
start_time: "2024-08-20 19:49:34",
|
|
541
|
-
end_time: "2024-09-12 19:49:34"
|
|
542
|
-
}
|
|
543
|
-
],
|
|
544
|
-
id: R()
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
type: "h1",
|
|
548
|
-
data: "报表名称",
|
|
549
|
-
options: {
|
|
550
|
-
size: 24,
|
|
551
|
-
color: "rgba(0,0,0,0.85)",
|
|
552
|
-
fontWeight: 500,
|
|
553
|
-
letterSpacing: 0,
|
|
554
|
-
textIndent: 0,
|
|
555
|
-
textAlign: "left"
|
|
556
|
-
},
|
|
557
|
-
id: R()
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
type: "h2",
|
|
561
|
-
data: "一级标题",
|
|
562
|
-
name: "一级标题",
|
|
563
|
-
options: {
|
|
564
|
-
size: 18,
|
|
565
|
-
color: " rgba(0, 0, 0, 0.85)",
|
|
566
|
-
fontWeight: 500,
|
|
567
|
-
letterSpacing: 0,
|
|
568
|
-
textIndent: 0,
|
|
569
|
-
textAlign: "left"
|
|
570
|
-
},
|
|
571
|
-
id: R()
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
type: "report-table",
|
|
575
|
-
data: G,
|
|
576
|
-
showColumn: P,
|
|
577
|
-
name: "表格",
|
|
578
|
-
options: {
|
|
579
|
-
showColumn: {
|
|
580
|
-
assets: !0,
|
|
581
|
-
type: !0,
|
|
582
|
-
data: !0
|
|
583
|
-
},
|
|
584
|
-
border: !0,
|
|
585
|
-
showHeader: !0,
|
|
586
|
-
stripe: !1
|
|
587
|
-
},
|
|
588
|
-
rp_item_uuid: "",
|
|
589
|
-
id: R()
|
|
590
|
-
}
|
|
591
|
-
];
|
|
592
|
-
be();
|
|
593
|
-
const _e = ae("tds-report", {
|
|
594
|
-
state: () => ({
|
|
595
|
-
componentList: [],
|
|
596
|
-
activeComponents: {},
|
|
597
|
-
notDraggableList: [],
|
|
598
|
-
titleComponent: {},
|
|
599
|
-
filterForm: {
|
|
600
|
-
range_time: 1,
|
|
601
|
-
filter_uuid: ""
|
|
602
|
-
}
|
|
603
|
-
}),
|
|
604
|
-
getters: {
|
|
605
|
-
getActiveComponents: (t) => t.activeComponents
|
|
606
|
-
},
|
|
607
|
-
actions: {
|
|
608
|
-
// setComponentList
|
|
609
|
-
setComponentList(t) {
|
|
610
|
-
this.componentList = t;
|
|
611
|
-
},
|
|
612
|
-
async getReportDemo(t) {
|
|
613
|
-
let o = [];
|
|
614
|
-
t ? o = (await ue({ report_uuid: t })).data : o = { content: me(he), range_time: 1 };
|
|
615
|
-
const e = [];
|
|
616
|
-
o.content.forEach((n) => {
|
|
617
|
-
(n.type === "report-select" || n.type === "range-time") && e.push(n), n.type === "h1" && (this.titleComponent = n), n.id = R();
|
|
618
|
-
}), this.notDraggableList = e, this.filterForm.range_time = o.range_time, this.filterForm.filter_uuid = o.filter_uuid, o.content.splice(0, 3), this.componentList = o.content;
|
|
619
|
-
},
|
|
620
|
-
setActiveComponents(t) {
|
|
621
|
-
this.activeComponents = t;
|
|
622
|
-
},
|
|
623
|
-
clearComponents() {
|
|
624
|
-
this.activeComponents = {}, this.componentList = [], this.notDraggableList = [], this.titleComponent = {}, this.filterForm = {
|
|
625
|
-
range_time: 1,
|
|
626
|
-
filter_uuid: ""
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
}), Se = { key: 0 }, we = { class: "sub-title" }, xe = /* @__PURE__ */ z({
|
|
631
|
-
name: "TdsReportConfig",
|
|
632
|
-
__name: "Config",
|
|
633
|
-
setup(t) {
|
|
634
|
-
const o = _e(), e = S(() => o.activeComponents);
|
|
635
|
-
function n(i) {
|
|
636
|
-
i ? (e.value.options.series[0].radius = ["10%", "65%"], e.value.options.graphic[0].invisible = !0, e.value.options.graphic[1].invisible = !0) : (e.value.options.series[0].radius = ["45%", "70%"], e.value.options.graphic[0].invisible = !1, e.value.options.graphic[1].invisible = !1);
|
|
637
|
-
}
|
|
638
|
-
const s = v("rgb(46, 145, 255)"), r = (i = "rgba(46, 145, 255, 0.7)", a = "rgba(46, 145, 255, 0.2)") => ({
|
|
639
|
-
color: {
|
|
640
|
-
type: "linear",
|
|
641
|
-
x: 0,
|
|
642
|
-
y: 0,
|
|
643
|
-
x2: 0,
|
|
644
|
-
y2: 1,
|
|
645
|
-
colorStops: [
|
|
646
|
-
{
|
|
647
|
-
offset: 0,
|
|
648
|
-
color: i
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
offset: 0.8,
|
|
652
|
-
color: a
|
|
653
|
-
}
|
|
654
|
-
]
|
|
655
|
-
}
|
|
656
|
-
});
|
|
657
|
-
function l(i) {
|
|
658
|
-
i && (o.activeComponents.options.series[0].itemStyle = r(u(i, 0.7), u(i, 0.2)), o.activeComponents.options.series[1].itemStyle = r(u(i, 0.7), u(i, 0.2)), o.activeComponents.options.series[2].itemStyle = r(u(i, 0.9), u(i, 1)));
|
|
659
|
-
}
|
|
660
|
-
function u(i, a = 1) {
|
|
661
|
-
i = i.replace(/^#/, "");
|
|
662
|
-
const y = parseInt(i.substring(0, 2), 16), m = parseInt(i.substring(2, 4), 16), g = parseInt(i.substring(4, 6), 16);
|
|
663
|
-
return `rgba(${y}, ${m}, ${g}, ${a})`;
|
|
664
|
-
}
|
|
665
|
-
return (i, a) => {
|
|
666
|
-
const y = h("el-input"), m = h("el-form-item"), g = h("el-switch"), b = h("el-col"), E = h("el-color-picker"), M = h("el-input-number"), L = h("el-row"), k = h("el-collapse-item"), D = h("el-collapse");
|
|
667
|
-
return e.value.options.title ? (x(), B("div", Se, [
|
|
668
|
-
d(m, { label: "标题" }, {
|
|
669
|
-
default: f(() => [
|
|
670
|
-
d(y, {
|
|
671
|
-
modelValue: e.value.options.title.text,
|
|
672
|
-
"onUpdate:modelValue": a[0] || (a[0] = (p) => e.value.options.title.text = p)
|
|
673
|
-
}, null, 8, ["modelValue"])
|
|
674
|
-
]),
|
|
675
|
-
_: 1
|
|
676
|
-
}),
|
|
677
|
-
d(D, null, {
|
|
678
|
-
default: f(() => [
|
|
679
|
-
d(k, {
|
|
680
|
-
title: "标题配置",
|
|
681
|
-
name: "1"
|
|
682
|
-
}, {
|
|
683
|
-
default: f(() => [
|
|
684
|
-
d(L, { class: "w-100%" }, {
|
|
685
|
-
default: f(() => [
|
|
686
|
-
d(b, { span: 24 }, {
|
|
687
|
-
default: f(() => [
|
|
688
|
-
a[9] || (a[9] = _("span", { class: "switch-label" }, "显示标题", -1)),
|
|
689
|
-
d(g, {
|
|
690
|
-
modelValue: e.value.options.title.show,
|
|
691
|
-
"onUpdate:modelValue": a[1] || (a[1] = (p) => e.value.options.title.show = p)
|
|
692
|
-
}, null, 8, ["modelValue"])
|
|
693
|
-
]),
|
|
694
|
-
_: 1
|
|
695
|
-
}),
|
|
696
|
-
d(b, { span: 12 }, {
|
|
697
|
-
default: f(() => [
|
|
698
|
-
d(E, {
|
|
699
|
-
modelValue: e.value.options.title.textStyle.color,
|
|
700
|
-
"onUpdate:modelValue": a[2] || (a[2] = (p) => e.value.options.title.textStyle.color = p),
|
|
701
|
-
"show-alpha": ""
|
|
702
|
-
}, null, 8, ["modelValue"]),
|
|
703
|
-
a[10] || (a[10] = _("p", { class: "sub-title" }, "颜色", -1))
|
|
704
|
-
]),
|
|
705
|
-
_: 1
|
|
706
|
-
}),
|
|
707
|
-
d(b, { span: 12 }, {
|
|
708
|
-
default: f(() => [
|
|
709
|
-
d(M, {
|
|
710
|
-
modelValue: e.value.options.title.textStyle.fontSize,
|
|
711
|
-
"onUpdate:modelValue": a[3] || (a[3] = (p) => e.value.options.title.textStyle.fontSize = p),
|
|
712
|
-
"controls-position": "right"
|
|
713
|
-
}, null, 8, ["modelValue"]),
|
|
714
|
-
a[11] || (a[11] = _("p", { class: "sub-title" }, "字体大小", -1))
|
|
715
|
-
]),
|
|
716
|
-
_: 1
|
|
717
|
-
}),
|
|
718
|
-
d(b, { span: 12 }, {
|
|
719
|
-
default: f(() => [
|
|
720
|
-
d(M, {
|
|
721
|
-
modelValue: e.value.options.title.x,
|
|
722
|
-
"onUpdate:modelValue": a[4] || (a[4] = (p) => e.value.options.title.x = p),
|
|
723
|
-
"controls-position": "right"
|
|
724
|
-
}, null, 8, ["modelValue"]),
|
|
725
|
-
a[12] || (a[12] = _("p", { class: "sub-title" }, "横向", -1))
|
|
726
|
-
]),
|
|
727
|
-
_: 1
|
|
728
|
-
}),
|
|
729
|
-
d(b, { span: 12 }, {
|
|
730
|
-
default: f(() => [
|
|
731
|
-
d(M, {
|
|
732
|
-
modelValue: e.value.options.title.y,
|
|
733
|
-
"onUpdate:modelValue": a[5] || (a[5] = (p) => e.value.options.title.y = p),
|
|
734
|
-
"controls-position": "right"
|
|
735
|
-
}, null, 8, ["modelValue"]),
|
|
736
|
-
a[13] || (a[13] = _("p", { class: "sub-title" }, "纵向", -1))
|
|
737
|
-
]),
|
|
738
|
-
_: 1
|
|
739
|
-
})
|
|
740
|
-
]),
|
|
741
|
-
_: 1
|
|
742
|
-
})
|
|
743
|
-
]),
|
|
744
|
-
_: 1
|
|
745
|
-
}),
|
|
746
|
-
d(k, {
|
|
747
|
-
title: "图形配置",
|
|
748
|
-
name: "2"
|
|
749
|
-
}, {
|
|
750
|
-
default: f(() => [
|
|
751
|
-
e.value.options.color && e.value.options.color.length && e.value.type === "pie" ? (x(), U(L, { key: 0 }, {
|
|
752
|
-
default: f(() => [
|
|
753
|
-
d(b, { span: 24 }, {
|
|
754
|
-
default: f(() => [
|
|
755
|
-
a[14] || (a[14] = _("span", { class: "switch-label" }, "玫瑰图", -1)),
|
|
756
|
-
d(g, {
|
|
757
|
-
onChange: n,
|
|
758
|
-
modelValue: e.value.options.series[0].roseType,
|
|
759
|
-
"onUpdate:modelValue": a[6] || (a[6] = (p) => e.value.options.series[0].roseType = p)
|
|
760
|
-
}, null, 8, ["modelValue"])
|
|
761
|
-
]),
|
|
762
|
-
_: 1
|
|
763
|
-
}),
|
|
764
|
-
(x(!0), B(oe, null, ne(e.value.data, (p, V) => (x(), U(b, {
|
|
765
|
-
span: 12,
|
|
766
|
-
class: "mb-10px",
|
|
767
|
-
key: V
|
|
768
|
-
}, {
|
|
769
|
-
default: f(() => [
|
|
770
|
-
d(E, {
|
|
771
|
-
modelValue: e.value.options.color[V],
|
|
772
|
-
"onUpdate:modelValue": (c) => e.value.options.color[V] = c,
|
|
773
|
-
"show-alpha": ""
|
|
774
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
775
|
-
_("p", we, se(p.label), 1)
|
|
776
|
-
]),
|
|
777
|
-
_: 2
|
|
778
|
-
}, 1024))), 128))
|
|
779
|
-
]),
|
|
780
|
-
_: 1
|
|
781
|
-
})) : F("", !0),
|
|
782
|
-
e.value.type === "bar" ? (x(), U(L, { key: 1 }, {
|
|
783
|
-
default: f(() => [
|
|
784
|
-
d(b, { span: 12 }, {
|
|
785
|
-
default: f(() => [
|
|
786
|
-
d(E, {
|
|
787
|
-
modelValue: s.value,
|
|
788
|
-
"onUpdate:modelValue": a[7] || (a[7] = (p) => s.value = p),
|
|
789
|
-
onChange: l
|
|
790
|
-
}, null, 8, ["modelValue"]),
|
|
791
|
-
a[15] || (a[15] = _("p", { class: "sub-title" }, "柱颜色", -1))
|
|
792
|
-
]),
|
|
793
|
-
_: 1
|
|
794
|
-
})
|
|
795
|
-
]),
|
|
796
|
-
_: 1
|
|
797
|
-
})) : F("", !0)
|
|
798
|
-
]),
|
|
799
|
-
_: 1
|
|
800
|
-
}),
|
|
801
|
-
d(k, {
|
|
802
|
-
title: "图例配置",
|
|
803
|
-
name: "3"
|
|
804
|
-
}, {
|
|
805
|
-
default: f(() => [
|
|
806
|
-
d(L, null, {
|
|
807
|
-
default: f(() => [
|
|
808
|
-
d(b, { span: 24 }, {
|
|
809
|
-
default: f(() => [
|
|
810
|
-
a[16] || (a[16] = _("span", { class: "switch-label" }, "显示图例", -1)),
|
|
811
|
-
e.value.options.legend ? (x(), U(g, {
|
|
812
|
-
key: 0,
|
|
813
|
-
modelValue: e.value.options.legend.show,
|
|
814
|
-
"onUpdate:modelValue": a[8] || (a[8] = (p) => e.value.options.legend.show = p)
|
|
815
|
-
}, null, 8, ["modelValue"])) : F("", !0)
|
|
816
|
-
]),
|
|
817
|
-
_: 1
|
|
818
|
-
})
|
|
819
|
-
]),
|
|
820
|
-
_: 1
|
|
821
|
-
})
|
|
822
|
-
]),
|
|
823
|
-
_: 1
|
|
824
|
-
})
|
|
825
|
-
]),
|
|
826
|
-
_: 1
|
|
827
|
-
})
|
|
828
|
-
])) : F("", !0);
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
}), Ee = (t, o) => {
|
|
832
|
-
const e = t.__vccOpts || t;
|
|
833
|
-
for (const [n, s] of o)
|
|
834
|
-
e[n] = s;
|
|
835
|
-
return e;
|
|
836
|
-
}, Le = /* @__PURE__ */ Ee(xe, [["__scopeId", "data-v-9d35239c"]]), Ve = N(Le), Ce = { class: "chart-components" }, Te = /* @__PURE__ */ z({
|
|
837
|
-
name: "TdsReportLine",
|
|
838
|
-
__name: "Line",
|
|
839
|
-
props: {
|
|
840
|
-
data: {}
|
|
841
|
-
},
|
|
842
|
-
setup(t) {
|
|
843
|
-
const o = t, e = S(() => o.data.options);
|
|
844
|
-
return (n, s) => {
|
|
845
|
-
const r = h("TdsChart");
|
|
846
|
-
return x(), B("div", Ce, [
|
|
847
|
-
d(r, { option: e.value }, null, 8, ["option"])
|
|
848
|
-
]);
|
|
849
|
-
};
|
|
850
|
-
}
|
|
851
|
-
}), Re = N(Te), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
852
|
-
__proto__: null,
|
|
853
|
-
TdsReportBar: ie,
|
|
854
|
-
TdsReportConfig: Ve,
|
|
855
|
-
TdsReportLine: Re
|
|
856
|
-
}, Symbol.toStringTag, { value: "Module" })), J = {
|
|
857
|
-
TdsReportBar: "TdsReportBar"
|
|
858
|
-
}, j = {
|
|
859
|
-
BackTop: ["Tooltip"]
|
|
860
|
-
};
|
|
861
|
-
function ke(t, o) {
|
|
862
|
-
if (["NumberAnimation", "Watermark"].includes(t))
|
|
863
|
-
return [];
|
|
864
|
-
const e = [t];
|
|
865
|
-
t in j && e.push(...j[t]);
|
|
866
|
-
const n = o != null && o.cjs ? "lib" : "es", s = [`@topdatasec/report/${n}/style/global.css`];
|
|
867
|
-
return e.forEach((r) => {
|
|
868
|
-
s.push(
|
|
869
|
-
`@topdatasec/report/${n}/${J[r]}/${r}.css`
|
|
870
|
-
);
|
|
871
|
-
}), s;
|
|
872
|
-
}
|
|
873
|
-
function Ze(t) {
|
|
874
|
-
return {
|
|
875
|
-
type: "component",
|
|
876
|
-
resolve: (o) => {
|
|
877
|
-
if (o in J)
|
|
878
|
-
return {
|
|
879
|
-
name: o,
|
|
880
|
-
// 组件名
|
|
881
|
-
from: "@topdatasec/report",
|
|
882
|
-
// 组件库名称
|
|
883
|
-
sideEffects: ke(o, t)
|
|
884
|
-
// 组件样式文件
|
|
885
|
-
};
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
}
|
|
889
|
-
const De = function(t) {
|
|
890
|
-
return Object.values(Me).forEach((o) => {
|
|
891
|
-
o && o.install && t.use(o);
|
|
892
|
-
}), t;
|
|
893
|
-
}, Ke = {
|
|
894
|
-
install: De
|
|
895
|
-
};
|
|
896
|
-
export {
|
|
897
|
-
ie as TdsReportBar,
|
|
898
|
-
Ve as TdsReportConfig,
|
|
899
|
-
Re as TdsReportLine,
|
|
900
|
-
Ze as VueAmazingUIResolver,
|
|
901
|
-
ze as add,
|
|
902
|
-
Ye as cancelRaf,
|
|
903
|
-
Ue as dateFormat,
|
|
904
|
-
de as debounce,
|
|
905
|
-
Ke as default,
|
|
906
|
-
Ie as downloadFile,
|
|
907
|
-
Be as formatNumber,
|
|
908
|
-
De as install,
|
|
909
|
-
Oe as rafTimeout,
|
|
910
|
-
ce as throttle,
|
|
911
|
-
He as toggleDark,
|
|
912
|
-
Ne as useEventListener,
|
|
913
|
-
qe as useFps,
|
|
914
|
-
Pe as useMediaQuery,
|
|
915
|
-
We as useMutationObserver,
|
|
916
|
-
Ge as useResizeObserver,
|
|
917
|
-
je as useScroll,
|
|
918
|
-
Je as useSlotsExist
|
|
919
|
-
};
|