@idmui/spot 0.7.9 → 0.8.0
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-765d3120.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
|
}
|
package/dist/index.js
CHANGED