iov-design 2.15.44 → 2.15.46
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/lib/date-picker.js +22 -8
- package/lib/dialog.js +49 -3
- package/lib/empty.js +4 -1
- package/lib/index.js +1 -1
- package/lib/iov-design.common.js +82 -19
- package/lib/message.js +6 -6
- package/lib/theme-chalk/alert.css +1 -1
- package/lib/theme-chalk/dialog.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/message.css +1 -1
- package/lib/theme-chalk/notification.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/time-picker.js +22 -8
- package/lib/time-select.js +22 -8
- package/package.json +1 -1
- package/packages/date-picker/src/picker.vue +10 -4
- package/packages/dialog/src/component.vue +44 -4
- package/packages/empty/src/index.vue +4 -1
- package/packages/message/src/main.js +1 -1
- package/packages/message/src/main.vue +6 -6
- package/packages/tabs/src/tabs.vue +196 -196
- package/packages/theme-chalk/src/alert.scss +21 -18
- package/packages/theme-chalk/src/common/var.scss +1 -34
- package/packages/theme-chalk/src/dialog.scss +16 -6
- package/packages/theme-chalk/src/message-box.scss +207 -207
- package/packages/theme-chalk/src/message.scss +28 -37
- package/packages/theme-chalk/src/table.scss +1 -0
- package/packages/theme-chalk/src/tabs.scss +686 -686
- package/src/index.js +1 -1
|
@@ -1,207 +1,207 @@
|
|
|
1
|
-
@import "mixins/mixins";
|
|
2
|
-
@import "common/var";
|
|
3
|
-
@import "common/popup";
|
|
4
|
-
@import "button";
|
|
5
|
-
@import "input";
|
|
6
|
-
|
|
7
|
-
@include b(message-box) {
|
|
8
|
-
display: inline-block;
|
|
9
|
-
width: 480px;
|
|
10
|
-
background: #fff;
|
|
11
|
-
border-radius: 8px;
|
|
12
|
-
text-align: left;
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
backface-visibility: hidden;
|
|
15
|
-
|
|
16
|
-
@include e(wrapper) {
|
|
17
|
-
position: fixed;
|
|
18
|
-
top: 0;
|
|
19
|
-
bottom: 0;
|
|
20
|
-
left: 0;
|
|
21
|
-
right: 0;
|
|
22
|
-
text-align: center;
|
|
23
|
-
|
|
24
|
-
&::after {
|
|
25
|
-
content: "";
|
|
26
|
-
display: inline-block;
|
|
27
|
-
height: 100%;
|
|
28
|
-
width: 0;
|
|
29
|
-
vertical-align: middle;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@include e(header) {
|
|
34
|
-
position: relative;
|
|
35
|
-
padding: 16px 24px;
|
|
36
|
-
border-bottom: 1px solid $--color-line-1;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@include e(title) {
|
|
40
|
-
padding-left: 0;
|
|
41
|
-
margin-bottom: 0;
|
|
42
|
-
font-size: 16px;
|
|
43
|
-
line-height: 1;
|
|
44
|
-
color: $--color-text-6;
|
|
45
|
-
span {
|
|
46
|
-
font-weight: 500;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@include e(headerbtn) {
|
|
51
|
-
position: absolute;
|
|
52
|
-
top: 50%;
|
|
53
|
-
right: 20px;
|
|
54
|
-
padding: 4px;
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
font-size: 0;
|
|
57
|
-
margin-top: -12px;
|
|
58
|
-
transition: all ease .3s;
|
|
59
|
-
border-radius: 4px;
|
|
60
|
-
|
|
61
|
-
.el-message-box__close {
|
|
62
|
-
font-size: 16px;
|
|
63
|
-
color: $--color-fill-5;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:focus, &:hover {
|
|
67
|
-
background: $--color-fill-1;
|
|
68
|
-
.el-message-box__close {
|
|
69
|
-
color: $--color-fill-6;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@include e(content) {
|
|
76
|
-
padding: 16px 24px 0;
|
|
77
|
-
color: $--color-text-6;
|
|
78
|
-
font-size: 13px;
|
|
79
|
-
line-height: 20px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@include e(container) {
|
|
83
|
-
position: relative;
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@include e(input) {
|
|
88
|
-
padding-top: 4px;
|
|
89
|
-
& input.invalid {
|
|
90
|
-
border-color: $--color-danger;
|
|
91
|
-
&:focus {
|
|
92
|
-
border-color: $--color-danger;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@include e(status) {
|
|
98
|
-
margin-right: 8px;
|
|
99
|
-
font-size: 24px !important;
|
|
100
|
-
float: left;
|
|
101
|
-
|
|
102
|
-
+ .el-message-box__message {
|
|
103
|
-
padding-top: 2px;
|
|
104
|
-
overflow: hidden;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&.iov-icon-fill-success {
|
|
108
|
-
color: $--color-success-6;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&.iov-icon-fill-explain {
|
|
112
|
-
color: $--color-primary-6;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&.iov-icon-fill-warning {
|
|
116
|
-
color: $--color-warning-6;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&.iov-icon-fill-fail {
|
|
120
|
-
color: $--color-danger-6;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@include e(message) {
|
|
125
|
-
margin: 0;
|
|
126
|
-
|
|
127
|
-
& p {
|
|
128
|
-
margin: 0;
|
|
129
|
-
line-height: 20px;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@include e(errormsg) {
|
|
134
|
-
color: $--color-danger-6;
|
|
135
|
-
font-size: 12px;
|
|
136
|
-
min-height: 18px;
|
|
137
|
-
margin-top: 2px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@include e(btns) {
|
|
141
|
-
padding: 16px 24px 20px;
|
|
142
|
-
text-align: right;
|
|
143
|
-
|
|
144
|
-
& button:nth-child(2) {
|
|
145
|
-
margin-left: 10px;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@include e(btns-reverse) {
|
|
150
|
-
flex-direction: row-reverse;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// centerAlign 布局
|
|
154
|
-
@include m(title-icon) {
|
|
155
|
-
@include e(header) {
|
|
156
|
-
padding: 24px 24px 0;
|
|
157
|
-
border-bottom: 0 none;
|
|
158
|
-
}
|
|
159
|
-
@include e(title) {
|
|
160
|
-
display: flex;
|
|
161
|
-
align-items: center;
|
|
162
|
-
}
|
|
163
|
-
@include e(status) {
|
|
164
|
-
float: none;
|
|
165
|
-
}
|
|
166
|
-
@include e(content) {
|
|
167
|
-
padding-top: 8px;
|
|
168
|
-
color: $--color-text-3;
|
|
169
|
-
}
|
|
170
|
-
@include e(message) {
|
|
171
|
-
padding-left: 32px;
|
|
172
|
-
&.no-type {
|
|
173
|
-
padding-left: 0;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.msgbox-fade-enter-active {
|
|
180
|
-
animation: msgbox-fade-in .3s;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.msgbox-fade-leave-active {
|
|
184
|
-
animation: msgbox-fade-out .3s;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
@keyframes msgbox-fade-in {
|
|
188
|
-
0% {
|
|
189
|
-
transform: translate3d(0, -20px, 0);
|
|
190
|
-
opacity: 0;
|
|
191
|
-
}
|
|
192
|
-
100% {
|
|
193
|
-
transform: translate3d(0, 0, 0);
|
|
194
|
-
opacity: 1;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
@keyframes msgbox-fade-out {
|
|
199
|
-
0% {
|
|
200
|
-
transform: translate3d(0, 0, 0);
|
|
201
|
-
opacity: 1;
|
|
202
|
-
}
|
|
203
|
-
100% {
|
|
204
|
-
transform: translate3d(0, -20px, 0);
|
|
205
|
-
opacity: 0;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
1
|
+
@import "mixins/mixins";
|
|
2
|
+
@import "common/var";
|
|
3
|
+
@import "common/popup";
|
|
4
|
+
@import "button";
|
|
5
|
+
@import "input";
|
|
6
|
+
|
|
7
|
+
@include b(message-box) {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: 480px;
|
|
10
|
+
background: #fff;
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
text-align: left;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
backface-visibility: hidden;
|
|
15
|
+
|
|
16
|
+
@include e(wrapper) {
|
|
17
|
+
position: fixed;
|
|
18
|
+
top: 0;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
text-align: center;
|
|
23
|
+
|
|
24
|
+
&::after {
|
|
25
|
+
content: "";
|
|
26
|
+
display: inline-block;
|
|
27
|
+
height: 100%;
|
|
28
|
+
width: 0;
|
|
29
|
+
vertical-align: middle;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@include e(header) {
|
|
34
|
+
position: relative;
|
|
35
|
+
padding: 16px 24px;
|
|
36
|
+
border-bottom: 1px solid $--color-line-1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include e(title) {
|
|
40
|
+
padding-left: 0;
|
|
41
|
+
margin-bottom: 0;
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
line-height: 1;
|
|
44
|
+
color: $--color-text-6;
|
|
45
|
+
span {
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include e(headerbtn) {
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 50%;
|
|
53
|
+
right: 20px;
|
|
54
|
+
padding: 4px;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
font-size: 0;
|
|
57
|
+
margin-top: -12px;
|
|
58
|
+
transition: all ease .3s;
|
|
59
|
+
border-radius: 4px;
|
|
60
|
+
|
|
61
|
+
.el-message-box__close {
|
|
62
|
+
font-size: 16px;
|
|
63
|
+
color: $--color-fill-5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:focus, &:hover {
|
|
67
|
+
background: $--color-fill-1;
|
|
68
|
+
.el-message-box__close {
|
|
69
|
+
color: $--color-fill-6;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include e(content) {
|
|
76
|
+
padding: 16px 24px 0;
|
|
77
|
+
color: $--color-text-6;
|
|
78
|
+
font-size: 13px;
|
|
79
|
+
line-height: 20px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@include e(container) {
|
|
83
|
+
position: relative;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@include e(input) {
|
|
88
|
+
padding-top: 4px;
|
|
89
|
+
& input.invalid {
|
|
90
|
+
border-color: $--color-danger;
|
|
91
|
+
&:focus {
|
|
92
|
+
border-color: $--color-danger;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@include e(status) {
|
|
98
|
+
margin-right: 8px;
|
|
99
|
+
font-size: 24px !important;
|
|
100
|
+
float: left;
|
|
101
|
+
|
|
102
|
+
+ .el-message-box__message {
|
|
103
|
+
padding-top: 2px;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.iov-icon-fill-success {
|
|
108
|
+
color: $--color-success-6;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.iov-icon-fill-explain {
|
|
112
|
+
color: $--color-primary-6;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.iov-icon-fill-warning {
|
|
116
|
+
color: $--color-warning-6;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.iov-icon-fill-fail {
|
|
120
|
+
color: $--color-danger-6;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@include e(message) {
|
|
125
|
+
margin: 0;
|
|
126
|
+
|
|
127
|
+
& p {
|
|
128
|
+
margin: 0;
|
|
129
|
+
line-height: 20px;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@include e(errormsg) {
|
|
134
|
+
color: $--color-danger-6;
|
|
135
|
+
font-size: 12px;
|
|
136
|
+
min-height: 18px;
|
|
137
|
+
margin-top: 2px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@include e(btns) {
|
|
141
|
+
padding: 16px 24px 20px;
|
|
142
|
+
text-align: right;
|
|
143
|
+
|
|
144
|
+
& button:nth-child(2) {
|
|
145
|
+
margin-left: 10px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@include e(btns-reverse) {
|
|
150
|
+
flex-direction: row-reverse;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// centerAlign 布局
|
|
154
|
+
@include m(title-icon) {
|
|
155
|
+
@include e(header) {
|
|
156
|
+
padding: 24px 24px 0;
|
|
157
|
+
border-bottom: 0 none;
|
|
158
|
+
}
|
|
159
|
+
@include e(title) {
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
}
|
|
163
|
+
@include e(status) {
|
|
164
|
+
float: none;
|
|
165
|
+
}
|
|
166
|
+
@include e(content) {
|
|
167
|
+
padding-top: 8px;
|
|
168
|
+
color: $--color-text-3;
|
|
169
|
+
}
|
|
170
|
+
@include e(message) {
|
|
171
|
+
padding-left: 32px;
|
|
172
|
+
&.no-type {
|
|
173
|
+
padding-left: 0;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.msgbox-fade-enter-active {
|
|
180
|
+
animation: msgbox-fade-in .3s;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.msgbox-fade-leave-active {
|
|
184
|
+
animation: msgbox-fade-out .3s;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@keyframes msgbox-fade-in {
|
|
188
|
+
0% {
|
|
189
|
+
transform: translate3d(0, -20px, 0);
|
|
190
|
+
opacity: 0;
|
|
191
|
+
}
|
|
192
|
+
100% {
|
|
193
|
+
transform: translate3d(0, 0, 0);
|
|
194
|
+
opacity: 1;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@keyframes msgbox-fade-out {
|
|
199
|
+
0% {
|
|
200
|
+
transform: translate3d(0, 0, 0);
|
|
201
|
+
opacity: 1;
|
|
202
|
+
}
|
|
203
|
+
100% {
|
|
204
|
+
transform: translate3d(0, -20px, 0);
|
|
205
|
+
opacity: 0;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -2,22 +2,21 @@
|
|
|
2
2
|
@import "common/var";
|
|
3
3
|
|
|
4
4
|
@include b(message) {
|
|
5
|
-
min-width:
|
|
5
|
+
min-width: 204px;
|
|
6
6
|
box-sizing: border-box;
|
|
7
|
-
border-radius:
|
|
8
|
-
border
|
|
9
|
-
border-style: $--border-style-base;
|
|
10
|
-
border-color: $--border-color-lighter;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
border: 1px solid $--color-line-2;
|
|
11
9
|
position: fixed;
|
|
12
10
|
left: 50%;
|
|
13
|
-
top:
|
|
11
|
+
top: 46px;
|
|
14
12
|
transform: translateX(-50%);
|
|
15
|
-
background-color:
|
|
13
|
+
background-color: #fff;
|
|
16
14
|
transition: opacity 0.3s, transform .4s, top 0.4s;
|
|
17
15
|
overflow: hidden;
|
|
18
|
-
padding:
|
|
16
|
+
padding: 13px 16px;
|
|
19
17
|
display: flex;
|
|
20
18
|
align-items: center;
|
|
19
|
+
box-shadow: 0 4px 18px 0 rgba(73,75,83,0.1);
|
|
21
20
|
|
|
22
21
|
@include when(center) {
|
|
23
22
|
justify-content: center;
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
|
|
26
25
|
@include when(closable) {
|
|
27
26
|
.el-message__content {
|
|
28
|
-
padding-right:
|
|
27
|
+
padding-right: 24px;
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
|
|
@@ -35,45 +34,37 @@
|
|
|
35
34
|
|
|
36
35
|
@include m(info) {
|
|
37
36
|
.el-message__content {
|
|
38
|
-
color: $--
|
|
37
|
+
color: $--color-text-6;
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
@include m(success) {
|
|
43
|
-
background-color: $--color-success-lighter;
|
|
44
|
-
border-color: $--color-success-light;
|
|
45
|
-
|
|
46
42
|
.el-message__content {
|
|
47
|
-
color: $--
|
|
43
|
+
color: $--color-text-6;
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
|
|
51
47
|
@include m(warning) {
|
|
52
|
-
background-color: $--color-warning-lighter;
|
|
53
|
-
border-color: $--color-warning-light;
|
|
54
|
-
|
|
55
48
|
.el-message__content {
|
|
56
|
-
color: $--
|
|
49
|
+
color: $--color-text-6;
|
|
57
50
|
}
|
|
58
51
|
}
|
|
59
52
|
|
|
60
53
|
@include m(error) {
|
|
61
|
-
background-color: $--color-danger-lighter;
|
|
62
|
-
border-color: $--color-danger-light;
|
|
63
|
-
|
|
64
54
|
.el-message__content {
|
|
65
|
-
color: $--
|
|
55
|
+
color: $--color-text-6;
|
|
66
56
|
}
|
|
67
57
|
}
|
|
68
58
|
|
|
69
59
|
@include e(icon) {
|
|
70
|
-
margin-right:
|
|
60
|
+
margin-right: 8px;
|
|
61
|
+
font-size: 16px;
|
|
71
62
|
}
|
|
72
63
|
|
|
73
64
|
@include e(content) {
|
|
74
65
|
padding: 0;
|
|
75
|
-
font-size:
|
|
76
|
-
line-height:
|
|
66
|
+
font-size: 13px;
|
|
67
|
+
line-height: 16px;
|
|
77
68
|
&:focus {
|
|
78
69
|
outline-width: 0;
|
|
79
70
|
}
|
|
@@ -82,34 +73,34 @@
|
|
|
82
73
|
@include e(closeBtn) {
|
|
83
74
|
position: absolute;
|
|
84
75
|
top: 50%;
|
|
85
|
-
right:
|
|
76
|
+
right: 16px;
|
|
86
77
|
transform: translateY(-50%);
|
|
87
78
|
cursor: pointer;
|
|
88
|
-
color: $--
|
|
89
|
-
font-size:
|
|
79
|
+
color: $--color-fill-5;
|
|
80
|
+
font-size: 14px;
|
|
90
81
|
|
|
91
82
|
&:focus {
|
|
92
83
|
outline-width: 0;
|
|
93
84
|
}
|
|
94
85
|
&:hover {
|
|
95
|
-
color: $--
|
|
86
|
+
color: $--color-fill-6;
|
|
96
87
|
}
|
|
97
88
|
}
|
|
98
89
|
|
|
99
|
-
|
|
100
|
-
color: $--
|
|
90
|
+
.iov-icon-fill-success {
|
|
91
|
+
color: $--color-success-6;
|
|
101
92
|
}
|
|
102
93
|
|
|
103
|
-
|
|
104
|
-
color: $--
|
|
94
|
+
.iov-icon-fill-explain {
|
|
95
|
+
color: $--color-primary-6;
|
|
105
96
|
}
|
|
106
97
|
|
|
107
|
-
|
|
108
|
-
color: $--
|
|
98
|
+
.iov-icon-fill-warning {
|
|
99
|
+
color: $--color-warning-6;
|
|
109
100
|
}
|
|
110
101
|
|
|
111
|
-
|
|
112
|
-
color: $--
|
|
102
|
+
.iov-icon-fill-fail {
|
|
103
|
+
color: $--color-danger-6;
|
|
113
104
|
}
|
|
114
105
|
}
|
|
115
106
|
|