iov-design 2.15.20 → 2.15.21
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/alert.js +5 -5
- package/lib/index.js +1 -1
- package/lib/iov-design.common.js +6 -6
- package/lib/theme-chalk/alert.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/link.css +1 -1
- package/package.json +3 -1
- package/packages/alert/src/main.vue +5 -5
- package/packages/theme-chalk/src/alert.scss +35 -31
- package/packages/theme-chalk/src/common/var.scss +5 -12
- package/packages/theme-chalk/src/link.scss +0 -5
- package/src/index.js +1 -1
package/lib/theme-chalk/link.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-link{
|
|
1
|
+
.el-link{position:relative;text-decoration:none;outline:0;cursor:pointer;padding:0}.el-link.is-underline:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid #3F57FF}.el-link.el-link--default:after,.el-link.el-link--primary.is-underline:hover:after,.el-link.el-link--primary:after{border-color:#3F57FF}.el-link.is-disabled{cursor:not-allowed}.el-link [class*=iov-icon-]+span{margin-left:2px}.el-link.el-link--default{color:#212026}.el-link.el-link--default:hover{color:#3F57FF}.el-link.el-link--default.is-disabled{color:#C6C7CA}.el-link.el-link--primary{color:#3F57FF}.el-link.el-link--primary:hover{color:#6579ff}.el-link.el-link--primary.is-disabled{color:#9fabff}.el-link.el-link--danger.is-underline:hover:after,.el-link.el-link--danger:after{border-color:#F53F3F}.el-link.el-link--danger{color:#F53F3F}.el-link.el-link--danger:hover{color:#f76565}.el-link.el-link--danger.is-disabled{color:#fa9f9f}.el-link.el-link--success.is-underline:hover:after,.el-link.el-link--success:after{border-color:#23B25D}.el-link.el-link--success{color:#23B25D}.el-link.el-link--success:hover{color:#4fc17d}.el-link.el-link--success.is-disabled{color:#91d9ae}.el-link.el-link--warning.is-underline:hover:after,.el-link.el-link--warning:after{border-color:#FF7D00}.el-link.el-link--warning{color:#FF7D00}.el-link.el-link--warning:hover{color:#ff9733}.el-link.el-link--warning.is-disabled{color:#ffbe80}.el-link.el-link--gold.is-underline:hover:after,.el-link.el-link--gold:after{border-color:#F7BA1E}.el-link.el-link--gold{color:#F7BA1E}.el-link.el-link--gold:hover{color:#f9c84b}.el-link.el-link--gold.is-disabled{color:#fbdd8f}.el-link.el-link--blue.is-underline:hover:after,.el-link.el-link--blue:after{border-color:#168CFF}.el-link.el-link--blue{color:#168CFF}.el-link.el-link--blue:hover{color:#45a3ff}.el-link.el-link--blue.is-disabled{color:#8bc6ff}.el-link.el-link--purple.is-underline:hover:after,.el-link.el-link--purple:after{border-color:#722ED1}.el-link.el-link--purple{color:#722ED1}.el-link.el-link--purple:hover{color:#8e58da}.el-link.el-link--purple.is-disabled{color:#b997e8}.el-link.el-link--pink.is-underline:hover:after,.el-link.el-link--pink:after{border-color:#D91AD9}.el-link.el-link--pink{color:#D91AD9}.el-link.el-link--pink:hover{color:#e148e1}.el-link.el-link--pink.is-disabled{color:#ec8dec}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iov-design",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.21",
|
|
4
4
|
"description": "A Component Library for Vue.js.",
|
|
5
5
|
"main": "lib/iov-design.common.js",
|
|
6
6
|
"files": [
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
],
|
|
13
13
|
"typings": "types/index.d.ts",
|
|
14
14
|
"scripts": {
|
|
15
|
+
"fnm:env": "fnm env --use-on-cd | Out-String | Invoke-Expression",
|
|
16
|
+
"fnm:use": "fnm use --install-if-missing 8",
|
|
15
17
|
"bootstrap": "yarn || npm i",
|
|
16
18
|
"build:file": "node build/bin/iconInit.js & node build/bin/build-entry.js & node build/bin/i18n.js & node build/bin/version.js",
|
|
17
19
|
"build:theme": "node build/bin/gen-cssfile && gulp build --gulpfile packages/theme-chalk/gulpfile.js && cp-cli packages/theme-chalk/lib lib/theme-chalk",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</span>
|
|
14
14
|
<p class="el-alert__description" v-if="$slots.default && !description"><slot></slot></p>
|
|
15
15
|
<p class="el-alert__description" v-if="description && !$slots.default">{{ description }}</p>
|
|
16
|
-
<i class="el-alert__closebtn" :class="{ 'is-customed': closeText !== '', '
|
|
16
|
+
<i class="el-alert__closebtn" :class="{ 'is-customed': closeText !== '', 'iov-icon-close': closeText === '' }" v-show="closable" @click="close()">{{closeText}}</i>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
</transition>
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
|
|
22
22
|
<script type="text/babel">
|
|
23
23
|
const TYPE_CLASSES_MAP = {
|
|
24
|
-
'success': '
|
|
25
|
-
'warning': '
|
|
26
|
-
'error': '
|
|
24
|
+
'success': 'iov-icon-fill-success',
|
|
25
|
+
'warning': 'iov-icon-fill-warning',
|
|
26
|
+
'error': 'iov-icon-fill-fail'
|
|
27
27
|
};
|
|
28
28
|
export default {
|
|
29
29
|
name: 'ElAlert',
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
|
|
81
81
|
iconClass() {
|
|
82
|
-
return TYPE_CLASSES_MAP[this.type] || '
|
|
82
|
+
return TYPE_CLASSES_MAP[this.type] || 'iov-icon-fill-explain';
|
|
83
83
|
},
|
|
84
84
|
|
|
85
85
|
isBigIcon() {
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|
@include when(light) {
|
|
19
19
|
.el-alert__closebtn {
|
|
20
|
-
color: $--color-
|
|
20
|
+
color: $--color-fill-4;
|
|
21
|
+
&:hover {
|
|
22
|
+
color: $--color-fill-6;
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
|
|
@@ -36,74 +39,74 @@
|
|
|
36
39
|
|
|
37
40
|
@include m(success) {
|
|
38
41
|
&.is-light {
|
|
39
|
-
background-color: $--
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.el-
|
|
43
|
-
color: $--color-success;
|
|
42
|
+
background-color: $--color-success-1;
|
|
43
|
+
border: 1px solid $--color-success-2;
|
|
44
|
+
color: $--color-text-6;
|
|
45
|
+
.el-alert__icon {
|
|
46
|
+
color: $--color-success-6;
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
&.is-dark {
|
|
48
|
-
background-color: $--color-success;
|
|
51
|
+
background-color: $--color-success-6;
|
|
49
52
|
color: $--color-white;
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
@include m(info) {
|
|
54
57
|
&.is-light {
|
|
55
|
-
background-color: $--
|
|
56
|
-
|
|
58
|
+
background-color: $--color-primary-1;
|
|
59
|
+
border: 1px solid $--color-primary-2;
|
|
60
|
+
color: $--color-text-6;
|
|
61
|
+
.el-alert__icon {
|
|
62
|
+
color: $--color-primary-6;
|
|
63
|
+
}
|
|
57
64
|
}
|
|
58
65
|
|
|
59
66
|
&.is-dark {
|
|
60
|
-
background-color: $--color-
|
|
67
|
+
background-color: $--color-primary-6;
|
|
61
68
|
color: $--color-white;
|
|
62
69
|
}
|
|
63
|
-
|
|
64
|
-
.el-alert__description {
|
|
65
|
-
color: $--color-info;
|
|
66
|
-
}
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
@include m(warning) {
|
|
70
73
|
&.is-light {
|
|
71
|
-
background-color: $--
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
.el-
|
|
75
|
-
color: $--color-warning;
|
|
74
|
+
background-color: $--color-warning-1;
|
|
75
|
+
border: 1px solid $--color-warning-2;
|
|
76
|
+
color: $--color-text-6;
|
|
77
|
+
.el-alert__icon {
|
|
78
|
+
color: $--color-warning-6;
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
&.is-dark {
|
|
80
|
-
background-color: $--color-warning;
|
|
83
|
+
background-color: $--color-warning-6;
|
|
81
84
|
color: $--color-white;
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
@include m(error) {
|
|
86
89
|
&.is-light {
|
|
87
|
-
background-color: $--
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
.el-
|
|
91
|
-
color: $--color-danger;
|
|
90
|
+
background-color: $--color-danger-1;
|
|
91
|
+
border: 1px solid $--color-danger-2;
|
|
92
|
+
color: $--color-text-6;
|
|
93
|
+
.el-alert__icon {
|
|
94
|
+
color: $--color-danger-6;
|
|
92
95
|
}
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
&.is-dark {
|
|
96
|
-
background-color: $--color-danger;
|
|
99
|
+
background-color: $--color-danger-6;
|
|
97
100
|
color: $--color-white;
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
@include e(content) {
|
|
102
105
|
display: table-cell;
|
|
103
|
-
padding: 0 8px;
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
@include e(icon) {
|
|
109
|
+
margin-right: 8px;
|
|
107
110
|
font-size: $--alert-icon-size;
|
|
108
111
|
width: $--alert-icon-size;
|
|
109
112
|
@include when(big) {
|
|
@@ -114,15 +117,16 @@
|
|
|
114
117
|
|
|
115
118
|
@include e(title) {
|
|
116
119
|
font-size: $--alert-title-font-size;
|
|
117
|
-
line-height: 18px;
|
|
118
120
|
@include when(bold) {
|
|
119
|
-
font-weight:
|
|
121
|
+
font-weight: 500;
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
& .el-alert__description {
|
|
124
126
|
font-size: $--alert-description-font-size;
|
|
125
127
|
margin: 5px 0 0 0;
|
|
128
|
+
color: $--color-text-6;
|
|
129
|
+
font-weight: 400;
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
@include e(closebtn) {
|
|
@@ -130,13 +134,13 @@
|
|
|
130
134
|
opacity: 1;
|
|
131
135
|
position: absolute;
|
|
132
136
|
top: 12px;
|
|
133
|
-
right:
|
|
137
|
+
right: 12px;
|
|
134
138
|
cursor: pointer;
|
|
135
139
|
|
|
136
140
|
@include when(customed) {
|
|
137
141
|
font-style: normal;
|
|
138
142
|
font-size: $--alert-close-customed-font-size;
|
|
139
|
-
top:
|
|
143
|
+
top: 11px;
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
146
|
}
|
|
@@ -280,26 +280,19 @@ $--select-dropdown-border: solid 0.5px $--color-line-2 !default;
|
|
|
280
280
|
|
|
281
281
|
/* Alert
|
|
282
282
|
-------------------------- */
|
|
283
|
-
$--alert-padding:
|
|
284
|
-
|
|
285
|
-
$--alert-
|
|
286
|
-
/// fontSize||Font|1
|
|
287
|
-
$--alert-title-font-size: 13px !default;
|
|
288
|
-
/// fontSize||Font|1
|
|
283
|
+
$--alert-padding: 11px 12px !default;
|
|
284
|
+
$--alert-border-radius: 4px !default;
|
|
285
|
+
$--alert-title-font-size: 12px !default;
|
|
289
286
|
$--alert-description-font-size: 12px !default;
|
|
290
|
-
|
|
291
|
-
$--alert-close-font-size: 12px !default;
|
|
292
|
-
/// fontSize||Font|1
|
|
293
|
-
$--alert-close-customed-font-size: 13px !default;
|
|
287
|
+
$--alert-close-font-size: 14px !default;
|
|
288
|
+
$--alert-close-customed-font-size: 12px !default;
|
|
294
289
|
|
|
295
290
|
$--alert-success-color: $--color-success-lighter !default;
|
|
296
291
|
$--alert-info-color: $--color-info-lighter !default;
|
|
297
292
|
$--alert-warning-color: $--color-warning-lighter !default;
|
|
298
293
|
$--alert-danger-color: $--color-danger-lighter !default;
|
|
299
294
|
|
|
300
|
-
/// height||Other|4
|
|
301
295
|
$--alert-icon-size: 16px !default;
|
|
302
|
-
/// height||Other|4
|
|
303
296
|
$--alert-icon-large-size: 28px !default;
|
|
304
297
|
|
|
305
298
|
/* MessageBox
|