@idmui/spot 0.7.9 → 0.8.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.
|
@@ -13873,7 +13873,7 @@ function(t) {
|
|
|
13873
13873
|
*/
|
|
13874
13874
|
function(t) {
|
|
13875
13875
|
function A() {
|
|
13876
|
-
return (he.canvg ? Promise.resolve(he.canvg) : import("./index.es-
|
|
13876
|
+
return (he.canvg ? Promise.resolve(he.canvg) : import("./index.es-661a9e2e.js")).catch(function(e) {
|
|
13877
13877
|
return Promise.reject(new Error("Could not load canvg: " + e));
|
|
13878
13878
|
}).then(function(e) {
|
|
13879
13879
|
return e.default ? e.default : e;
|
|
@@ -17210,14 +17210,13 @@ const sm = {
|
|
|
17210
17210
|
async handleDownloadPDF() {
|
|
17211
17211
|
var t, A;
|
|
17212
17212
|
if (this.loading.downloading === !0)
|
|
17213
|
-
return this.$message.warning("
|
|
17213
|
+
return this.$message.warning("PDF is downloading, please wait a moment..."), !1;
|
|
17214
17214
|
try {
|
|
17215
17215
|
this.loading.downloading = !0, await this.$nextTick();
|
|
17216
17216
|
const e = document.getElementById("pdfContent");
|
|
17217
|
-
if (this.menuIndex === 4 && (e.style.height = "1500px"), !e)
|
|
17218
|
-
|
|
17219
|
-
|
|
17220
|
-
}
|
|
17217
|
+
if (this.menuIndex === 4 && (e.style.height = "1500px"), !e)
|
|
17218
|
+
return this.$message.warning("未找到要打印的元素"), !1;
|
|
17219
|
+
this.$message.warning("PDF is downloading, please wait a moment...");
|
|
17221
17220
|
let r = [];
|
|
17222
17221
|
if (document.getElementById("weather-chart")) {
|
|
17223
17222
|
const w = He.getInstanceByDom(document.getElementById("weather-chart"));
|
|
@@ -17303,9 +17302,9 @@ const sm = {
|
|
|
17303
17302
|
let B = "";
|
|
17304
17303
|
this.menuIndex === 1 ? B = `WeatherForecast_History_${d}_${ee().format("YYYYMMDD")}` : this.menuIndex === 2 ? B = `WeatherForecast_7Day_${d}_${ee().format("YYYYMMDD")}` : this.menuIndex === 3 ? B = `WeatherForecast_14Day_${d}_${ee().format("YYYYMMDD")}` : this.menuIndex === 4 && (B = `WeatherForecast_Seasonal_${d}_${ee().format("YYYYMMDD")}`), u.save(`${B}.pdf`), this.menuIndex === 4 && (e.style.height = "unset"), this.loading.downloading = !1, r.forEach((w) => {
|
|
17305
17304
|
w.setOption({ renderer: "canvas" }), w.resize();
|
|
17306
|
-
}), this.$message.success("
|
|
17305
|
+
}), this.$message.success("PDF download succuss!");
|
|
17307
17306
|
} catch (e) {
|
|
17308
|
-
console.error("PDF generation failed:", e), this.menuIndex === 4 && (element.style.height = "unset"), this.loading.downloading = !1, this.$message.error("
|
|
17307
|
+
console.error("PDF generation failed:", e), this.menuIndex === 4 && (element.style.height = "unset"), this.loading.downloading = !1, this.$message.error("PDF download failed ! ");
|
|
17309
17308
|
}
|
|
17310
17309
|
}
|
|
17311
17310
|
}
|
|
@@ -18657,7 +18656,7 @@ function Xv(t, A, e, r, n, i) {
|
|
|
18657
18656
|
}, 8, ["modelValue", "title"])
|
|
18658
18657
|
]);
|
|
18659
18658
|
}
|
|
18660
|
-
const Vv = /* @__PURE__ */ nh(sm, [["render", Xv], ["__scopeId", "data-v-
|
|
18659
|
+
const Vv = /* @__PURE__ */ nh(sm, [["render", Xv], ["__scopeId", "data-v-1c19753e"]]), JC = {
|
|
18661
18660
|
install(t) {
|
|
18662
18661
|
t.component("SpotWeather", Vv);
|
|
18663
18662
|
}
|
|
@@ -18745,7 +18744,7 @@ const Wv = {
|
|
|
18745
18744
|
return function(t) {
|
|
18746
18745
|
if (t) {
|
|
18747
18746
|
const A = oe(t).tz(this.positionGmt);
|
|
18748
|
-
return `${A == null ? void 0 : A.format("MMM-DD
|
|
18747
|
+
return `${A == null ? void 0 : A.format("MMM-DD/HHmm")}`;
|
|
18749
18748
|
}
|
|
18750
18749
|
return "-";
|
|
18751
18750
|
};
|
|
@@ -19993,7 +19992,7 @@ function _C(t, A, e, r, n, i) {
|
|
|
19993
19992
|
]),
|
|
19994
19993
|
H("div", oC, [
|
|
19995
19994
|
(c = n.position) != null && c.name && !((u = n.loading) != null && u.meteogramEchart) ? (FA(), EA("div", lC, A[4] || (A[4] = [
|
|
19996
|
-
bd('<div class="title flex-start" data-v-
|
|
19995
|
+
bd('<div class="title flex-start" data-v-d0ffc939><div style="margin-right:20px;" data-v-d0ffc939>Meteogram</div></div><div id="weather-icons" data-v-d0ffc939></div><div id="weather-condition" data-v-d0ffc939></div><div id="wave-swell" data-v-d0ffc939></div>', 4)
|
|
19997
19996
|
]))) : (d = n.loading) != null && d.meteogramEchart ? (FA(), EA("div", cC, A[5] || (A[5] = [
|
|
19998
19997
|
H("img", {
|
|
19999
19998
|
style: { height: "200px" },
|
|
@@ -20011,7 +20010,7 @@ function _C(t, A, e, r, n, i) {
|
|
|
20011
20010
|
colspan: "1",
|
|
20012
20011
|
class: "border",
|
|
20013
20012
|
style: { width: "70px" }
|
|
20014
|
-
}, "DateTime"),
|
|
20013
|
+
}, "DateTime(LT)"),
|
|
20015
20014
|
H("th", {
|
|
20016
20015
|
rowspan: "1",
|
|
20017
20016
|
colspan: "1",
|
|
@@ -20216,7 +20215,7 @@ function _C(t, A, e, r, n, i) {
|
|
|
20216
20215
|
])
|
|
20217
20216
|
]);
|
|
20218
20217
|
}
|
|
20219
|
-
const jC = /* @__PURE__ */ nh(Wv, [["render", _C], ["__scopeId", "data-v-
|
|
20218
|
+
const jC = /* @__PURE__ */ nh(Wv, [["render", _C], ["__scopeId", "data-v-d0ffc939"]]), ZC = {
|
|
20220
20219
|
install(t) {
|
|
20221
20220
|
t.component("SpotReport", jC);
|
|
20222
20221
|
}
|
package/dist/index.js
CHANGED