@idmui/extend 0.7.2 → 0.7.3

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.
@@ -21,6 +21,7 @@ declare namespace _sfc_main {
21
21
  loading: boolean;
22
22
  };
23
23
  namespace computed {
24
+ function computeLocalTime(): (time: any, format?: string) => string;
24
25
  function computeUTCTime(): (time: any, format?: string) => string;
25
26
  function computePosition(): (point: any) => string;
26
27
  }
package/dist/index.js CHANGED
@@ -1267,11 +1267,16 @@ const JD = {
1267
1267
  };
1268
1268
  },
1269
1269
  computed: {
1270
- computeUTCTime() {
1270
+ computeLocalTime() {
1271
1271
  return function(s, a = "MMM-DD/HHmm, yyyy") {
1272
1272
  return `${zt(s).format(a)}`;
1273
1273
  };
1274
1274
  },
1275
+ computeUTCTime() {
1276
+ return function(s, a = "MMM-DD/HHmm, yyyy") {
1277
+ return `${zt(s).utc().format(a)}`;
1278
+ };
1279
+ },
1275
1280
  computePosition() {
1276
1281
  return function(s) {
1277
1282
  return !s || s.lng === null || s.lng === void 0 || isNaN(s.lng) || s.lat === null || s.lat === void 0 || isNaN(s.lat) ? "-" : Z.lat2pretty(s == null ? void 0 : s.lat, 2).pretty + ", " + Z.lng2pretty(s == null ? void 0 : s.lng, 2).pretty;
@@ -1291,7 +1296,7 @@ function uN(s, a, l, u, D, d) {
1291
1296
  ]),
1292
1297
  t("div", aN, [
1293
1298
  a[1] || (a[1] = t("span", { class: "text-label" }, "Report Date : ", -1)),
1294
- t("span", null, i(d.computeUTCTime(l.report.createdAt, "MMM-DD, YYYY")), 1)
1299
+ t("span", null, i(d.computeLocalTime(l.report.createdAt, "MMM-DD, YYYY")), 1)
1295
1300
  ]),
1296
1301
  a[9] || (a[9] = t("div", { style: { height: "2px", width: "100%", "background-color": "#E7E7E7", margin: "12px 0" } }, null, -1)),
1297
1302
  t("div", iN, [
@@ -1326,7 +1331,7 @@ function uN(s, a, l, u, D, d) {
1326
1331
  ])
1327
1332
  ]);
1328
1333
  }
1329
- const AN = /* @__PURE__ */ jl(JD, [["render", uN], ["__scopeId", "data-v-e06e6cd9"]]);
1334
+ const AN = /* @__PURE__ */ jl(JD, [["render", uN], ["__scopeId", "data-v-89d46487"]]);
1330
1335
  const yN = {
1331
1336
  name: "OrmVoyageSummary",
1332
1337
  components: { Editor: ne },