@topthink/components 1.0.67 → 1.0.69
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/package.json +3 -3
- package/scss/app.scss +7 -7
- package/scss/notification.scss +92 -92
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topthink/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.69",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prebuild": "rimraf es types",
|
|
6
6
|
"build": "rollup -c --environment NODE_ENV:production",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@toast-ui/editor": "^3.2.2",
|
|
21
21
|
"@toast-ui/react-editor": "^3.2.3",
|
|
22
22
|
"@topthink/bootstrap": "^1.0.23",
|
|
23
|
-
"@topthink/json-form": "^1.0.
|
|
23
|
+
"@topthink/json-form": "^1.0.51",
|
|
24
24
|
"@types/styled-components": "^5.1.11",
|
|
25
25
|
"ajv-i18n": "^4.0.0",
|
|
26
26
|
"axios": "^0.27.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
},
|
|
65
65
|
"author": "yunwuxin <tzzhangyajun@qq.com> (https://github.com/yunwuxin)",
|
|
66
66
|
"license": "MIT",
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "0c13b676df84bbad699a3e9932b84a42aac0d8f9"
|
|
68
68
|
}
|
package/scss/app.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import "~@topthink/bootstrap/scss/bootstrap";
|
|
2
|
-
@import "notification";
|
|
3
|
-
|
|
4
|
-
.btn-link {
|
|
5
|
-
padding: 0;
|
|
6
|
-
}
|
|
7
|
-
|
|
1
|
+
@import "~@topthink/bootstrap/scss/bootstrap";
|
|
2
|
+
@import "notification";
|
|
3
|
+
|
|
4
|
+
.btn-link {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
|
package/scss/notification.scss
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
.notification {
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 1100;
|
|
4
|
-
|
|
5
|
-
&-notice {
|
|
6
|
-
border-radius: 3px 3px;
|
|
7
|
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
|
|
8
|
-
border: 0 solid rgba(0, 0, 0, 0);;
|
|
9
|
-
background: #fff;
|
|
10
|
-
display: block;
|
|
11
|
-
width: auto;
|
|
12
|
-
line-height: 1.5;
|
|
13
|
-
position: relative;
|
|
14
|
-
margin: 10px 0;
|
|
15
|
-
max-width: 300px;
|
|
16
|
-
white-space: pre-wrap;
|
|
17
|
-
|
|
18
|
-
&-close {
|
|
19
|
-
position: absolute;
|
|
20
|
-
right: 5px;
|
|
21
|
-
top: 3px;
|
|
22
|
-
color: #000;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
outline: none;
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
font-weight: 700;
|
|
27
|
-
line-height: 1;
|
|
28
|
-
text-shadow: 0 1px 0 #fff;
|
|
29
|
-
filter: alpha(opacity=20);
|
|
30
|
-
opacity: .2;
|
|
31
|
-
text-decoration: none;
|
|
32
|
-
|
|
33
|
-
&-x:after {
|
|
34
|
-
content: '×';
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:hover {
|
|
38
|
-
opacity: 1;
|
|
39
|
-
filter: alpha(opacity=100);
|
|
40
|
-
text-decoration: none;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@mixin fade-effect {
|
|
46
|
-
animation-duration: 0.3s;
|
|
47
|
-
animation-fill-mode: both;
|
|
48
|
-
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-fade-appear,
|
|
52
|
-
&-fade-enter {
|
|
53
|
-
opacity: 0;
|
|
54
|
-
|
|
55
|
-
@include fade-effect;
|
|
56
|
-
animation-play-state: paused;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&-fade-leave {
|
|
60
|
-
@include fade-effect;
|
|
61
|
-
animation-play-state: paused;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-fade-appear#{&}-fade-appear-active,
|
|
65
|
-
&-fade-enter#{&}-fade-enter-active {
|
|
66
|
-
animation-name: rcNotificationFadeIn;
|
|
67
|
-
animation-play-state: running;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&-fade-leave#{&}-fade-leave-active {
|
|
71
|
-
animation-name: rcDialogFadeOut;
|
|
72
|
-
animation-play-state: running;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@keyframes rcNotificationFadeIn {
|
|
76
|
-
0% {
|
|
77
|
-
opacity: 0;
|
|
78
|
-
}
|
|
79
|
-
100% {
|
|
80
|
-
opacity: 1;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@keyframes rcDialogFadeOut {
|
|
85
|
-
0% {
|
|
86
|
-
opacity: 1;
|
|
87
|
-
}
|
|
88
|
-
100% {
|
|
89
|
-
opacity: 0;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
1
|
+
.notification {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 1100;
|
|
4
|
+
|
|
5
|
+
&-notice {
|
|
6
|
+
border-radius: 3px 3px;
|
|
7
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
|
|
8
|
+
border: 0 solid rgba(0, 0, 0, 0);;
|
|
9
|
+
background: #fff;
|
|
10
|
+
display: block;
|
|
11
|
+
width: auto;
|
|
12
|
+
line-height: 1.5;
|
|
13
|
+
position: relative;
|
|
14
|
+
margin: 10px 0;
|
|
15
|
+
max-width: 300px;
|
|
16
|
+
white-space: pre-wrap;
|
|
17
|
+
|
|
18
|
+
&-close {
|
|
19
|
+
position: absolute;
|
|
20
|
+
right: 5px;
|
|
21
|
+
top: 3px;
|
|
22
|
+
color: #000;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
outline: none;
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
line-height: 1;
|
|
28
|
+
text-shadow: 0 1px 0 #fff;
|
|
29
|
+
filter: alpha(opacity=20);
|
|
30
|
+
opacity: .2;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
|
|
33
|
+
&-x:after {
|
|
34
|
+
content: '×';
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
opacity: 1;
|
|
39
|
+
filter: alpha(opacity=100);
|
|
40
|
+
text-decoration: none;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin fade-effect {
|
|
46
|
+
animation-duration: 0.3s;
|
|
47
|
+
animation-fill-mode: both;
|
|
48
|
+
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-fade-appear,
|
|
52
|
+
&-fade-enter {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
|
|
55
|
+
@include fade-effect;
|
|
56
|
+
animation-play-state: paused;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-fade-leave {
|
|
60
|
+
@include fade-effect;
|
|
61
|
+
animation-play-state: paused;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-fade-appear#{&}-fade-appear-active,
|
|
65
|
+
&-fade-enter#{&}-fade-enter-active {
|
|
66
|
+
animation-name: rcNotificationFadeIn;
|
|
67
|
+
animation-play-state: running;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-fade-leave#{&}-fade-leave-active {
|
|
71
|
+
animation-name: rcDialogFadeOut;
|
|
72
|
+
animation-play-state: running;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes rcNotificationFadeIn {
|
|
76
|
+
0% {
|
|
77
|
+
opacity: 0;
|
|
78
|
+
}
|
|
79
|
+
100% {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@keyframes rcDialogFadeOut {
|
|
85
|
+
0% {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
88
|
+
100% {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|