@topdatasec/report 1.0.9 → 1.0.11
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/style.css +1 -0
- package/lib/t-report-ui.es.js +26420 -0
- package/lib/t-report-ui.umd.js +205 -0
- package/package.json +66 -88
- package/README.zh-CN.md +0 -0
- package/dist/index.iife.js +0 -2
- package/dist/index.js +0 -2041
- package/dist/index.umd.cjs +0 -2
- package/dist/style.css +0 -1
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/es/bar/Bar.d.ts +0 -5
- 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 -15
- package/es/components.js +0 -30
- package/es/config/Config.css +0 -1
- package/es/config/Config.d.ts +0 -2
- 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 -60
- package/es/line/Line.d.ts +0 -5
- 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/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
- package/es/pie/Pie.d.ts +0 -5
- package/es/pie/Pie.vue.js +0 -20
- package/es/pie/Pie.vue2.js +0 -4
- package/es/pie/index.d.ts +0 -15
- package/es/pie/index.js +0 -6
- package/es/report/Report.d.ts +0 -7
- package/es/report/Report.vue.js +0 -112
- package/es/report/Report.vue2.js +0 -4
- package/es/report/index.d.ts +0 -17
- package/es/report/index.js +0 -6
- package/es/select/Select.d.ts +0 -9
- package/es/select/Select.vue.js +0 -39
- package/es/select/Select.vue2.js +0 -4
- package/es/select/index.d.ts +0 -25
- package/es/select/index.js +0 -6
- package/es/settingCharts/SettingCharts.d.ts +0 -5
- package/es/settingCharts/SettingCharts.vue.js +0 -142
- package/es/settingCharts/SettingCharts.vue2.js +0 -4
- package/es/settingCharts/index.d.ts +0 -14
- package/es/settingCharts/index.js +0 -6
- package/es/settingFilter/index.d.ts +0 -15
- package/es/settingFilter/index.js +0 -6
- package/es/settingFilter/settingFilter.d.ts +0 -5
- package/es/settingFilter/settingFilter.vue.js +0 -62
- package/es/settingFilter/settingFilter.vue2.js +0 -4
- package/es/settingTable/SettingTable.d.ts +0 -2
- package/es/settingTable/SettingTable.vue.js +0 -59
- package/es/settingTable/SettingTable.vue2.js +0 -4
- package/es/settingTable/index.d.ts +0 -14
- package/es/settingTable/index.js +0 -6
- package/es/settingText/index.d.ts +0 -15
- package/es/settingText/index.js +0 -6
- package/es/settingText/settingText.d.ts +0 -5
- package/es/settingText/settingText.vue.js +0 -112
- package/es/settingText/settingText.vue2.js +0 -4
- package/es/settingTitle/index.d.ts +0 -14
- package/es/settingTitle/index.js +0 -6
- package/es/settingTitle/settingTitle.css +0 -1
- package/es/settingTitle/settingTitle.d.ts +0 -2
- package/es/settingTitle/settingTitle.vue.js +0 -7
- package/es/settingTitle/settingTitle.vue2.js +0 -137
- 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/Table.d.ts +0 -5
- package/es/table/Table.vue.js +0 -26
- package/es/table/Table.vue2.js +0 -4
- package/es/table/index.d.ts +0 -15
- package/es/table/index.js +0 -6
- package/es/text/Text.d.ts +0 -5
- package/es/text/Text.vue.js +0 -27
- package/es/text/Text.vue2.js +0 -4
- package/es/text/index.d.ts +0 -15
- package/es/text/index.js +0 -6
- package/es/time/Time.d.ts +0 -9
- package/es/time/Time.vue.js +0 -35
- package/es/time/Time.vue2.js +0 -4
- package/es/time/index.d.ts +0 -25
- package/es/time/index.js +0 -6
- package/es/utils/api.d.ts +0 -12
- package/es/utils/api.js +0 -32
- package/es/utils/chartsOption.d.ts +0 -298
- package/es/utils/chartsOption.js +0 -501
- package/es/utils/data.d.ts +0 -4
- package/es/utils/data.js +0 -162
- 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 -49
- 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 -15
- package/lib/config/Config.css +0 -1
- package/lib/config/Config.d.ts +0 -2
- 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/index.d.ts +0 -10
- 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/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
- package/lib/pie/Pie.d.ts +0 -5
- package/lib/pie/Pie.vue.cjs +0 -1
- package/lib/pie/Pie.vue2.cjs +0 -1
- package/lib/pie/index.cjs +0 -1
- package/lib/pie/index.d.ts +0 -15
- package/lib/report/Report.d.ts +0 -7
- package/lib/report/Report.vue.cjs +0 -1
- package/lib/report/Report.vue2.cjs +0 -1
- package/lib/report/index.cjs +0 -1
- package/lib/report/index.d.ts +0 -17
- package/lib/select/Select.d.ts +0 -9
- package/lib/select/Select.vue.cjs +0 -1
- package/lib/select/Select.vue2.cjs +0 -1
- package/lib/select/index.cjs +0 -1
- package/lib/select/index.d.ts +0 -25
- package/lib/settingCharts/SettingCharts.d.ts +0 -5
- package/lib/settingCharts/SettingCharts.vue.cjs +0 -1
- package/lib/settingCharts/SettingCharts.vue2.cjs +0 -1
- package/lib/settingCharts/index.cjs +0 -1
- package/lib/settingCharts/index.d.ts +0 -14
- package/lib/settingFilter/index.cjs +0 -1
- package/lib/settingFilter/index.d.ts +0 -15
- package/lib/settingFilter/settingFilter.d.ts +0 -5
- package/lib/settingFilter/settingFilter.vue.cjs +0 -1
- package/lib/settingFilter/settingFilter.vue2.cjs +0 -1
- package/lib/settingTable/SettingTable.d.ts +0 -2
- package/lib/settingTable/SettingTable.vue.cjs +0 -1
- package/lib/settingTable/SettingTable.vue2.cjs +0 -1
- package/lib/settingTable/index.cjs +0 -1
- package/lib/settingTable/index.d.ts +0 -14
- package/lib/settingText/index.cjs +0 -1
- package/lib/settingText/index.d.ts +0 -15
- package/lib/settingText/settingText.d.ts +0 -5
- package/lib/settingText/settingText.vue.cjs +0 -1
- package/lib/settingText/settingText.vue2.cjs +0 -1
- package/lib/settingTitle/index.cjs +0 -1
- package/lib/settingTitle/index.d.ts +0 -14
- package/lib/settingTitle/settingTitle.css +0 -1
- package/lib/settingTitle/settingTitle.d.ts +0 -2
- package/lib/settingTitle/settingTitle.vue.cjs +0 -1
- package/lib/settingTitle/settingTitle.vue2.cjs +0 -1
- package/lib/stores/interface/index.d.ts +0 -18
- package/lib/stores/modules/report.cjs +0 -1
- package/lib/stores/modules/report.d.ts +0 -35
- package/lib/style/global.css +0 -1
- package/lib/table/Table.d.ts +0 -5
- package/lib/table/Table.vue.cjs +0 -1
- package/lib/table/Table.vue2.cjs +0 -1
- package/lib/table/index.cjs +0 -1
- package/lib/table/index.d.ts +0 -15
- package/lib/text/Text.d.ts +0 -5
- package/lib/text/Text.vue.cjs +0 -1
- package/lib/text/Text.vue2.cjs +0 -1
- package/lib/text/index.cjs +0 -1
- package/lib/text/index.d.ts +0 -15
- package/lib/time/Time.d.ts +0 -9
- package/lib/time/Time.vue.cjs +0 -1
- package/lib/time/Time.vue2.cjs +0 -1
- package/lib/time/index.cjs +0 -1
- package/lib/time/index.d.ts +0 -25
- package/lib/utils/api.cjs +0 -1
- package/lib/utils/api.d.ts +0 -12
- package/lib/utils/chartsOption.cjs +0 -2
- package/lib/utils/chartsOption.d.ts +0 -298
- package/lib/utils/data.cjs +0 -1
- package/lib/utils/data.d.ts +0 -4
- package/lib/utils/index.cjs +0 -1
- package/lib/utils/index.d.ts +0 -43
- 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/utils/index.js
DELETED
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
import { onMounted as x, onUnmounted as T, ref as f, computed as h, toValue as S, watch as L, onBeforeUnmount as w, useSlots as H, reactive as R, getCurrentInstance as k, Comment as U, Text as V } from "vue";
|
|
2
|
-
function j(e = Date.now(), n = "YYYY-MM-DD HH:mm:ss") {
|
|
3
|
-
try {
|
|
4
|
-
let t;
|
|
5
|
-
if (typeof e == "number" || typeof e == "string") {
|
|
6
|
-
if (t = new Date(e), isNaN(t.getTime()))
|
|
7
|
-
throw new Error("Invalid date");
|
|
8
|
-
} else
|
|
9
|
-
t = e;
|
|
10
|
-
const r = (i, s = 2) => String(i).padStart(s, "0"), o = (i) => {
|
|
11
|
-
switch (i) {
|
|
12
|
-
case "YYYY":
|
|
13
|
-
return r(t.getFullYear());
|
|
14
|
-
case "YY":
|
|
15
|
-
return r(t.getFullYear()).slice(2, 4);
|
|
16
|
-
case "MM":
|
|
17
|
-
return r(t.getMonth() + 1);
|
|
18
|
-
case "M":
|
|
19
|
-
return String(t.getMonth() + 1);
|
|
20
|
-
case "DD":
|
|
21
|
-
return r(t.getDate());
|
|
22
|
-
case "D":
|
|
23
|
-
return String(t.getDate());
|
|
24
|
-
case "HH":
|
|
25
|
-
return r(t.getHours());
|
|
26
|
-
case "H":
|
|
27
|
-
return String(t.getHours());
|
|
28
|
-
case "mm":
|
|
29
|
-
return r(t.getMinutes());
|
|
30
|
-
case "m":
|
|
31
|
-
return String(t.getMinutes());
|
|
32
|
-
case "ss":
|
|
33
|
-
return r(t.getSeconds());
|
|
34
|
-
case "s":
|
|
35
|
-
return String(t.getSeconds());
|
|
36
|
-
case "SSS":
|
|
37
|
-
return r(t.getMilliseconds(), 3);
|
|
38
|
-
default:
|
|
39
|
-
return i;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
return n.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g, o);
|
|
43
|
-
} catch (t) {
|
|
44
|
-
return console.error("Error formatting date:", t), "";
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function J(e, n = 2, t = ",", r = ".", o, i) {
|
|
48
|
-
typeof e != "number" && typeof e != "string" && console.warn("Expected value to be of type number or string"), typeof n != "number" && console.warn("Expected precision to be of type number");
|
|
49
|
-
const s = Number(e);
|
|
50
|
-
if (isNaN(s) || !isFinite(s))
|
|
51
|
-
return "";
|
|
52
|
-
if (s === 0)
|
|
53
|
-
return s.toFixed(n);
|
|
54
|
-
let c = s.toFixed(n);
|
|
55
|
-
if (typeof t == "string" && t !== "") {
|
|
56
|
-
const [l, d] = c.split(".");
|
|
57
|
-
c = l.replace(/(\d)(?=(\d{3})+$)/g, "$1" + t) + (d ? r + d : "");
|
|
58
|
-
}
|
|
59
|
-
return (o || "") + c + (i || "");
|
|
60
|
-
}
|
|
61
|
-
function P(e, n = 0, t = !1) {
|
|
62
|
-
let r = null;
|
|
63
|
-
function o(s) {
|
|
64
|
-
if (r || (r = s), s - r >= n) {
|
|
65
|
-
try {
|
|
66
|
-
e();
|
|
67
|
-
} catch (l) {
|
|
68
|
-
console.error("Error executing rafTimeout function:", l);
|
|
69
|
-
}
|
|
70
|
-
t && (r = s, i.id = requestAnimationFrame(o));
|
|
71
|
-
} else
|
|
72
|
-
i.id = requestAnimationFrame(o);
|
|
73
|
-
}
|
|
74
|
-
const i = {
|
|
75
|
-
id: requestAnimationFrame(o)
|
|
76
|
-
};
|
|
77
|
-
return i;
|
|
78
|
-
}
|
|
79
|
-
function W(e) {
|
|
80
|
-
e && e.id && typeof e.id == "number" ? cancelAnimationFrame(e.id) : console.warn("cancelRaf received an invalid id:", e);
|
|
81
|
-
}
|
|
82
|
-
function q(e, n = 300) {
|
|
83
|
-
let t = !0;
|
|
84
|
-
return function(...r) {
|
|
85
|
-
return t && (e(...r), t = !1, setTimeout(() => {
|
|
86
|
-
t = !0;
|
|
87
|
-
}, n)), !1;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
function I(e, n = 300) {
|
|
91
|
-
let t = null;
|
|
92
|
-
return function(...r) {
|
|
93
|
-
t && clearTimeout(t), t = setTimeout(() => {
|
|
94
|
-
e(...r);
|
|
95
|
-
}, n);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
function $(e, n) {
|
|
99
|
-
if (Number.isNaN(e) || Number.isNaN(n))
|
|
100
|
-
throw new Error("Both num1 and num2 must be valid numbers.");
|
|
101
|
-
const t = e % 1 !== 0, r = n % 1 !== 0;
|
|
102
|
-
if (!t && !r)
|
|
103
|
-
return e + n;
|
|
104
|
-
const o = String(e).split(".")[1] ?? "", i = String(n).split(".")[1] ?? "", s = Math.max(o.length, i.length), c = Math.pow(10, s), l = e.toFixed(s), d = n.toFixed(s);
|
|
105
|
-
return (+l.replace(".", "") + +d.replace(".", "")) / c;
|
|
106
|
-
}
|
|
107
|
-
function C(e, n) {
|
|
108
|
-
if (!e) {
|
|
109
|
-
console.error("无效的 url");
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
const t = n || e.split("?")[0].split("/").pop() || "download";
|
|
113
|
-
try {
|
|
114
|
-
fetch(e).then((r) => {
|
|
115
|
-
r.ok ? r.blob().then((o) => {
|
|
116
|
-
const i = URL.createObjectURL(o), s = document.createElement("a");
|
|
117
|
-
s.href = i, s.download = t, document.body.appendChild(s), s.click(), document.body.removeChild(s), URL.revokeObjectURL(i);
|
|
118
|
-
}) : console.error("请求文件失败,状态码:", r.status);
|
|
119
|
-
});
|
|
120
|
-
} catch (r) {
|
|
121
|
-
console.error("文件下载失败:", r);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
function Z() {
|
|
125
|
-
const e = document.documentElement;
|
|
126
|
-
e.classList.toggle("dark"), e.classList.contains("dark") ? e.style.colorScheme = "dark" : e.style.colorScheme = "light";
|
|
127
|
-
}
|
|
128
|
-
function z() {
|
|
129
|
-
const e = f(!1), n = k();
|
|
130
|
-
return n && x(() => {
|
|
131
|
-
e.value = !0;
|
|
132
|
-
}, n), e;
|
|
133
|
-
}
|
|
134
|
-
function A(e) {
|
|
135
|
-
const n = z();
|
|
136
|
-
return h(() => (n.value, !!e()));
|
|
137
|
-
}
|
|
138
|
-
function G(e, n, t) {
|
|
139
|
-
x(() => e.addEventListener(n, t)), T(() => e.removeEventListener(n, t));
|
|
140
|
-
}
|
|
141
|
-
function K(e, n, t = {}) {
|
|
142
|
-
const r = A(() => window && "MutationObserver" in window), o = f(!1);
|
|
143
|
-
let i;
|
|
144
|
-
const s = h(() => {
|
|
145
|
-
const a = S(e);
|
|
146
|
-
return a ? Array.isArray(a) ? a.map((m) => S(m)).filter((m) => m) : [a] : [];
|
|
147
|
-
}), c = () => {
|
|
148
|
-
i && (i.disconnect(), i = void 0);
|
|
149
|
-
}, l = () => {
|
|
150
|
-
r.value && s.value.length && !o.value && (i = new MutationObserver(n), s.value.forEach((a) => i.observe(a, t)));
|
|
151
|
-
};
|
|
152
|
-
L(
|
|
153
|
-
() => s.value,
|
|
154
|
-
() => {
|
|
155
|
-
c(), l();
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
immediate: !0,
|
|
159
|
-
// 立即触发回调,以便初始状态也被观察
|
|
160
|
-
flush: "post"
|
|
161
|
-
}
|
|
162
|
-
);
|
|
163
|
-
const d = () => {
|
|
164
|
-
o.value = !0, c();
|
|
165
|
-
}, v = () => {
|
|
166
|
-
o.value = !1, l();
|
|
167
|
-
};
|
|
168
|
-
return w(() => c()), {
|
|
169
|
-
stop: d,
|
|
170
|
-
start: v
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function X(e = window, n = 0, t, r) {
|
|
174
|
-
const o = f(0), i = f(0), s = f(0), c = f(0), l = f(!1), d = f(!1), v = f(!1), a = f(!1), m = f(!1), E = f(0), y = f(0);
|
|
175
|
-
function N(u) {
|
|
176
|
-
l.value = !0;
|
|
177
|
-
const p = u.target.documentElement ?? u.target;
|
|
178
|
-
o.value = p.scrollLeft, s.value = p.scrollTop, d.value = o.value < E.value, v.value = o.value > E.value, a.value = s.value < y.value, m.value = s.value > y.value, E.value = o.value, y.value = s.value, M(u), t && t(u);
|
|
179
|
-
}
|
|
180
|
-
const Y = q(N, n);
|
|
181
|
-
function O(u) {
|
|
182
|
-
l.value && (l.value = !1, d.value = !1, v.value = !1, a.value = !1, m.value = !1, r && r(u));
|
|
183
|
-
}
|
|
184
|
-
const M = I(O, n + 200), F = h(() => {
|
|
185
|
-
const u = S(e);
|
|
186
|
-
return u || null;
|
|
187
|
-
});
|
|
188
|
-
L(
|
|
189
|
-
() => F.value,
|
|
190
|
-
(u, p) => {
|
|
191
|
-
var b;
|
|
192
|
-
if (p && D(p), u) {
|
|
193
|
-
const g = ((b = u == null ? void 0 : u.document) == null ? void 0 : b.documentElement) || (u == null ? void 0 : u.documentElement) || u;
|
|
194
|
-
i.value = g.scrollWidth - g.clientWidth, c.value = g.scrollHeight - g.clientHeight, g.addEventListener("scroll", Y), g.addEventListener("scrollend", M);
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
immediate: !0,
|
|
199
|
-
flush: "post"
|
|
200
|
-
}
|
|
201
|
-
);
|
|
202
|
-
function D(u) {
|
|
203
|
-
var b;
|
|
204
|
-
const p = ((b = u == null ? void 0 : u.document) == null ? void 0 : b.documentElement) || (u == null ? void 0 : u.documentElement) || u;
|
|
205
|
-
p.removeEventListener("scroll", Y), p.removeEventListener("scrollend", M);
|
|
206
|
-
}
|
|
207
|
-
return w(() => D(F.value)), { x: o, xScrollMax: i, y: s, yScrollMax: c, isScrolling: l, left: d, right: v, top: a, bottom: m };
|
|
208
|
-
}
|
|
209
|
-
function _() {
|
|
210
|
-
const e = f(0), n = f(0);
|
|
211
|
-
let t = performance.now();
|
|
212
|
-
const r = 10, o = (i) => {
|
|
213
|
-
if (n.value++, n.value >= r) {
|
|
214
|
-
const s = i - t;
|
|
215
|
-
e.value = Math.round(1e3 / (s / r)), t = i, n.value = 0;
|
|
216
|
-
}
|
|
217
|
-
requestAnimationFrame(o);
|
|
218
|
-
};
|
|
219
|
-
return requestAnimationFrame(o), { fps: e };
|
|
220
|
-
}
|
|
221
|
-
function Q(e) {
|
|
222
|
-
if (!e || typeof e != "string" || e.trim() === "")
|
|
223
|
-
throw new Error("Invalid mediaQuery parameter. It must be a non-empty string.");
|
|
224
|
-
const n = f(window && window.matchMedia(e).matches), t = window.matchMedia(e), r = (o) => {
|
|
225
|
-
n.value = o.matches;
|
|
226
|
-
};
|
|
227
|
-
return x(() => {
|
|
228
|
-
t.addEventListener("change", r);
|
|
229
|
-
}), w(() => {
|
|
230
|
-
t.removeEventListener("change", r);
|
|
231
|
-
}), { match: n };
|
|
232
|
-
}
|
|
233
|
-
function ee(e, n, t = {}) {
|
|
234
|
-
const r = A(() => window && "ResizeObserver" in window);
|
|
235
|
-
let o;
|
|
236
|
-
const i = f(!1), s = h(() => {
|
|
237
|
-
const a = S(e);
|
|
238
|
-
return a ? Array.isArray(a) ? a.map((m) => S(m)).filter((m) => m) : [a] : [];
|
|
239
|
-
}), c = () => {
|
|
240
|
-
o && (o.disconnect(), o = void 0);
|
|
241
|
-
}, l = () => {
|
|
242
|
-
r.value && s.value.length && !i.value && (o = new ResizeObserver(n), s.value.forEach((a) => o.observe(a, t)));
|
|
243
|
-
};
|
|
244
|
-
L(
|
|
245
|
-
() => s.value,
|
|
246
|
-
() => {
|
|
247
|
-
c(), l();
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
immediate: !0,
|
|
251
|
-
// 立即触发回调,以便初始状态也被观察
|
|
252
|
-
flush: "post"
|
|
253
|
-
}
|
|
254
|
-
);
|
|
255
|
-
const d = () => {
|
|
256
|
-
i.value = !0, c();
|
|
257
|
-
}, v = () => {
|
|
258
|
-
i.value = !1, l();
|
|
259
|
-
};
|
|
260
|
-
return w(() => c()), {
|
|
261
|
-
stop: d,
|
|
262
|
-
start: v
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
function te(e = "default") {
|
|
266
|
-
const n = H(), t = (r) => {
|
|
267
|
-
var s;
|
|
268
|
-
const o = (s = n[r]) == null ? void 0 : s.call(n), i = (c) => {
|
|
269
|
-
if (c.type === U || Array.isArray(c.children) && !c.children.length)
|
|
270
|
-
return !1;
|
|
271
|
-
if (c.type !== V)
|
|
272
|
-
return !0;
|
|
273
|
-
if (typeof c.children == "string")
|
|
274
|
-
return c.children.trim() !== "";
|
|
275
|
-
};
|
|
276
|
-
return o && (o != null && o.length) ? o.some((l) => i(l)) : !1;
|
|
277
|
-
};
|
|
278
|
-
if (Array.isArray(e)) {
|
|
279
|
-
const r = R({});
|
|
280
|
-
return e.forEach((o) => {
|
|
281
|
-
const i = h(() => t(o));
|
|
282
|
-
r[o] = i;
|
|
283
|
-
}), r;
|
|
284
|
-
} else
|
|
285
|
-
return h(() => t(e));
|
|
286
|
-
}
|
|
287
|
-
const ne = () => (/* @__PURE__ */ new Date()).getTime().toString(36) + "-" + Math.random().toString(36).substring(2, 9), re = (e) => JSON.parse(JSON.stringify(e));
|
|
288
|
-
export {
|
|
289
|
-
$ as add,
|
|
290
|
-
W as cancelRaf,
|
|
291
|
-
j as dateFormat,
|
|
292
|
-
I as debounce,
|
|
293
|
-
re as deepClone,
|
|
294
|
-
C as downloadFile,
|
|
295
|
-
J as formatNumber,
|
|
296
|
-
ne as getUniId,
|
|
297
|
-
P as rafTimeout,
|
|
298
|
-
q as throttle,
|
|
299
|
-
Z as toggleDark,
|
|
300
|
-
G as useEventListener,
|
|
301
|
-
_ as useFps,
|
|
302
|
-
Q as useMediaQuery,
|
|
303
|
-
z as useMounted,
|
|
304
|
-
K as useMutationObserver,
|
|
305
|
-
ee as useResizeObserver,
|
|
306
|
-
X as useScroll,
|
|
307
|
-
te as useSlotsExist,
|
|
308
|
-
A as useSupported
|
|
309
|
-
};
|
package/es/utils/resolver.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface VueAmazingUIResolverOptions {
|
|
2
|
-
cjs?: boolean;
|
|
3
|
-
}
|
|
4
|
-
export declare function VueAmazingUIResolver(options?: VueAmazingUIResolverOptions): {
|
|
5
|
-
type: "component";
|
|
6
|
-
resolve: (componentName: string) => {
|
|
7
|
-
name: string;
|
|
8
|
-
from: string;
|
|
9
|
-
sideEffects: string[];
|
|
10
|
-
} | undefined;
|
|
11
|
-
};
|
package/es/utils/resolver.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const o = {
|
|
2
|
-
TdsReportBar: "TdsReportBar",
|
|
3
|
-
TdsReportConfig: "TdsReportConfig",
|
|
4
|
-
TdsReportLine: "TdsReportLine",
|
|
5
|
-
TdsReportPie: "TdsReportPie",
|
|
6
|
-
TdsReportInfo: "TdsReportInfo",
|
|
7
|
-
TdsReportSelect: "TdsReportSelect",
|
|
8
|
-
TdsSettingCharts: "TdsSettingCharts",
|
|
9
|
-
TdsSettingFilter: "TdsSettingFilter",
|
|
10
|
-
TdsSettingTable: "TdsSettingTable",
|
|
11
|
-
TdsSettingText: "TdsSettingText",
|
|
12
|
-
TdsSettingTitle: "TdsSettingTitle",
|
|
13
|
-
TdsReportTable: "TdsReportTable",
|
|
14
|
-
TdsReportText: "TdsReportText",
|
|
15
|
-
TdsReportTime: "TdsReportTime"
|
|
16
|
-
}, i = {
|
|
17
|
-
BackTop: ["Tooltip"]
|
|
18
|
-
};
|
|
19
|
-
function n(t, e) {
|
|
20
|
-
if (["NumberAnimation", "Watermark"].includes(t))
|
|
21
|
-
return [];
|
|
22
|
-
const s = [t];
|
|
23
|
-
t in i && s.push(...i[t]);
|
|
24
|
-
const r = e != null && e.cjs ? "lib" : "es", T = [`@topdatasec/report/${r}/style/global.css`];
|
|
25
|
-
return s.forEach((d) => {
|
|
26
|
-
T.push(
|
|
27
|
-
`@topdatasec/report/${r}/${o[d]}/${d}.css`
|
|
28
|
-
);
|
|
29
|
-
}), T;
|
|
30
|
-
}
|
|
31
|
-
function p(t) {
|
|
32
|
-
return {
|
|
33
|
-
type: "component",
|
|
34
|
-
resolve: (e) => {
|
|
35
|
-
if (e in o)
|
|
36
|
-
return {
|
|
37
|
-
name: e,
|
|
38
|
-
// 组件名
|
|
39
|
-
from: "@topdatasec/report",
|
|
40
|
-
// 组件库名称
|
|
41
|
-
sideEffects: n(e, t)
|
|
42
|
-
// 组件样式文件
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
p as VueAmazingUIResolver
|
|
49
|
-
};
|
package/es/utils/type.d.ts
DELETED
package/es/utils/type.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=(e,o)=>{const t=e.__vccOpts||e;for(const[r,s]of o)t[r]=s;return t};exports.default=u;
|
package/lib/bar/Bar.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
-
export default _default;
|
package/lib/bar/Bar.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r={class:"chart-components"},a=e.defineComponent({name:"TdsReportBar",__name:"Bar",props:{data:{}},setup(o){const t=o,n=e.computed(()=>t.data.options);return(c,p)=>{const s=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",r,[e.createVNode(s,{option:n.value},null,8,["option"])])}}});exports.default=a;
|
package/lib/bar/Bar.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Bar.vue.cjs");exports.default=e.default;
|
package/lib/bar/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Bar.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/bar/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Bar';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Bar').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./Bar').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Bar').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
package/lib/components.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bar/index.cjs"),t=require("./config/index.cjs"),d=require("./line/index.cjs"),r=require("./pie/index.cjs"),i=require("./report/index.cjs"),n=require("./select/index.cjs"),s=require("./settingCharts/index.cjs"),u=require("./settingFilter/index.cjs"),o=require("./settingTable/index.cjs"),l=require("./settingText/index.cjs"),a=require("./settingTitle/index.cjs"),T=require("./table/index.cjs"),c=require("./text/index.cjs"),f=require("./time/index.cjs");exports.TdsReportBar=e.default;exports.TdsReportConfig=t.default;exports.TdsReportLine=d.default;exports.TdsReportPie=r.default;exports.TdsReportInfo=i.default;exports.TdsReportSelect=n.default;exports.TdsSettingCharts=s.default;exports.TdsSettingFilter=u.default;exports.TdsSettingTable=o.default;exports.TdsSettingText=l.default;exports.TdsSettingTitle=a.default;exports.TdsReportTable=T.default;exports.TdsReportText=c.default;exports.TdsReportTime=f.default;
|
package/lib/components.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props as TdsReportBarProps } from './bar';
|
|
2
|
-
export { default as TdsReportBar } from './bar';
|
|
3
|
-
export { default as TdsReportConfig } from './config';
|
|
4
|
-
export { default as TdsReportLine } from './line';
|
|
5
|
-
export { default as TdsReportPie } from './pie';
|
|
6
|
-
export { default as TdsReportInfo } from './report';
|
|
7
|
-
export { default as TdsReportSelect } from './select';
|
|
8
|
-
export { default as TdsSettingCharts } from './settingCharts';
|
|
9
|
-
export { default as TdsSettingFilter } from './settingFilter';
|
|
10
|
-
export { default as TdsSettingTable } from './settingTable';
|
|
11
|
-
export { default as TdsSettingText } from './settingText';
|
|
12
|
-
export { default as TdsSettingTitle } from './settingTitle';
|
|
13
|
-
export { default as TdsReportTable } from './table';
|
|
14
|
-
export { default as TdsReportText } from './text';
|
|
15
|
-
export { default as TdsReportTime } from './time';
|
package/lib/config/Config.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-v-9d35239c] .el-color-picker{width:95%}[data-v-9d35239c] .el-color-picker .el-color-picker__trigger{width:100%;top:1px}[data-v-9d35239c] .el-input-number{width:95%}.sub-title[data-v-9d35239c]{color:#555;font-size:12px;padding-left:5px;height:20px;line-height:20px;margin-bottom:10px}.switch-label[data-v-9d35239c]{color:#555;font-size:14px;margin-right:10px;margin-bottom:10px}[data-v-9d35239c] .el-collapse-item__header{background-color:#fafafa;padding-left:15px;height:42px;border-bottom:1px solid #ebeef5}[data-v-9d35239c] .el-collapse-item__content{padding-top:10px;padding-bottom:10px;padding-left:10px}[data-v-9d35239c] .el-collapse-item__content .el-descriptions__cell{padding:1px 0 0 15px}.el-collapse[data-v-9d35239c]{border-right:1px solid var(--el-border-color-lighter);border-left:1px solid var(--el-border-color-lighter)}
|
package/lib/config/Config.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Config.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-9d35239c"]]);exports.default=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../stores/modules/report.cjs"),x={key:0},y={class:"sub-title"},k=e.defineComponent({name:"TdsReportConfig",__name:"Config",setup(S){const r=_.useReportStore(),o=e.computed(()=>r.activeComponents);function N(n){n?(o.value.options.series[0].radius=["10%","65%"],o.value.options.graphic[0].invisible=!0,o.value.options.graphic[1].invisible=!0):(o.value.options.series[0].radius=["45%","70%"],o.value.options.graphic[0].invisible=!1,o.value.options.graphic[1].invisible=!1)}const f=e.ref("rgb(46, 145, 255)"),p=(n="rgba(46, 145, 255, 0.7)",t="rgba(46, 145, 255, 0.2)")=>({color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:n},{offset:.8,color:t}]}});function w(n){n&&(r.activeComponents.options.series[0].itemStyle=p(a(n,.7),a(n,.2)),r.activeComponents.options.series[1].itemStyle=p(a(n,.7),a(n,.2)),r.activeComponents.options.series[2].itemStyle=p(a(n,.9),a(n,1)))}function a(n,t=1){n=n.replace(/^#/,"");const d=parseInt(n.substring(0,2),16),m=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);return`rgba(${d}, ${m}, ${i}, ${t})`}return(n,t)=>{const d=e.resolveComponent("el-input"),m=e.resolveComponent("el-form-item"),i=e.resolveComponent("el-switch"),s=e.resolveComponent("el-col"),c=e.resolveComponent("el-color-picker"),V=e.resolveComponent("el-input-number"),u=e.resolveComponent("el-row"),v=e.resolveComponent("el-collapse-item"),b=e.resolveComponent("el-collapse");return o.value.options.title?(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(m,{label:"标题"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:o.value.options.title.text,"onUpdate:modelValue":t[0]||(t[0]=l=>o.value.options.title.text=l)},null,8,["modelValue"])]),_:1}),e.createVNode(b,null,{default:e.withCtx(()=>[e.createVNode(v,{title:"标题配置",name:"1"},{default:e.withCtx(()=>[e.createVNode(u,{class:"w-100%"},{default:e.withCtx(()=>[e.createVNode(s,{span:24},{default:e.withCtx(()=>[t[9]||(t[9]=e.createElementVNode("span",{class:"switch-label"},"显示标题",-1)),e.createVNode(i,{modelValue:o.value.options.title.show,"onUpdate:modelValue":t[1]||(t[1]=l=>o.value.options.title.show=l)},null,8,["modelValue"])]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:o.value.options.title.textStyle.color,"onUpdate:modelValue":t[2]||(t[2]=l=>o.value.options.title.textStyle.color=l),"show-alpha":""},null,8,["modelValue"]),t[10]||(t[10]=e.createElementVNode("p",{class:"sub-title"},"颜色",-1))]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:o.value.options.title.textStyle.fontSize,"onUpdate:modelValue":t[3]||(t[3]=l=>o.value.options.title.textStyle.fontSize=l),"controls-position":"right"},null,8,["modelValue"]),t[11]||(t[11]=e.createElementVNode("p",{class:"sub-title"},"字体大小",-1))]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:o.value.options.title.x,"onUpdate:modelValue":t[4]||(t[4]=l=>o.value.options.title.x=l),"controls-position":"right"},null,8,["modelValue"]),t[12]||(t[12]=e.createElementVNode("p",{class:"sub-title"},"横向",-1))]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:o.value.options.title.y,"onUpdate:modelValue":t[5]||(t[5]=l=>o.value.options.title.y=l),"controls-position":"right"},null,8,["modelValue"]),t[13]||(t[13]=e.createElementVNode("p",{class:"sub-title"},"纵向",-1))]),_:1})]),_:1})]),_:1}),e.createVNode(v,{title:"图形配置",name:"2"},{default:e.withCtx(()=>[o.value.options.color&&o.value.options.color.length&&o.value.type==="pie"?(e.openBlock(),e.createBlock(u,{key:0},{default:e.withCtx(()=>[e.createVNode(s,{span:24},{default:e.withCtx(()=>[t[14]||(t[14]=e.createElementVNode("span",{class:"switch-label"},"玫瑰图",-1)),e.createVNode(i,{onChange:N,modelValue:o.value.options.series[0].roseType,"onUpdate:modelValue":t[6]||(t[6]=l=>o.value.options.series[0].roseType=l)},null,8,["modelValue"])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.data,(l,C)=>(e.openBlock(),e.createBlock(s,{span:12,class:"mb-10px",key:C},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:o.value.options.color[C],"onUpdate:modelValue":g=>o.value.options.color[C]=g,"show-alpha":""},null,8,["modelValue","onUpdate:modelValue"]),e.createElementVNode("p",y,e.toDisplayString(l.label),1)]),_:2},1024))),128))]),_:1})):e.createCommentVNode("",!0),o.value.type==="bar"?(e.openBlock(),e.createBlock(u,{key:1},{default:e.withCtx(()=>[e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:f.value,"onUpdate:modelValue":t[7]||(t[7]=l=>f.value=l),onChange:w},null,8,["modelValue"]),t[15]||(t[15]=e.createElementVNode("p",{class:"sub-title"},"柱颜色",-1))]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(v,{title:"图例配置",name:"3"},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{span:24},{default:e.withCtx(()=>[t[16]||(t[16]=e.createElementVNode("span",{class:"switch-label"},"显示图例",-1)),o.value.options.legend?(e.openBlock(),e.createBlock(i,{key:0,modelValue:o.value.options.legend.show,"onUpdate:modelValue":t[8]||(t[8]=l=>o.value.options.legend.show=l)},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}});exports.default=k;
|
package/lib/config/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Config.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/config/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
3
|
-
P: {};
|
|
4
|
-
B: {};
|
|
5
|
-
D: {};
|
|
6
|
-
C: {};
|
|
7
|
-
M: {};
|
|
8
|
-
Defaults: {};
|
|
9
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
-
__isFragment?: never;
|
|
11
|
-
__isTeleport?: never;
|
|
12
|
-
__isSuspense?: never;
|
|
13
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
14
|
-
export default _default;
|
package/lib/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const i=require("./components.cjs"),e=require("./utils/index.cjs"),u=require("./utils/resolver.cjs"),d=require("./bar/index.cjs"),n=require("./config/index.cjs"),o=require("./line/index.cjs"),a=require("./pie/index.cjs"),l=require("./report/index.cjs"),c=require("./select/index.cjs"),f=require("./settingCharts/index.cjs"),T=require("./settingFilter/index.cjs"),x=require("./settingTable/index.cjs"),q=require("./settingText/index.cjs"),R=require("./settingTitle/index.cjs"),$=require("./table/index.cjs"),b=require("./text/index.cjs"),g=require("./time/index.cjs"),s=function(r){return Object.values(i).forEach(t=>{t&&t.install&&r.use(t)}),r},v={install:s};exports.add=e.add;exports.cancelRaf=e.cancelRaf;exports.dateFormat=e.dateFormat;exports.debounce=e.debounce;exports.downloadFile=e.downloadFile;exports.formatNumber=e.formatNumber;exports.rafTimeout=e.rafTimeout;exports.throttle=e.throttle;exports.toggleDark=e.toggleDark;exports.useEventListener=e.useEventListener;exports.useFps=e.useFps;exports.useMediaQuery=e.useMediaQuery;exports.useMutationObserver=e.useMutationObserver;exports.useResizeObserver=e.useResizeObserver;exports.useScroll=e.useScroll;exports.useSlotsExist=e.useSlotsExist;exports.VueAmazingUIResolver=u.VueAmazingUIResolver;exports.TdsReportBar=d.default;exports.TdsReportConfig=n.default;exports.TdsReportLine=o.default;exports.TdsReportPie=a.default;exports.TdsReportInfo=l.default;exports.TdsReportSelect=c.default;exports.TdsSettingCharts=f.default;exports.TdsSettingFilter=T.default;exports.TdsSettingTable=x.default;exports.TdsSettingText=q.default;exports.TdsSettingTitle=R.default;exports.TdsReportTable=$.default;exports.TdsReportText=b.default;exports.TdsReportTime=g.default;exports.default=v;exports.install=s;
|
package/lib/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
export * from './components';
|
|
3
|
-
export { dateFormat, formatNumber, rafTimeout, cancelRaf, throttle, debounce, add, downloadFile, toggleDark, useEventListener, useMutationObserver, useScroll, useFps, useMediaQuery, useResizeObserver, useSlotsExist } from './utils';
|
|
4
|
-
export { VueAmazingUIResolver } from './utils/resolver';
|
|
5
|
-
export type { VueAmazingUIResolverOptions } from './utils/resolver';
|
|
6
|
-
export declare const install: (app: App) => App<any>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
install: (app: App) => App<any>;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
package/lib/line/Line.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
-
export default _default;
|
package/lib/line/Line.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c={class:"chart-components"},r=e.defineComponent({name:"TdsReportLine",__name:"Line",props:{data:{}},setup(o){const t=o,n=e.computed(()=>t.data.options);return(a,p)=>{const s=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",c,[e.createVNode(s,{option:n.value},null,8,["option"])])}}});exports.default=r;
|
package/lib/line/Line.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Line.vue.cjs");exports.default=e.default;
|
package/lib/line/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Line.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/line/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Line';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Line').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./Line').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Line').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root,:host{--w-e-textarea-bg-color: #fff;--w-e-textarea-color: #333;--w-e-textarea-border-color: #ccc;--w-e-textarea-slight-border-color: #e8e8e8;--w-e-textarea-slight-color: #d4d4d4;--w-e-textarea-slight-bg-color: #f5f2f0;--w-e-textarea-selected-border-color: #B4D5FF;--w-e-textarea-handler-bg-color: #4290f7;--w-e-toolbar-color: #595959;--w-e-toolbar-bg-color: #fff;--w-e-toolbar-active-color: #333;--w-e-toolbar-active-bg-color: #f1f1f1;--w-e-toolbar-disabled-color: #999;--w-e-toolbar-border-color: #e8e8e8;--w-e-modal-button-bg-color: #fafafa;--w-e-modal-button-border-color: #d9d9d9}.w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th,.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.w-e-text-container .w-e-scroll{-webkit-overflow-scrolling:touch;height:100%}.w-e-text-container [data-slate-editor]{word-wrap:break-word;border-top:1px solid transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px #0000001f;position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:"";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:"tnum";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}.w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre>code{background-color:var(--w-e-textarea-slight-bg-color);border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px;display:block;font-size:14px;padding:10px;text-indent:0}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover,.w-e-text-container [contenteditable=false] .w-e-image-container:hover{box-shadow:none}.w-e-text-container [data-slate-editor] .table-container{border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin-top:10px;overflow-x:auto;padding:10px;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;padding:3px 5px;text-align:left}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}.w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}
|
package/lib/pie/Pie.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
-
export default _default;
|
package/lib/pie/Pie.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c={class:"chart-components"},r=e.defineComponent({name:"TdsReportPie",__name:"Pie",props:{data:{}},setup(o){const t=o,n=e.computed(()=>t.data.options);return(a,p)=>{const s=e.resolveComponent("TdsChart");return e.openBlock(),e.createElementBlock("div",c,[e.createVNode(s,{option:n.value},null,8,["option"])])}}});exports.default=r;
|
package/lib/pie/Pie.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Pie.vue.cjs");exports.default=e.default;
|
package/lib/pie/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Pie.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/pie/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Pie';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Pie').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./Pie').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Pie').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
package/lib/report/Report.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
prodType: number | string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
5
|
-
proTable: unknown;
|
|
6
|
-
}, HTMLDivElement>;
|
|
7
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../utils/api.cjs"),k={class:"table-box"},y=e.defineComponent({name:"TdsReportInfo",__name:"Report",props:{prodType:{}},setup(a){const c=a,s=e.reactive({prod_type:c.prodType}),o=e.ref(),p=t=>{},d=()=>{},u=t=>{console.log(t)},m=t=>{},r=t=>{window==null||window.$messageBox("确定要删除吗?","","温馨提示","error").then(async()=>{await l.deleteReportApi({report_uuids:t}),o.value.getTableList()})},_=e.reactive([{type:"selection",width:80},{field:"report_name",name:"名称",search:{type:"input"}},{field:"report_desc",name:"报表描述"},{field:"create_time",name:"创建时间"},{field:"operation",width:140,name:"操作",align:"center",fixed:"right",render:t=>React.createElement("div",null,React.createElement("el-button",{link:!0,type:"primary",class:"custom-btn",icon:"View",title:"预览",onClick:()=>p(t.row)}),React.createElement("el-button",{link:!0,type:"primary",class:"custom-btn",icon:"Edit",title:"编辑",onClick:()=>m(t.row)}),React.createElement("el-button",{link:!0,type:"danger",icon:"Delete",title:"删除",onClick:()=>r([t.row.report_uuid])}))}]);return(t,n)=>{const i=e.resolveComponent("el-button"),b=e.resolveComponent("TdsTable");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(b,{ref_key:"proTable",ref:o,columns:_,"request-api":l.getReportListApi,"init-param":s,"row-key":"report_uuid",options:t.$tableOptions(),"search-col":6,onSelectionChange:u},{tableHeader:e.withCtx(C=>[e.createVNode(i,{plain:"",type:"primary",class:"custom-btn",icon:"Plus",onClick:d},{default:e.withCtx(()=>n[0]||(n[0]=[e.createTextVNode("添加")])),_:1}),e.createVNode(i,{plain:"",type:"danger",icon:"Delete",onClick:w=>r(C.selectedListIds)},{default:e.withCtx(()=>n[1]||(n[1]=[e.createTextVNode("删除")])),_:2},1032,["onClick"])]),_:1},8,["columns","request-api","init-param","options"])])}}});exports.default=y;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Report.vue.cjs");exports.default=e.default;
|