vue-data-ui 0.4.8 → 0.4.9
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.
|
@@ -12820,7 +12820,7 @@ function(e) {
|
|
|
12820
12820
|
*/
|
|
12821
12821
|
function(e) {
|
|
12822
12822
|
function t() {
|
|
12823
|
-
return (_t.canvg ? Promise.resolve(_t.canvg) : import("./index.es-
|
|
12823
|
+
return (_t.canvg ? Promise.resolve(_t.canvg) : import("./index.es-24ac22dd.js")).catch(function(A) {
|
|
12824
12824
|
return Promise.reject(new Error("Could not load canvg: " + A));
|
|
12825
12825
|
}).then(function(A) {
|
|
12826
12826
|
return A.default ? A.default : A;
|
|
@@ -38571,12 +38571,14 @@ const QO = ["id"], IO = { class: "vue-ui-vertical-bar-user-option-item" }, NO =
|
|
|
38571
38571
|
useCORS: !0,
|
|
38572
38572
|
scale: i.value.quality
|
|
38573
38573
|
}).then((de) => {
|
|
38574
|
-
const we = de.toDataURL("image/png", 1);
|
|
38574
|
+
const we = de.toDataURL("image/png", 1), De = we.split(",")[1], F = atob(De).length / 1024;
|
|
38575
38575
|
if (i.value.mode === "download") {
|
|
38576
|
-
const
|
|
38577
|
-
|
|
38576
|
+
const B = document.createElement("a");
|
|
38577
|
+
B.download = "screenshot.png", B.href = we, B.click();
|
|
38578
38578
|
}
|
|
38579
38579
|
i.value.mode === "post" && A("postImage", {
|
|
38580
|
+
createdAt: Date.now(),
|
|
38581
|
+
fileSize: `${F.toFixed(2)} KB`,
|
|
38580
38582
|
image: we,
|
|
38581
38583
|
x: se.left + window.scrollX,
|
|
38582
38584
|
y: se.top + window.scrollY,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as Ha } from "./index-
|
|
1
|
+
import { _ as Ha } from "./index-d6c7eff1.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function Vo(a) {
|
package/dist/vue-data-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as u, b as s, f as V, h as U, e as t, d as r, k as n, j as o, a as f, i as c, c as d, v as g } from "./index-
|
|
1
|
+
import { g as u, b as s, f as V, h as U, e as t, d as r, k as n, j as o, a as f, i as c, c as d, v as g } from "./index-d6c7eff1.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
u as VueUiChestnut,
|