@varlet/ui 1.23.8 → 1.23.12-alpha.25
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/CHANGELOG.md +36 -0
- package/es/card/card.css +1 -1
- package/es/card/card.less +3 -2
- package/es/checkbox/style/index.js +1 -0
- package/es/checkbox/style/less.js +1 -0
- package/es/divider/divider.css +1 -1
- package/es/divider/divider.less +0 -1
- package/es/icon/icon.css +1 -1
- package/es/icon/icon.less +1 -0
- package/es/loading/Loading.js +33 -6
- package/es/loading/loading.css +1 -1
- package/es/loading/loading.less +55 -3
- package/es/loading/props.js +7 -0
- package/es/locale/en-US.d.ts +5 -0
- package/es/locale/zh-CN.d.ts +5 -0
- package/highlight/attributes.json +15 -7
- package/highlight/tags.json +2 -0
- package/highlight/web-types.json +46 -19
- package/lib/card/card.css +1 -1
- package/lib/card/card.less +3 -2
- package/lib/checkbox/style/index.js +1 -0
- package/lib/checkbox/style/less.js +1 -0
- package/lib/divider/divider.css +1 -1
- package/lib/divider/divider.less +0 -1
- package/lib/icon/icon.css +1 -1
- package/lib/icon/icon.less +1 -0
- package/lib/loading/Loading.js +32 -5
- package/lib/loading/loading.css +1 -1
- package/lib/loading/loading.less +55 -3
- package/lib/loading/props.js +7 -0
- package/lib/locale/en-US.d.ts +5 -0
- package/lib/locale/zh-CN.d.ts +5 -0
- package/lib/style.css +1 -1
- package/package.json +3 -3
- package/types/loading.d.ts +2 -0
- package/umd/varlet.js +4 -4
package/lib/loading/loading.less
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@import '../styles/var';
|
|
2
2
|
|
|
3
|
+
@loading-opacity: 0.38;
|
|
4
|
+
@loading-desc-margin: 8px 0 0;
|
|
3
5
|
@loading-normal-width: 50px;
|
|
4
6
|
@loading-normal-height: @font-size-md + 2;
|
|
5
7
|
|
|
@@ -12,10 +14,60 @@
|
|
|
12
14
|
@loading-mini-width: 22px;
|
|
13
15
|
@loading-mini-height: @font-size-xs + 2;
|
|
14
16
|
|
|
17
|
+
:root {
|
|
18
|
+
--loading-opacity: @loading-opacity;
|
|
19
|
+
--loading-desc-margin: @loading-desc-margin;
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
.var-loading {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
position: relative;
|
|
24
|
+
|
|
25
|
+
&__content {
|
|
26
|
+
transition: opacity 0.3s;
|
|
27
|
+
opacity: 1;
|
|
28
|
+
|
|
29
|
+
&--active {
|
|
30
|
+
opacity: var(--loading-opacity);
|
|
31
|
+
user-select: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__body {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
height: 100%;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__inside {
|
|
44
|
+
position: absolute;
|
|
45
|
+
left: 50%;
|
|
46
|
+
top: 50%;
|
|
47
|
+
transform: translate(-50%, -50%);
|
|
48
|
+
z-index: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__description {
|
|
52
|
+
color: currentColor;
|
|
53
|
+
margin: var(--loading-desc-margin);
|
|
54
|
+
|
|
55
|
+
&--large {
|
|
56
|
+
font-size: @font-size-lg;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&--normal {
|
|
60
|
+
font-size: @font-size-md;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&--small {
|
|
64
|
+
font-size: @font-size-sm;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&--mini {
|
|
68
|
+
font-size: @font-size-xs;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
19
71
|
|
|
20
72
|
&__circle {
|
|
21
73
|
display: flex;
|
package/lib/loading/props.js
CHANGED