@topdatasec/report 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.iife.js +1 -1
- package/dist/index.js +38 -36
- package/dist/index.umd.cjs +1 -1
- package/es/bar/Bar.vue.js +9 -7
- package/lib/bar/Bar.vue.cjs +1 -1
- package/package.json +1 -1
- package/es/alert/Alert.d.ts +0 -52
- package/es/alert/index.d.ts +0 -66
- package/lib/alert/Alert.d.ts +0 -52
- package/lib/alert/index.d.ts +0 -66
package/dist/index.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(u,r,O){"use strict";const B={class:"chart-components"},y=(e=>{const t=e;return t.install=function(n){n.component(t.__name,e)},e})(r.defineComponent({name:"TdsReportBar",__name:"Bar",props:{data:{}},setup(e){const t=e,n=r.computed(()=>t.data.options);return(o,s)=>(r.openBlock(),r.createElementBlock("div",B,[r.createVNode(r.unref(O),{option:n.value},null,8,["option"])]))}})),
|
|
1
|
+
(function(u,r,O){"use strict";const B={class:"chart-components"},y=(e=>{const t=e;return t.install=function(n){n.component(t.__name,e)},e})(r.defineComponent({name:"TdsReportBar",__name:"Bar",props:{data:{}},setup(e){const t=e;console.log(t.data,444444444);const n=r.computed(()=>t.data.options);return(o,s)=>(r.openBlock(),r.createElementBlock("div",B,[r.createVNode(r.unref(O),{option:n.value},null,8,["option"])]))}})),U=Object.freeze(Object.defineProperty({__proto__:null,TdsReportBar:y},Symbol.toStringTag,{value:"Module"}));function V(e=Date.now(),t="YYYY-MM-DD HH:mm:ss"){try{let n;if(typeof e=="number"||typeof e=="string"){if(n=new Date(e),isNaN(n.getTime()))throw new Error("Invalid date")}else n=e;const o=(a,c=2)=>String(a).padStart(c,"0"),s=a=>{switch(a){case"YYYY":return o(n.getFullYear());case"YY":return o(n.getFullYear()).slice(2,4);case"MM":return o(n.getMonth()+1);case"M":return String(n.getMonth()+1);case"DD":return o(n.getDate());case"D":return String(n.getDate());case"HH":return o(n.getHours());case"H":return String(n.getHours());case"mm":return o(n.getMinutes());case"m":return String(n.getMinutes());case"ss":return o(n.getSeconds());case"s":return String(n.getSeconds());case"SSS":return o(n.getMilliseconds(),3);default:return a}};return t.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g,s)}catch(n){return console.error("Error formatting date:",n),""}}function k(e,t=2,n=",",o=".",s,a){typeof e!="number"&&typeof e!="string"&&console.warn("Expected value to be of type number or string"),typeof t!="number"&&console.warn("Expected precision to be of type number");const c=Number(e);if(isNaN(c)||!isFinite(c))return"";if(c===0)return c.toFixed(t);let i=c.toFixed(t);if(typeof n=="string"&&n!==""){const[f,m]=i.split(".");i=f.replace(/(\d)(?=(\d{3})+$)/g,"$1"+n)+(m?o+m:"")}return(s||"")+i+(a||"")}function H(e,t=0,n=!1){let o=null;function s(c){if(o||(o=c),c-o>=t){try{e()}catch(f){console.error("Error executing rafTimeout function:",f)}n&&(o=c,a.id=requestAnimationFrame(s))}else a.id=requestAnimationFrame(s)}const a={id:requestAnimationFrame(s)};return a}function I(e){e&&e.id&&typeof e.id=="number"?cancelAnimationFrame(e.id):console.warn("cancelRaf received an invalid id:",e)}function M(e,t=300){let n=!0;return function(...o){return n&&(e(...o),n=!1,setTimeout(()=>{n=!0},t)),!1}}function T(e,t=300){let n=null;return function(...o){n&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function N(e,t){if(Number.isNaN(e)||Number.isNaN(t))throw new Error("Both num1 and num2 must be valid numbers.");const n=e%1!==0,o=t%1!==0;if(!n&&!o)return e+t;const s=String(e).split(".")[1]??"",a=String(t).split(".")[1]??"",c=Math.max(s.length,a.length),i=Math.pow(10,c),f=e.toFixed(c),m=t.toFixed(c);return(+f.replace(".","")+ +m.replace(".",""))/i}function j(e,t){if(!e){console.error("无效的 url");return}const n=t||e.split("?")[0].split("/").pop()||"download";try{fetch(e).then(o=>{o.ok?o.blob().then(s=>{const a=URL.createObjectURL(s),c=document.createElement("a");c.href=a,c.download=n,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(a)}):console.error("请求文件失败,状态码:",o.status)})}catch(o){console.error("文件下载失败:",o)}}function z(){const e=document.documentElement;e.classList.toggle("dark"),e.classList.contains("dark")?e.style.colorScheme="dark":e.style.colorScheme="light"}function $(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function R(e){const t=$();return r.computed(()=>(t.value,!!e()))}function q(e,t,n){r.onMounted(()=>e.addEventListener(t,n)),r.onUnmounted(()=>e.removeEventListener(t,n))}function P(e,t,n={}){const o=R(()=>window&&"MutationObserver"in window),s=r.ref(!1);let a;const c=r.computed(()=>{const d=r.toValue(e);return d?Array.isArray(d)?d.map(h=>r.toValue(h)).filter(h=>h):[d]:[]}),i=()=>{a&&(a.disconnect(),a=void 0)},f=()=>{o.value&&c.value.length&&!s.value&&(a=new MutationObserver(t),c.value.forEach(d=>a.observe(d,n)))};r.watch(()=>c.value,()=>{i(),f()},{immediate:!0,flush:"post"});const m=()=>{s.value=!0,i()},p=()=>{s.value=!1,f()};return r.onBeforeUnmount(()=>i()),{stop:m,start:p}}function x(e=window,t=0,n,o){const s=r.ref(0),a=r.ref(0),c=r.ref(0),i=r.ref(0),f=r.ref(!1),m=r.ref(!1),p=r.ref(!1),d=r.ref(!1),h=r.ref(!1),E=r.ref(0),S=r.ref(0);function X(l){f.value=!0;const g=l.target.documentElement??l.target;s.value=g.scrollLeft,c.value=g.scrollTop,m.value=s.value<E.value,p.value=s.value>E.value,d.value=c.value<S.value,h.value=c.value>S.value,E.value=s.value,S.value=c.value,w(l),n&&n(l)}const _=M(X,t);function ee(l){f.value&&(f.value=!1,m.value=!1,p.value=!1,d.value=!1,h.value=!1,o&&o(l))}const w=T(ee,t+200),A=r.computed(()=>{const l=r.toValue(e);return l||null});r.watch(()=>A.value,(l,g)=>{var v;if(g&&D(g),l){const b=((v=l==null?void 0:l.document)==null?void 0:v.documentElement)||(l==null?void 0:l.documentElement)||l;a.value=b.scrollWidth-b.clientWidth,i.value=b.scrollHeight-b.clientHeight,b.addEventListener("scroll",_),b.addEventListener("scrollend",w)}},{immediate:!0,flush:"post"});function D(l){var v;const g=((v=l==null?void 0:l.document)==null?void 0:v.documentElement)||(l==null?void 0:l.documentElement)||l;g.removeEventListener("scroll",_),g.removeEventListener("scrollend",w)}return r.onBeforeUnmount(()=>D(A.value)),{x:s,xScrollMax:a,y:c,yScrollMax:i,isScrolling:f,left:m,right:p,top:d,bottom:h}}function C(){const e=r.ref(0),t=r.ref(0);let n=performance.now();const o=10,s=a=>{if(t.value++,t.value>=o){const c=a-n;e.value=Math.round(1e3/(c/o)),n=a,t.value=0}requestAnimationFrame(s)};return requestAnimationFrame(s),{fps:e}}function W(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid mediaQuery parameter. It must be a non-empty string.");const t=r.ref(window&&window.matchMedia(e).matches),n=window.matchMedia(e),o=s=>{t.value=s.matches};return r.onMounted(()=>{n.addEventListener("change",o)}),r.onBeforeUnmount(()=>{n.removeEventListener("change",o)}),{match:t}}function Z(e,t,n={}){const o=R(()=>window&&"ResizeObserver"in window);let s;const a=r.ref(!1),c=r.computed(()=>{const d=r.toValue(e);return d?Array.isArray(d)?d.map(h=>r.toValue(h)).filter(h=>h):[d]:[]}),i=()=>{s&&(s.disconnect(),s=void 0)},f=()=>{o.value&&c.value.length&&!a.value&&(s=new ResizeObserver(t),c.value.forEach(d=>s.observe(d,n)))};r.watch(()=>c.value,()=>{i(),f()},{immediate:!0,flush:"post"});const m=()=>{a.value=!0,i()},p=()=>{a.value=!1,f()};return r.onBeforeUnmount(()=>i()),{stop:m,start:p}}function G(e="default"){const t=r.useSlots(),n=o=>{var c;const s=(c=t[o])==null?void 0:c.call(t),a=i=>{if(i.type===r.Comment||Array.isArray(i.children)&&!i.children.length)return!1;if(i.type!==r.Text)return!0;if(typeof i.children=="string")return i.children.trim()!==""};return s&&(s!=null&&s.length)?s.some(f=>a(f)):!1};if(Array.isArray(e)){const o=r.reactive({});return e.forEach(s=>{const a=r.computed(()=>n(s));o[s]=a}),o}else return r.computed(()=>n(e))}const F={TdsReportBar:"TdsReportBar"},L={BackTop:["Tooltip"]};function J(e,t){if(["NumberAnimation","Watermark"].includes(e))return[];const n=[e];e in L&&n.push(...L[e]);const o=t!=null&&t.cjs?"lib":"es",s=[`@topdatasec/report/${o}/style/global.css`];return n.forEach(a=>{s.push(`@topdatasec/report/${o}/${F[a]}/${a}.css`)}),s}function K(e){return{type:"component",resolve:t=>{if(t in F)return{name:t,from:"@topdatasec/report",sideEffects:J(t,e)}}}}const Y=function(e){return Object.values(U).forEach(t=>{t&&t.install&&e.use(t)}),e},Q={install:Y};u.TdsReportBar=y,u.VueAmazingUIResolver=K,u.add=N,u.cancelRaf=I,u.dateFormat=V,u.debounce=T,u.default=Q,u.downloadFile=j,u.formatNumber=k,u.install=Y,u.rafTimeout=H,u.throttle=M,u.toggleDark=z,u.useEventListener=q,u.useFps=C,u.useMediaQuery=W,u.useMutationObserver=P,u.useResizeObserver=Z,u.useScroll=x,u.useSlotsExist=G,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})(this.TdsReportUI=this.TdsReportUI||{},Vue,TdsChart);
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,9 @@ const P = { class: "chart-components" }, W = /* @__PURE__ */ k({
|
|
|
7
7
|
data: {}
|
|
8
8
|
},
|
|
9
9
|
setup(e) {
|
|
10
|
-
const t = e
|
|
10
|
+
const t = e;
|
|
11
|
+
console.log(t.data, 444444444);
|
|
12
|
+
const n = h(() => t.data.options);
|
|
11
13
|
return (r, s) => (H(), B("div", P, [
|
|
12
14
|
U(V(C), { option: n.value }, null, 8, ["option"])
|
|
13
15
|
]));
|
|
@@ -73,12 +75,12 @@ function oe(e, t = 2, n = ",", r = ".", s, c) {
|
|
|
73
75
|
return "";
|
|
74
76
|
if (o === 0)
|
|
75
77
|
return o.toFixed(t);
|
|
76
|
-
let
|
|
78
|
+
let l = o.toFixed(t);
|
|
77
79
|
if (typeof n == "string" && n !== "") {
|
|
78
|
-
const [
|
|
79
|
-
|
|
80
|
+
const [i, d] = l.split(".");
|
|
81
|
+
l = i.replace(/(\d)(?=(\d{3})+$)/g, "$1" + n) + (d ? r + d : "");
|
|
80
82
|
}
|
|
81
|
-
return (s || "") +
|
|
83
|
+
return (s || "") + l + (c || "");
|
|
82
84
|
}
|
|
83
85
|
function ce(e, t = 0, n = !1) {
|
|
84
86
|
let r = null;
|
|
@@ -86,8 +88,8 @@ function ce(e, t = 0, n = !1) {
|
|
|
86
88
|
if (r || (r = o), o - r >= t) {
|
|
87
89
|
try {
|
|
88
90
|
e();
|
|
89
|
-
} catch (
|
|
90
|
-
console.error("Error executing rafTimeout function:",
|
|
91
|
+
} catch (i) {
|
|
92
|
+
console.error("Error executing rafTimeout function:", i);
|
|
91
93
|
}
|
|
92
94
|
n && (r = o, c.id = requestAnimationFrame(s));
|
|
93
95
|
} else
|
|
@@ -117,16 +119,16 @@ function X(e, t = 300) {
|
|
|
117
119
|
}, t);
|
|
118
120
|
};
|
|
119
121
|
}
|
|
120
|
-
function
|
|
122
|
+
function le(e, t) {
|
|
121
123
|
if (Number.isNaN(e) || Number.isNaN(t))
|
|
122
124
|
throw new Error("Both num1 and num2 must be valid numbers.");
|
|
123
125
|
const n = e % 1 !== 0, r = t % 1 !== 0;
|
|
124
126
|
if (!n && !r)
|
|
125
127
|
return e + t;
|
|
126
|
-
const s = String(e).split(".")[1] ?? "", c = String(t).split(".")[1] ?? "", o = Math.max(s.length, c.length),
|
|
127
|
-
return (+
|
|
128
|
+
const s = String(e).split(".")[1] ?? "", c = String(t).split(".")[1] ?? "", o = Math.max(s.length, c.length), l = Math.pow(10, o), i = e.toFixed(o), d = t.toFixed(o);
|
|
129
|
+
return (+i.replace(".", "") + +d.replace(".", "")) / l;
|
|
128
130
|
}
|
|
129
|
-
function
|
|
131
|
+
function ie(e, t) {
|
|
130
132
|
if (!e) {
|
|
131
133
|
console.error("无效的 url");
|
|
132
134
|
return;
|
|
@@ -166,15 +168,15 @@ function de(e, t, n = {}) {
|
|
|
166
168
|
const o = h(() => {
|
|
167
169
|
const u = E(e);
|
|
168
170
|
return u ? Array.isArray(u) ? u.map((m) => E(m)).filter((m) => m) : [u] : [];
|
|
169
|
-
}),
|
|
171
|
+
}), l = () => {
|
|
170
172
|
c && (c.disconnect(), c = void 0);
|
|
171
|
-
},
|
|
173
|
+
}, i = () => {
|
|
172
174
|
r.value && o.value.length && !s.value && (c = new MutationObserver(t), o.value.forEach((u) => c.observe(u, n)));
|
|
173
175
|
};
|
|
174
176
|
T(
|
|
175
177
|
() => o.value,
|
|
176
178
|
() => {
|
|
177
|
-
|
|
179
|
+
l(), i();
|
|
178
180
|
},
|
|
179
181
|
{
|
|
180
182
|
immediate: !0,
|
|
@@ -183,25 +185,25 @@ function de(e, t, n = {}) {
|
|
|
183
185
|
}
|
|
184
186
|
);
|
|
185
187
|
const d = () => {
|
|
186
|
-
s.value = !0,
|
|
188
|
+
s.value = !0, l();
|
|
187
189
|
}, v = () => {
|
|
188
|
-
s.value = !1,
|
|
190
|
+
s.value = !1, i();
|
|
189
191
|
};
|
|
190
|
-
return S(() =>
|
|
192
|
+
return S(() => l()), {
|
|
191
193
|
stop: d,
|
|
192
194
|
start: v
|
|
193
195
|
};
|
|
194
196
|
}
|
|
195
197
|
function me(e = window, t = 0, n, r) {
|
|
196
|
-
const s = f(0), c = f(0), o = f(0),
|
|
198
|
+
const s = f(0), c = f(0), o = f(0), l = f(0), i = f(!1), d = f(!1), v = f(!1), u = f(!1), m = f(!1), w = f(0), y = f(0);
|
|
197
199
|
function _(a) {
|
|
198
|
-
|
|
200
|
+
i.value = !0;
|
|
199
201
|
const p = a.target.documentElement ?? a.target;
|
|
200
202
|
s.value = p.scrollLeft, o.value = p.scrollTop, d.value = s.value < w.value, v.value = s.value > w.value, u.value = o.value < y.value, m.value = o.value > y.value, w.value = s.value, y.value = o.value, M(a), n && n(a);
|
|
201
203
|
}
|
|
202
204
|
const L = K(_, t);
|
|
203
205
|
function O(a) {
|
|
204
|
-
|
|
206
|
+
i.value && (i.value = !1, d.value = !1, v.value = !1, u.value = !1, m.value = !1, r && r(a));
|
|
205
207
|
}
|
|
206
208
|
const M = X(O, t + 200), Y = h(() => {
|
|
207
209
|
const a = E(e);
|
|
@@ -213,7 +215,7 @@ function me(e = window, t = 0, n, r) {
|
|
|
213
215
|
var b;
|
|
214
216
|
if (p && F(p), a) {
|
|
215
217
|
const g = ((b = a == null ? void 0 : a.document) == null ? void 0 : b.documentElement) || (a == null ? void 0 : a.documentElement) || a;
|
|
216
|
-
c.value = g.scrollWidth - g.clientWidth,
|
|
218
|
+
c.value = g.scrollWidth - g.clientWidth, l.value = g.scrollHeight - g.clientHeight, g.addEventListener("scroll", L), g.addEventListener("scrollend", M);
|
|
217
219
|
}
|
|
218
220
|
},
|
|
219
221
|
{
|
|
@@ -226,7 +228,7 @@ function me(e = window, t = 0, n, r) {
|
|
|
226
228
|
const p = ((b = a == null ? void 0 : a.document) == null ? void 0 : b.documentElement) || (a == null ? void 0 : a.documentElement) || a;
|
|
227
229
|
p.removeEventListener("scroll", L), p.removeEventListener("scrollend", M);
|
|
228
230
|
}
|
|
229
|
-
return S(() => F(Y.value)), { x: s, xScrollMax: c, y: o, yScrollMax:
|
|
231
|
+
return S(() => F(Y.value)), { x: s, xScrollMax: c, y: o, yScrollMax: l, isScrolling: i, left: d, right: v, top: u, bottom: m };
|
|
230
232
|
}
|
|
231
233
|
function ve() {
|
|
232
234
|
const e = f(0), t = f(0);
|
|
@@ -258,15 +260,15 @@ function he(e, t, n = {}) {
|
|
|
258
260
|
const c = f(!1), o = h(() => {
|
|
259
261
|
const u = E(e);
|
|
260
262
|
return u ? Array.isArray(u) ? u.map((m) => E(m)).filter((m) => m) : [u] : [];
|
|
261
|
-
}),
|
|
263
|
+
}), l = () => {
|
|
262
264
|
s && (s.disconnect(), s = void 0);
|
|
263
|
-
},
|
|
265
|
+
}, i = () => {
|
|
264
266
|
r.value && o.value.length && !c.value && (s = new ResizeObserver(t), o.value.forEach((u) => s.observe(u, n)));
|
|
265
267
|
};
|
|
266
268
|
T(
|
|
267
269
|
() => o.value,
|
|
268
270
|
() => {
|
|
269
|
-
|
|
271
|
+
l(), i();
|
|
270
272
|
},
|
|
271
273
|
{
|
|
272
274
|
immediate: !0,
|
|
@@ -275,11 +277,11 @@ function he(e, t, n = {}) {
|
|
|
275
277
|
}
|
|
276
278
|
);
|
|
277
279
|
const d = () => {
|
|
278
|
-
c.value = !0,
|
|
280
|
+
c.value = !0, l();
|
|
279
281
|
}, v = () => {
|
|
280
|
-
c.value = !1,
|
|
282
|
+
c.value = !1, i();
|
|
281
283
|
};
|
|
282
|
-
return S(() =>
|
|
284
|
+
return S(() => l()), {
|
|
283
285
|
stop: d,
|
|
284
286
|
start: v
|
|
285
287
|
};
|
|
@@ -287,15 +289,15 @@ function he(e, t, n = {}) {
|
|
|
287
289
|
function ge(e = "default") {
|
|
288
290
|
const t = $(), n = (r) => {
|
|
289
291
|
var o;
|
|
290
|
-
const s = (o = t[r]) == null ? void 0 : o.call(t), c = (
|
|
291
|
-
if (
|
|
292
|
+
const s = (o = t[r]) == null ? void 0 : o.call(t), c = (l) => {
|
|
293
|
+
if (l.type === q || Array.isArray(l.children) && !l.children.length)
|
|
292
294
|
return !1;
|
|
293
|
-
if (
|
|
295
|
+
if (l.type !== z)
|
|
294
296
|
return !0;
|
|
295
|
-
if (typeof
|
|
296
|
-
return
|
|
297
|
+
if (typeof l.children == "string")
|
|
298
|
+
return l.children.trim() !== "";
|
|
297
299
|
};
|
|
298
|
-
return s && (s != null && s.length) ? s.some((
|
|
300
|
+
return s && (s != null && s.length) ? s.some((i) => c(i)) : !1;
|
|
299
301
|
};
|
|
300
302
|
if (Array.isArray(e)) {
|
|
301
303
|
const r = j({});
|
|
@@ -349,12 +351,12 @@ const te = function(e) {
|
|
|
349
351
|
export {
|
|
350
352
|
G as TdsReportBar,
|
|
351
353
|
be as VueAmazingUIResolver,
|
|
352
|
-
|
|
354
|
+
le as add,
|
|
353
355
|
ae as cancelRaf,
|
|
354
356
|
se as dateFormat,
|
|
355
357
|
X as debounce,
|
|
356
358
|
Ee as default,
|
|
357
|
-
|
|
359
|
+
ie as downloadFile,
|
|
358
360
|
oe as formatNumber,
|
|
359
361
|
te as install,
|
|
360
362
|
ce as rafTimeout,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(i,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("topdatasec-ui")):typeof define=="function"&&define.amd?define(["exports","vue","topdatasec-ui"],r):(i=typeof globalThis<"u"?globalThis:i||self,r(i
|
|
1
|
+
(function(i,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("topdatasec-ui")):typeof define=="function"&&define.amd?define(["exports","vue","topdatasec-ui"],r):(i=typeof globalThis<"u"?globalThis:i||self,r(i.TdsReportUI=i.TdsReportUI||{},i.Vue,i.TdsChart))})(this,function(i,r,O){"use strict";const B={class:"chart-components"},y=(e=>{const t=e;return t.install=function(n){n.component(t.__name,e)},e})(r.defineComponent({name:"TdsReportBar",__name:"Bar",props:{data:{}},setup(e){const t=e;console.log(t.data,444444444);const n=r.computed(()=>t.data.options);return(o,s)=>(r.openBlock(),r.createElementBlock("div",B,[r.createVNode(r.unref(O),{option:n.value},null,8,["option"])]))}})),U=Object.freeze(Object.defineProperty({__proto__:null,TdsReportBar:y},Symbol.toStringTag,{value:"Module"}));function V(e=Date.now(),t="YYYY-MM-DD HH:mm:ss"){try{let n;if(typeof e=="number"||typeof e=="string"){if(n=new Date(e),isNaN(n.getTime()))throw new Error("Invalid date")}else n=e;const o=(a,c=2)=>String(a).padStart(c,"0"),s=a=>{switch(a){case"YYYY":return o(n.getFullYear());case"YY":return o(n.getFullYear()).slice(2,4);case"MM":return o(n.getMonth()+1);case"M":return String(n.getMonth()+1);case"DD":return o(n.getDate());case"D":return String(n.getDate());case"HH":return o(n.getHours());case"H":return String(n.getHours());case"mm":return o(n.getMinutes());case"m":return String(n.getMinutes());case"ss":return o(n.getSeconds());case"s":return String(n.getSeconds());case"SSS":return o(n.getMilliseconds(),3);default:return a}};return t.replace(/(YYYY|YY|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS)/g,s)}catch(n){return console.error("Error formatting date:",n),""}}function k(e,t=2,n=",",o=".",s,a){typeof e!="number"&&typeof e!="string"&&console.warn("Expected value to be of type number or string"),typeof t!="number"&&console.warn("Expected precision to be of type number");const c=Number(e);if(isNaN(c)||!isFinite(c))return"";if(c===0)return c.toFixed(t);let u=c.toFixed(t);if(typeof n=="string"&&n!==""){const[f,m]=u.split(".");u=f.replace(/(\d)(?=(\d{3})+$)/g,"$1"+n)+(m?o+m:"")}return(s||"")+u+(a||"")}function H(e,t=0,n=!1){let o=null;function s(c){if(o||(o=c),c-o>=t){try{e()}catch(f){console.error("Error executing rafTimeout function:",f)}n&&(o=c,a.id=requestAnimationFrame(s))}else a.id=requestAnimationFrame(s)}const a={id:requestAnimationFrame(s)};return a}function I(e){e&&e.id&&typeof e.id=="number"?cancelAnimationFrame(e.id):console.warn("cancelRaf received an invalid id:",e)}function M(e,t=300){let n=!0;return function(...o){return n&&(e(...o),n=!1,setTimeout(()=>{n=!0},t)),!1}}function T(e,t=300){let n=null;return function(...o){n&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}function j(e,t){if(Number.isNaN(e)||Number.isNaN(t))throw new Error("Both num1 and num2 must be valid numbers.");const n=e%1!==0,o=t%1!==0;if(!n&&!o)return e+t;const s=String(e).split(".")[1]??"",a=String(t).split(".")[1]??"",c=Math.max(s.length,a.length),u=Math.pow(10,c),f=e.toFixed(c),m=t.toFixed(c);return(+f.replace(".","")+ +m.replace(".",""))/u}function N(e,t){if(!e){console.error("无效的 url");return}const n=t||e.split("?")[0].split("/").pop()||"download";try{fetch(e).then(o=>{o.ok?o.blob().then(s=>{const a=URL.createObjectURL(s),c=document.createElement("a");c.href=a,c.download=n,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(a)}):console.error("请求文件失败,状态码:",o.status)})}catch(o){console.error("文件下载失败:",o)}}function q(){const e=document.documentElement;e.classList.toggle("dark"),e.classList.contains("dark")?e.style.colorScheme="dark":e.style.colorScheme="light"}function z(){const e=r.ref(!1),t=r.getCurrentInstance();return t&&r.onMounted(()=>{e.value=!0},t),e}function R(e){const t=z();return r.computed(()=>(t.value,!!e()))}function $(e,t,n){r.onMounted(()=>e.addEventListener(t,n)),r.onUnmounted(()=>e.removeEventListener(t,n))}function x(e,t,n={}){const o=R(()=>window&&"MutationObserver"in window),s=r.ref(!1);let a;const c=r.computed(()=>{const d=r.toValue(e);return d?Array.isArray(d)?d.map(p=>r.toValue(p)).filter(p=>p):[d]:[]}),u=()=>{a&&(a.disconnect(),a=void 0)},f=()=>{o.value&&c.value.length&&!s.value&&(a=new MutationObserver(t),c.value.forEach(d=>a.observe(d,n)))};r.watch(()=>c.value,()=>{u(),f()},{immediate:!0,flush:"post"});const m=()=>{s.value=!0,u()},h=()=>{s.value=!1,f()};return r.onBeforeUnmount(()=>u()),{stop:m,start:h}}function P(e=window,t=0,n,o){const s=r.ref(0),a=r.ref(0),c=r.ref(0),u=r.ref(0),f=r.ref(!1),m=r.ref(!1),h=r.ref(!1),d=r.ref(!1),p=r.ref(!1),E=r.ref(0),S=r.ref(0);function X(l){f.value=!0;const g=l.target.documentElement??l.target;s.value=g.scrollLeft,c.value=g.scrollTop,m.value=s.value<E.value,h.value=s.value>E.value,d.value=c.value<S.value,p.value=c.value>S.value,E.value=s.value,S.value=c.value,w(l),n&&n(l)}const _=M(X,t);function ee(l){f.value&&(f.value=!1,m.value=!1,h.value=!1,d.value=!1,p.value=!1,o&&o(l))}const w=T(ee,t+200),A=r.computed(()=>{const l=r.toValue(e);return l||null});r.watch(()=>A.value,(l,g)=>{var b;if(g&&D(g),l){const v=((b=l==null?void 0:l.document)==null?void 0:b.documentElement)||(l==null?void 0:l.documentElement)||l;a.value=v.scrollWidth-v.clientWidth,u.value=v.scrollHeight-v.clientHeight,v.addEventListener("scroll",_),v.addEventListener("scrollend",w)}},{immediate:!0,flush:"post"});function D(l){var b;const g=((b=l==null?void 0:l.document)==null?void 0:b.documentElement)||(l==null?void 0:l.documentElement)||l;g.removeEventListener("scroll",_),g.removeEventListener("scrollend",w)}return r.onBeforeUnmount(()=>D(A.value)),{x:s,xScrollMax:a,y:c,yScrollMax:u,isScrolling:f,left:m,right:h,top:d,bottom:p}}function C(){const e=r.ref(0),t=r.ref(0);let n=performance.now();const o=10,s=a=>{if(t.value++,t.value>=o){const c=a-n;e.value=Math.round(1e3/(c/o)),n=a,t.value=0}requestAnimationFrame(s)};return requestAnimationFrame(s),{fps:e}}function W(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid mediaQuery parameter. It must be a non-empty string.");const t=r.ref(window&&window.matchMedia(e).matches),n=window.matchMedia(e),o=s=>{t.value=s.matches};return r.onMounted(()=>{n.addEventListener("change",o)}),r.onBeforeUnmount(()=>{n.removeEventListener("change",o)}),{match:t}}function Z(e,t,n={}){const o=R(()=>window&&"ResizeObserver"in window);let s;const a=r.ref(!1),c=r.computed(()=>{const d=r.toValue(e);return d?Array.isArray(d)?d.map(p=>r.toValue(p)).filter(p=>p):[d]:[]}),u=()=>{s&&(s.disconnect(),s=void 0)},f=()=>{o.value&&c.value.length&&!a.value&&(s=new ResizeObserver(t),c.value.forEach(d=>s.observe(d,n)))};r.watch(()=>c.value,()=>{u(),f()},{immediate:!0,flush:"post"});const m=()=>{a.value=!0,u()},h=()=>{a.value=!1,f()};return r.onBeforeUnmount(()=>u()),{stop:m,start:h}}function G(e="default"){const t=r.useSlots(),n=o=>{var c;const s=(c=t[o])==null?void 0:c.call(t),a=u=>{if(u.type===r.Comment||Array.isArray(u.children)&&!u.children.length)return!1;if(u.type!==r.Text)return!0;if(typeof u.children=="string")return u.children.trim()!==""};return s&&(s!=null&&s.length)?s.some(f=>a(f)):!1};if(Array.isArray(e)){const o=r.reactive({});return e.forEach(s=>{const a=r.computed(()=>n(s));o[s]=a}),o}else return r.computed(()=>n(e))}const F={TdsReportBar:"TdsReportBar"},L={BackTop:["Tooltip"]};function J(e,t){if(["NumberAnimation","Watermark"].includes(e))return[];const n=[e];e in L&&n.push(...L[e]);const o=t!=null&&t.cjs?"lib":"es",s=[`@topdatasec/report/${o}/style/global.css`];return n.forEach(a=>{s.push(`@topdatasec/report/${o}/${F[a]}/${a}.css`)}),s}function K(e){return{type:"component",resolve:t=>{if(t in F)return{name:t,from:"@topdatasec/report",sideEffects:J(t,e)}}}}const Y=function(e){return Object.values(U).forEach(t=>{t&&t.install&&e.use(t)}),e},Q={install:Y};i.TdsReportBar=y,i.VueAmazingUIResolver=K,i.add=j,i.cancelRaf=I,i.dateFormat=V,i.debounce=T,i.default=Q,i.downloadFile=N,i.formatNumber=k,i.install=Y,i.rafTimeout=H,i.throttle=M,i.toggleDark=q,i.useEventListener=$,i.useFps=C,i.useMediaQuery=W,i.useMutationObserver=x,i.useResizeObserver=Z,i.useScroll=P,i.useSlotsExist=G,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/es/bar/Bar.vue.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { defineComponent as n, computed as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as n, computed as a, createElementBlock as r, openBlock as s, createVNode as c, unref as p } from "vue";
|
|
2
|
+
import d from "topdatasec-ui";
|
|
3
|
+
const m = { class: "chart-components" }, f = /* @__PURE__ */ n({
|
|
4
4
|
name: "TdsReportBar",
|
|
5
5
|
__name: "Bar",
|
|
6
6
|
props: {
|
|
7
7
|
data: {}
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
setup(t) {
|
|
10
|
+
const o = t;
|
|
11
|
+
console.log(o.data, 444444444);
|
|
12
|
+
const e = a(() => o.data.options);
|
|
13
|
+
return (i, l) => (s(), r("div", m, [
|
|
14
|
+
c(p(d), { option: e.value }, null, 8, ["option"])
|
|
13
15
|
]));
|
|
14
16
|
}
|
|
15
17
|
});
|
package/lib/bar/Bar.vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("topdatasec-ui"),s={class:"chart-components"},a=e.defineComponent({name:"TdsReportBar",__name:"Bar",props:{data:{}},setup(t){const o=t,n=e.computed(()=>o.data.options);return(c,u)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(e.unref(r),{option:n.value},null,8,["option"])]))}});exports.default=a;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("topdatasec-ui"),s={class:"chart-components"},a=e.defineComponent({name:"TdsReportBar",__name:"Bar",props:{data:{}},setup(t){const o=t;console.log(o.data,444444444);const n=e.computed(()=>o.data.options);return(c,u)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(e.unref(r),{option:n.value},null,8,["option"])]))}});exports.default=a;
|
package/package.json
CHANGED
package/es/alert/Alert.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Slot } from 'vue';
|
|
2
|
-
export interface Props {
|
|
3
|
-
message?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
type?: 'default' | 'success' | 'info' | 'warning' | 'error';
|
|
6
|
-
bordered?: boolean;
|
|
7
|
-
closable?: boolean;
|
|
8
|
-
closeText?: string;
|
|
9
|
-
icon?: string;
|
|
10
|
-
showIcon?: boolean;
|
|
11
|
-
actions?: Slot;
|
|
12
|
-
}
|
|
13
|
-
declare function __VLS_template(): {
|
|
14
|
-
attrs: Partial<{}>;
|
|
15
|
-
slots: {
|
|
16
|
-
icon?(_: {}): any;
|
|
17
|
-
icon?(_: {}): any;
|
|
18
|
-
default?(_: {}): any;
|
|
19
|
-
description?(_: {}): any;
|
|
20
|
-
actions?(_: {}): any;
|
|
21
|
-
closeText?(_: {}): any;
|
|
22
|
-
};
|
|
23
|
-
refs: {
|
|
24
|
-
alertRef: HTMLDivElement;
|
|
25
|
-
};
|
|
26
|
-
rootEl: any;
|
|
27
|
-
};
|
|
28
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
-
close: (...args: any[]) => void;
|
|
31
|
-
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
}>, {
|
|
34
|
-
type: "default" | "success" | "info" | "warning" | "error";
|
|
35
|
-
message: string;
|
|
36
|
-
description: string;
|
|
37
|
-
bordered: boolean;
|
|
38
|
-
closable: boolean;
|
|
39
|
-
closeText: string;
|
|
40
|
-
icon: string;
|
|
41
|
-
showIcon: boolean;
|
|
42
|
-
actions: Slot;
|
|
43
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
44
|
-
alertRef: HTMLDivElement;
|
|
45
|
-
}, any>;
|
|
46
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
-
export default _default;
|
|
48
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
-
new (): {
|
|
50
|
-
$slots: S;
|
|
51
|
-
};
|
|
52
|
-
};
|
package/es/alert/index.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Alert';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Alert').Props> & Readonly<{
|
|
4
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
close: (...args: any[]) => void;
|
|
7
|
-
}, import('vue').PublicProps, {
|
|
8
|
-
type: "default" | "success" | "info" | "warning" | "error";
|
|
9
|
-
message: string;
|
|
10
|
-
description: string;
|
|
11
|
-
bordered: boolean;
|
|
12
|
-
closable: boolean;
|
|
13
|
-
closeText: string;
|
|
14
|
-
icon: string;
|
|
15
|
-
showIcon: boolean;
|
|
16
|
-
actions: import('vue').Slot;
|
|
17
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
18
|
-
alertRef: HTMLDivElement;
|
|
19
|
-
}, any, import('vue').ComponentProvideOptions, {
|
|
20
|
-
P: {};
|
|
21
|
-
B: {};
|
|
22
|
-
D: {};
|
|
23
|
-
C: {};
|
|
24
|
-
M: {};
|
|
25
|
-
Defaults: {};
|
|
26
|
-
}, Readonly<import('./Alert').Props> & Readonly<{
|
|
27
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
28
|
-
}>, {}, {}, {}, {}, {
|
|
29
|
-
type: "default" | "success" | "info" | "warning" | "error";
|
|
30
|
-
message: string;
|
|
31
|
-
description: string;
|
|
32
|
-
bordered: boolean;
|
|
33
|
-
closable: boolean;
|
|
34
|
-
closeText: string;
|
|
35
|
-
icon: string;
|
|
36
|
-
showIcon: boolean;
|
|
37
|
-
actions: import('vue').Slot;
|
|
38
|
-
}>;
|
|
39
|
-
__isFragment?: never;
|
|
40
|
-
__isTeleport?: never;
|
|
41
|
-
__isSuspense?: never;
|
|
42
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Alert').Props> & Readonly<{
|
|
43
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
44
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
-
close: (...args: any[]) => void;
|
|
46
|
-
}, string, {
|
|
47
|
-
type: "default" | "success" | "info" | "warning" | "error";
|
|
48
|
-
message: string;
|
|
49
|
-
description: string;
|
|
50
|
-
bordered: boolean;
|
|
51
|
-
closable: boolean;
|
|
52
|
-
closeText: string;
|
|
53
|
-
icon: string;
|
|
54
|
-
showIcon: boolean;
|
|
55
|
-
actions: import('vue').Slot;
|
|
56
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
57
|
-
$slots: {
|
|
58
|
-
icon?(_: {}): any;
|
|
59
|
-
icon?(_: {}): any;
|
|
60
|
-
default?(_: {}): any;
|
|
61
|
-
description?(_: {}): any;
|
|
62
|
-
actions?(_: {}): any;
|
|
63
|
-
closeText?(_: {}): any;
|
|
64
|
-
};
|
|
65
|
-
}) & import('vue').Plugin;
|
|
66
|
-
export default _default;
|
package/lib/alert/Alert.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Slot } from 'vue';
|
|
2
|
-
export interface Props {
|
|
3
|
-
message?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
type?: 'default' | 'success' | 'info' | 'warning' | 'error';
|
|
6
|
-
bordered?: boolean;
|
|
7
|
-
closable?: boolean;
|
|
8
|
-
closeText?: string;
|
|
9
|
-
icon?: string;
|
|
10
|
-
showIcon?: boolean;
|
|
11
|
-
actions?: Slot;
|
|
12
|
-
}
|
|
13
|
-
declare function __VLS_template(): {
|
|
14
|
-
attrs: Partial<{}>;
|
|
15
|
-
slots: {
|
|
16
|
-
icon?(_: {}): any;
|
|
17
|
-
icon?(_: {}): any;
|
|
18
|
-
default?(_: {}): any;
|
|
19
|
-
description?(_: {}): any;
|
|
20
|
-
actions?(_: {}): any;
|
|
21
|
-
closeText?(_: {}): any;
|
|
22
|
-
};
|
|
23
|
-
refs: {
|
|
24
|
-
alertRef: HTMLDivElement;
|
|
25
|
-
};
|
|
26
|
-
rootEl: any;
|
|
27
|
-
};
|
|
28
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
-
close: (...args: any[]) => void;
|
|
31
|
-
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
}>, {
|
|
34
|
-
type: "default" | "success" | "info" | "warning" | "error";
|
|
35
|
-
message: string;
|
|
36
|
-
description: string;
|
|
37
|
-
bordered: boolean;
|
|
38
|
-
closable: boolean;
|
|
39
|
-
closeText: string;
|
|
40
|
-
icon: string;
|
|
41
|
-
showIcon: boolean;
|
|
42
|
-
actions: Slot;
|
|
43
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
44
|
-
alertRef: HTMLDivElement;
|
|
45
|
-
}, any>;
|
|
46
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
-
export default _default;
|
|
48
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
-
new (): {
|
|
50
|
-
$slots: S;
|
|
51
|
-
};
|
|
52
|
-
};
|
package/lib/alert/index.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Alert';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Alert').Props> & Readonly<{
|
|
4
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
close: (...args: any[]) => void;
|
|
7
|
-
}, import('vue').PublicProps, {
|
|
8
|
-
type: "default" | "success" | "info" | "warning" | "error";
|
|
9
|
-
message: string;
|
|
10
|
-
description: string;
|
|
11
|
-
bordered: boolean;
|
|
12
|
-
closable: boolean;
|
|
13
|
-
closeText: string;
|
|
14
|
-
icon: string;
|
|
15
|
-
showIcon: boolean;
|
|
16
|
-
actions: import('vue').Slot;
|
|
17
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
18
|
-
alertRef: HTMLDivElement;
|
|
19
|
-
}, any, import('vue').ComponentProvideOptions, {
|
|
20
|
-
P: {};
|
|
21
|
-
B: {};
|
|
22
|
-
D: {};
|
|
23
|
-
C: {};
|
|
24
|
-
M: {};
|
|
25
|
-
Defaults: {};
|
|
26
|
-
}, Readonly<import('./Alert').Props> & Readonly<{
|
|
27
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
28
|
-
}>, {}, {}, {}, {}, {
|
|
29
|
-
type: "default" | "success" | "info" | "warning" | "error";
|
|
30
|
-
message: string;
|
|
31
|
-
description: string;
|
|
32
|
-
bordered: boolean;
|
|
33
|
-
closable: boolean;
|
|
34
|
-
closeText: string;
|
|
35
|
-
icon: string;
|
|
36
|
-
showIcon: boolean;
|
|
37
|
-
actions: import('vue').Slot;
|
|
38
|
-
}>;
|
|
39
|
-
__isFragment?: never;
|
|
40
|
-
__isTeleport?: never;
|
|
41
|
-
__isSuspense?: never;
|
|
42
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Alert').Props> & Readonly<{
|
|
43
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
44
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
-
close: (...args: any[]) => void;
|
|
46
|
-
}, string, {
|
|
47
|
-
type: "default" | "success" | "info" | "warning" | "error";
|
|
48
|
-
message: string;
|
|
49
|
-
description: string;
|
|
50
|
-
bordered: boolean;
|
|
51
|
-
closable: boolean;
|
|
52
|
-
closeText: string;
|
|
53
|
-
icon: string;
|
|
54
|
-
showIcon: boolean;
|
|
55
|
-
actions: import('vue').Slot;
|
|
56
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
57
|
-
$slots: {
|
|
58
|
-
icon?(_: {}): any;
|
|
59
|
-
icon?(_: {}): any;
|
|
60
|
-
default?(_: {}): any;
|
|
61
|
-
description?(_: {}): any;
|
|
62
|
-
actions?(_: {}): any;
|
|
63
|
-
closeText?(_: {}): any;
|
|
64
|
-
};
|
|
65
|
-
}) & import('vue').Plugin;
|
|
66
|
-
export default _default;
|