magtool 1.1.6 → 1.1.7
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/README.md +3 -1
- package/dist/index.js +17 -15
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c as
|
|
3
|
-
import { d as
|
|
4
|
-
import { d as
|
|
5
|
-
import { p
|
|
1
|
+
import o from "moment";
|
|
2
|
+
import { c as m } from "./cps.js";
|
|
3
|
+
import { d as a } from "./util.js";
|
|
4
|
+
import { d as n } from "./directive.js";
|
|
5
|
+
import { p } from "./store.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
const
|
|
8
|
-
|
|
7
|
+
const u = (_, r) => {
|
|
8
|
+
_.use(a).use(n);
|
|
9
|
+
let e;
|
|
10
|
+
if (r.storeChips)
|
|
9
11
|
try {
|
|
10
|
-
const { store:
|
|
11
|
-
|
|
12
|
+
const { store: t, pinia: i } = p(r.storeChips);
|
|
13
|
+
e = t, _.provide("store", t).use(i);
|
|
12
14
|
} catch {
|
|
13
15
|
throw new Error(
|
|
14
16
|
"piniaStore error, storeChips must be an Object source from import.meta.globa"
|
|
15
17
|
);
|
|
16
18
|
}
|
|
17
|
-
const
|
|
18
|
-
return
|
|
19
|
+
const s = localStorage.getItem("lang");
|
|
20
|
+
return s && s.includes("cn") && o.locale("zh-cn", {
|
|
19
21
|
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split(
|
|
20
22
|
"_"
|
|
21
23
|
),
|
|
@@ -25,11 +27,11 @@ const w = (o, t) => {
|
|
|
25
27
|
weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
|
|
26
28
|
weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
|
|
27
29
|
weekdaysMin: "日_一_二_三_四_五_六".split("_")
|
|
28
|
-
}), window.$m =
|
|
29
|
-
composition:
|
|
30
|
-
store
|
|
30
|
+
}), window.$m = o, window.$moment = o, {
|
|
31
|
+
composition: m,
|
|
32
|
+
store: e
|
|
31
33
|
};
|
|
32
34
|
};
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
u as default
|
|
35
37
|
};
|