magtool 1.1.4 → 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/assets/scss/var.scss +87 -0
- package/dist/index.js +29 -15
- package/dist/store.js +7 -7
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--mg-white: rgba(255, 255, 255, 1);
|
|
3
|
+
--mg-white1: rgba(255, 255, 255, 0.1);
|
|
4
|
+
--mg-white3: rgba(255, 255, 255, 0.3);
|
|
5
|
+
--mg-white5: rgba(255, 255, 255, 0.5);
|
|
6
|
+
--mg-white7: rgba(255, 255, 255, 0.7);
|
|
7
|
+
--mg-white9: rgba(255, 255, 255, 0.9);
|
|
8
|
+
--mg-dark: rgba(46, 38, 61, 1);
|
|
9
|
+
--mg-dark1: rgba(46, 38, 61, 0.1);
|
|
10
|
+
--mg-dark3: rgba(46, 38, 61, 0.3);
|
|
11
|
+
--mg-dark5: rgba(46, 38, 61, 0.5);
|
|
12
|
+
--mg-dark7: rgba(46, 38, 61, 0.7);
|
|
13
|
+
--mg-dark9: rgba(46, 38, 61, 0.9);
|
|
14
|
+
--mg-primary: rgba(22, 177, 255, 1);
|
|
15
|
+
--mg-primary1: rgba(22, 177, 255, 0.1);
|
|
16
|
+
--mg-primary3: rgba(22, 177, 255, 0.3);
|
|
17
|
+
--mg-primary5: rgba(22, 177, 255, 0.5);
|
|
18
|
+
--mg-primary7: rgba(22, 177, 255, 0.7);
|
|
19
|
+
--mg-primary9: rgba(22, 177, 255, 0.9);
|
|
20
|
+
--mg-orange: rgba(250, 139, 12, 1);
|
|
21
|
+
--mg-orange1: rgba(250, 139, 12, 0.1);
|
|
22
|
+
--mg-orange3: rgba(250, 139, 12, 0.3);
|
|
23
|
+
--mg-orange5: rgba(250, 139, 12, 0.5);
|
|
24
|
+
--mg-orange7: rgba(250, 139, 12, 0.7);
|
|
25
|
+
--mg-orange9: rgba(250, 139, 12, 0.9);
|
|
26
|
+
--mg-green: rgba(32, 201, 151, 1);
|
|
27
|
+
--mg-green1: rgba(32, 201, 151, 0.1);
|
|
28
|
+
--mg-green3: rgba(32, 201, 151, 0.3);
|
|
29
|
+
--mg-green5: rgba(32, 201, 151, 0.5);
|
|
30
|
+
--mg-green7: rgba(32, 201, 151, 0.7);
|
|
31
|
+
--mg-green9: rgba(32, 201, 151, 0.9);
|
|
32
|
+
--mg-red: rgba(255, 77, 79, 1);
|
|
33
|
+
--mg-red1: rgba(255, 77, 79, 0.1);
|
|
34
|
+
--mg-red3: rgba(255, 77, 79, 0.3);
|
|
35
|
+
--mg-red5: rgba(255, 77, 79, 0.5);
|
|
36
|
+
--mg-red7: rgba(255, 77, 79, 0.7);
|
|
37
|
+
--mg-red9: rgba(255, 77, 79, 0.9);
|
|
38
|
+
--mg-yellow: rgba(255, 77, 79, 1);
|
|
39
|
+
--mg-yellow1: rgba(255, 77, 79, 0.1);
|
|
40
|
+
--mg-yellow3: rgba(255, 77, 79, 0.3);
|
|
41
|
+
--mg-yellow5: rgba(255, 77, 79, 0.5);
|
|
42
|
+
--mg-yellow7: rgba(255, 77, 79, 0.7);
|
|
43
|
+
--mg-yellow9: rgba(255, 77, 79, 0.9);
|
|
44
|
+
--mg-blue: rgba(44, 153, 255, 1);
|
|
45
|
+
--mg-blue1: rgba(44, 153, 255, 0.1);
|
|
46
|
+
--mg-blue3: rgba(44, 153, 255, 0.3);
|
|
47
|
+
--mg-blue5: rgba(44, 153, 255, 0.5);
|
|
48
|
+
--mg-blue7: rgba(44, 153, 255, 0.7);
|
|
49
|
+
--mg-blue9: rgba(44, 153, 255, 0.9);
|
|
50
|
+
--mg-purple: rgba(134, 50, 244, 1);
|
|
51
|
+
--mg-purple1: rgba(134, 50, 244, 0.1);
|
|
52
|
+
--mg-purple3: rgba(134, 50, 244, 0.3);
|
|
53
|
+
--mg-purple5: rgba(134, 50, 244, 0.5);
|
|
54
|
+
--mg-purple7: rgba(134, 50, 244, 0.7);
|
|
55
|
+
--mg-purple9: rgba(134, 50, 244, 0.9);
|
|
56
|
+
--mg-pink: rgba(255, 105, 165, 1);
|
|
57
|
+
--mg-pink1: rgba(255, 105, 165, 0.1);
|
|
58
|
+
--mg-pink3: rgba(255, 105, 165, 0.3);
|
|
59
|
+
--mg-pink5: rgba(255, 105, 165, 0.5);
|
|
60
|
+
--mg-pink7: rgba(255, 105, 165, 0.7);
|
|
61
|
+
--mg-pink9: rgba(255, 105, 165, 0.9);
|
|
62
|
+
--mg-yellow: rgba(255, 204, 0, 1);
|
|
63
|
+
--mg-yellow1: rgba(255, 204, 0, 0.1);
|
|
64
|
+
--mg-yellow3: rgba(255, 204, 0, 0.3);
|
|
65
|
+
--mg-yellow5: rgba(255, 204, 0, 0.5);
|
|
66
|
+
--mg-yellow7: rgba(255, 204, 0, 0.7);
|
|
67
|
+
--mg-yellow9: rgba(255, 204, 0, 0.9);
|
|
68
|
+
--mg-gray: rgba(230, 230, 230, 1);
|
|
69
|
+
--mg-gray1: rgba(230, 230, 230, 0.1);
|
|
70
|
+
--mg-gray3: rgba(230, 230, 230, 0.3);
|
|
71
|
+
--mg-gray5: rgba(230, 230, 230, 0.5);
|
|
72
|
+
--mg-gray7: rgba(230, 230, 230, 0.7);
|
|
73
|
+
--mg-gray9: rgba(230, 230, 230, 0.9);
|
|
74
|
+
--mg-ad: rgba(239, 246, 254, 1);
|
|
75
|
+
|
|
76
|
+
--mg-label: #999;
|
|
77
|
+
--mg-dark-2: #666;
|
|
78
|
+
|
|
79
|
+
--mg-bg: #f0f2f7;
|
|
80
|
+
--mg-border: rgba(0, 0, 0, 0.1);
|
|
81
|
+
--mg-border-1: thin solid var(--mg-border);
|
|
82
|
+
|
|
83
|
+
--mg-trans-in: all 300ms ease-in;
|
|
84
|
+
--mg-trans-out: all 300ms ease-out;
|
|
85
|
+
--mg-trans-inout: all 300ms ease-in-out;
|
|
86
|
+
--mg-trans-linear: all 300ms linear;
|
|
87
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c as
|
|
3
|
-
import { d as
|
|
4
|
-
import { d as
|
|
5
|
-
import {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const u = (_, r) => {
|
|
8
|
+
_.use(a).use(n);
|
|
9
|
+
let e;
|
|
10
|
+
if (r.storeChips)
|
|
11
|
+
try {
|
|
12
|
+
const { store: t, pinia: i } = p(r.storeChips);
|
|
13
|
+
e = t, _.provide("store", t).use(i);
|
|
14
|
+
} catch {
|
|
15
|
+
throw new Error(
|
|
16
|
+
"piniaStore error, storeChips must be an Object source from import.meta.globa"
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
const s = localStorage.getItem("lang");
|
|
20
|
+
return s && s.includes("cn") && o.locale("zh-cn", {
|
|
21
|
+
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split(
|
|
22
|
+
"_"
|
|
23
|
+
),
|
|
24
|
+
monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split(
|
|
25
|
+
"_"
|
|
26
|
+
),
|
|
13
27
|
weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
|
|
14
28
|
weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
|
|
15
29
|
weekdaysMin: "日_一_二_三_四_五_六".split("_")
|
|
16
|
-
}), window.$m =
|
|
17
|
-
composition:
|
|
18
|
-
store:
|
|
30
|
+
}), window.$m = o, window.$moment = o, {
|
|
31
|
+
composition: m,
|
|
32
|
+
store: e
|
|
19
33
|
};
|
|
20
34
|
};
|
|
21
35
|
export {
|
|
22
|
-
|
|
36
|
+
u as default
|
|
23
37
|
};
|
package/dist/store.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createPinia as
|
|
2
|
-
const
|
|
1
|
+
import { createPinia as a, defineStore as c } from "pinia";
|
|
2
|
+
const r = a(), s = (e) => {
|
|
3
3
|
const t = {};
|
|
4
|
-
return Object.keys(e).forEach((
|
|
5
|
-
const
|
|
6
|
-
t[
|
|
7
|
-
}), { pinia:
|
|
4
|
+
return Object.keys(e).forEach((n) => {
|
|
5
|
+
const o = n.match(/chip\/(\S*).js/)[1];
|
|
6
|
+
t[o] = c(o, e[n].default);
|
|
7
|
+
}), { pinia: r, store: t };
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
s as p
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magtool",
|
|
3
3
|
"packageManager": "yarn@4.4.1",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.7",
|
|
5
5
|
"author": "magxl",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"build": "vite build"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
|
-
"dist/*"
|
|
36
|
+
"dist/*",
|
|
37
|
+
"assets/scss/var.scss"
|
|
37
38
|
],
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"magtool": "^1.1.2",
|