element-sim 1.0.1 → 1.0.3
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.es.md +4 -2088
- package/CHANGELOG.zh-CN.md +2 -2065
- package/package.json +1 -1
- package/packages/theme-chalk/src/breadcrumb.scss +16 -12
- package/packages/theme-chalk/src/button.scss +17 -7
- package/packages/theme-chalk/src/common/var.scss +17 -15
- package/packages/theme-chalk/src/mixins/_button.scss +2 -2
- package/src/index.js +51 -51
package/package.json
CHANGED
|
@@ -22,19 +22,23 @@
|
|
|
22
22
|
float: left;
|
|
23
23
|
|
|
24
24
|
@include e(inner) {
|
|
25
|
-
color: $--color-text-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
text-decoration: none;
|
|
30
|
-
transition: $--color-transition-base;
|
|
25
|
+
color: $--color-text-secondary;
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
cursor: pointer;
|
|
31
29
|
color: $--color-text-primary;
|
|
32
|
-
|
|
33
|
-
&:hover {
|
|
34
|
-
color: $--color-primary;
|
|
35
|
-
cursor: pointer;
|
|
36
|
-
}
|
|
37
30
|
}
|
|
31
|
+
// &.is-link, & a {
|
|
32
|
+
// font-weight: 400;
|
|
33
|
+
// text-decoration: none;
|
|
34
|
+
// transition: $--color-transition-base;
|
|
35
|
+
// color: $--color-text-primary;
|
|
36
|
+
|
|
37
|
+
// &:hover {
|
|
38
|
+
// color: $--color-text-primary;
|
|
39
|
+
// cursor: pointer;
|
|
40
|
+
// }
|
|
41
|
+
// }
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
&:last-child {
|
|
@@ -42,7 +46,7 @@
|
|
|
42
46
|
.el-breadcrumb__inner a {
|
|
43
47
|
&, &:hover {
|
|
44
48
|
font-weight: normal;
|
|
45
|
-
color: $--color-text-
|
|
49
|
+
color: $--color-text-primary;
|
|
46
50
|
cursor: text;
|
|
47
51
|
}
|
|
48
52
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
background: $--button-default-background-color;
|
|
13
13
|
border: $--border-base;
|
|
14
14
|
border-color: $--button-default-border-color;
|
|
15
|
-
color: $--
|
|
15
|
+
color: $--color-primary;
|
|
16
16
|
-webkit-appearance: none;
|
|
17
17
|
text-align: center;
|
|
18
18
|
box-sizing: border-box;
|
|
@@ -20,11 +20,6 @@
|
|
|
20
20
|
margin: 0;
|
|
21
21
|
transition: .1s;
|
|
22
22
|
font-weight: $--button-font-weight;
|
|
23
|
-
@include utils-user-select(none);
|
|
24
|
-
& + & {
|
|
25
|
-
margin-left: 10px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
23
|
@include button-size($--button-padding-vertical, $--button-padding-horizontal, $--button-font-size, $--button-border-radius);
|
|
29
24
|
|
|
30
25
|
&:hover,
|
|
@@ -110,7 +105,7 @@
|
|
|
110
105
|
right: -1px;
|
|
111
106
|
bottom: -1px;
|
|
112
107
|
border-radius: inherit;
|
|
113
|
-
background-color: rgba(255,255,255,.
|
|
108
|
+
background-color: rgba(255,255,255,.5);
|
|
114
109
|
}
|
|
115
110
|
}
|
|
116
111
|
@include when(round) {
|
|
@@ -137,22 +132,37 @@
|
|
|
137
132
|
@include button-variant($--button-info-font-color, $--button-info-background-color, $--button-info-border-color);
|
|
138
133
|
}
|
|
139
134
|
@include m(medium) {
|
|
135
|
+
min-width: 96px;
|
|
140
136
|
@include button-size($--button-medium-padding-vertical, $--button-medium-padding-horizontal, $--button-medium-font-size, $--button-medium-border-radius);
|
|
141
137
|
@include when(circle) {
|
|
142
138
|
padding: $--button-medium-padding-vertical;
|
|
143
139
|
}
|
|
140
|
+
@include utils-user-select(none);
|
|
141
|
+
& + & {
|
|
142
|
+
margin-left: 20px;
|
|
143
|
+
}
|
|
144
144
|
}
|
|
145
145
|
@include m(small) {
|
|
146
|
+
min-width: 76px;
|
|
146
147
|
@include button-size($--button-small-padding-vertical, $--button-small-padding-horizontal, $--button-small-font-size, $--button-small-border-radius);
|
|
147
148
|
@include when(circle) {
|
|
148
149
|
padding: $--button-small-padding-vertical;
|
|
149
150
|
}
|
|
151
|
+
@include utils-user-select(none);
|
|
152
|
+
& + & {
|
|
153
|
+
margin-left: 16px;
|
|
154
|
+
}
|
|
150
155
|
}
|
|
151
156
|
@include m(mini) {
|
|
157
|
+
min-width: 60px;
|
|
152
158
|
@include button-size($--button-mini-padding-vertical, $--button-mini-padding-horizontal, $--button-mini-font-size, $--button-mini-border-radius);
|
|
153
159
|
@include when(circle) {
|
|
154
160
|
padding: $--button-mini-padding-vertical;
|
|
155
161
|
}
|
|
162
|
+
@include utils-user-select(none);
|
|
163
|
+
& + & {
|
|
164
|
+
margin-left: 12px;
|
|
165
|
+
}
|
|
156
166
|
}
|
|
157
167
|
@include m(text) {
|
|
158
168
|
border-color: transparent;
|
|
@@ -20,7 +20,7 @@ $--color-primary: #2163FC !default;
|
|
|
20
20
|
/// color|1|Background Color|4
|
|
21
21
|
$--color-white: #FFFFFF !default;
|
|
22
22
|
/// color|1|Background Color|4
|
|
23
|
-
$--color-black: #
|
|
23
|
+
$--color-black: #1D2129 !default;
|
|
24
24
|
$--color-primary-light-1: mix($--color-white, $--color-primary, 10%) !default; /* 53a8ff */
|
|
25
25
|
$--color-primary-light-2: mix($--color-white, $--color-primary, 20%) !default; /* 66b1ff */
|
|
26
26
|
$--color-primary-light-3: mix($--color-white, $--color-primary, 30%) !default; /* 79bbff */
|
|
@@ -49,25 +49,27 @@ $--color-warning-lighter: mix($--color-white, $--color-warning, 90%) !default;
|
|
|
49
49
|
$--color-danger-lighter: mix($--color-white, $--color-danger, 90%) !default;
|
|
50
50
|
$--color-info-lighter: mix($--color-white, $--color-info, 90%) !default;
|
|
51
51
|
/// color|1|Font Color|2
|
|
52
|
-
$--color-text-primary: #
|
|
52
|
+
$--color-text-primary: #272E3B !default;
|
|
53
53
|
/// color|1|Font Color|2
|
|
54
|
-
$--color-text-regular: #
|
|
54
|
+
$--color-text-regular: #4E5969 !default;
|
|
55
55
|
/// color|1|Font Color|2
|
|
56
|
-
$--color-text-secondary: #
|
|
56
|
+
$--color-text-secondary: #6B7785 !default;
|
|
57
57
|
/// color|1|Font Color|2
|
|
58
|
-
$--color-text-placeholder: #
|
|
58
|
+
$--color-text-placeholder: #A9AEB8 !default;
|
|
59
|
+
/// color|1|Font Color|2
|
|
60
|
+
$--color-text-gray: #A9AEB8 !default;
|
|
59
61
|
/// color|1|Border Color|3
|
|
60
|
-
$--border-color-base: #
|
|
62
|
+
$--border-color-base: #C9CDD4 !default;
|
|
61
63
|
/// color|1|Border Color|3
|
|
62
|
-
$--border-color-light: #
|
|
64
|
+
$--border-color-light: #E5E6EB !default;
|
|
63
65
|
/// color|1|Border Color|3
|
|
64
|
-
$--border-color-lighter: #
|
|
66
|
+
$--border-color-lighter: #F2F3F5 !default;
|
|
65
67
|
/// color|1|Border Color|3
|
|
66
|
-
$--border-color-extra-light: #
|
|
68
|
+
$--border-color-extra-light: #F7F8FA !default;
|
|
67
69
|
|
|
68
70
|
// Background
|
|
69
71
|
/// color|1|Background Color|4
|
|
70
|
-
$--background-color-base: #
|
|
72
|
+
$--background-color-base: #F2F3F5 !default;
|
|
71
73
|
|
|
72
74
|
/* Link
|
|
73
75
|
-------------------------- */
|
|
@@ -81,7 +83,7 @@ $--border-style-base: solid !default;
|
|
|
81
83
|
$--border-color-hover: $--color-text-placeholder !default;
|
|
82
84
|
$--border-base: $--border-width-base $--border-style-base $--border-color-base !default;
|
|
83
85
|
/// borderRadius|1|Radius|0
|
|
84
|
-
$--border-radius-base:
|
|
86
|
+
$--border-radius-base: 2px !default;
|
|
85
87
|
/// borderRadius|1|Radius|0
|
|
86
88
|
$--border-radius-small: 2px !default;
|
|
87
89
|
/// borderRadius|1|Radius|0
|
|
@@ -527,15 +529,15 @@ $--button-medium-padding-vertical: 10px !default;
|
|
|
527
529
|
$--button-medium-padding-horizontal: 20px !default;
|
|
528
530
|
|
|
529
531
|
/// fontSize||Font|1
|
|
530
|
-
$--button-small-font-size:
|
|
531
|
-
$--button-small-border-radius:
|
|
532
|
+
$--button-small-font-size: $--font-size-base !default;
|
|
533
|
+
$--button-small-border-radius: $--border-radius-base !default;
|
|
532
534
|
/// padding||Spacing|3
|
|
533
535
|
$--button-small-padding-vertical: 9px !default;
|
|
534
536
|
/// padding||Spacing|3
|
|
535
537
|
$--button-small-padding-horizontal: 15px !default;
|
|
536
538
|
/// fontSize||Font|1
|
|
537
|
-
$--button-mini-font-size:
|
|
538
|
-
$--button-mini-border-radius:
|
|
539
|
+
$--button-mini-font-size: $--font-size-small !default;
|
|
540
|
+
$--button-mini-border-radius: $--border-radius-base !default;
|
|
539
541
|
/// padding||Spacing|3
|
|
540
542
|
$--button-mini-padding-vertical: 7px !default;
|
|
541
543
|
/// padding||Spacing|3
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
&:focus,
|
|
62
62
|
&:active {
|
|
63
63
|
color: $--color-white;
|
|
64
|
-
background-color: mix($background-color, $--color-white);
|
|
65
|
-
border-color: mix($border-color, $--color-white);
|
|
64
|
+
background-color: mix($background-color, $--color-white, 40%);
|
|
65
|
+
border-color: mix($border-color, $--color-white, 40%);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* Automatically generated by './build/bin/build-entry.js' */
|
|
2
|
-
|
|
1
|
+
/* Automatically generated by './build/bin/build-entry.js' */
|
|
2
|
+
|
|
3
3
|
import Pagination from '../packages/pagination/index.js';
|
|
4
4
|
import Dialog from '../packages/dialog/index.js';
|
|
5
5
|
import Autocomplete from '../packages/autocomplete/index.js';
|
|
@@ -88,11 +88,11 @@ import SkeletonItem from '../packages/skeleton-item/index.js';
|
|
|
88
88
|
import Empty from '../packages/empty/index.js';
|
|
89
89
|
import Descriptions from '../packages/descriptions/index.js';
|
|
90
90
|
import DescriptionsItem from '../packages/descriptions-item/index.js';
|
|
91
|
-
import Result from '../packages/result/index.js';
|
|
92
|
-
import locale from 'element-sim/src/locale';
|
|
93
|
-
import CollapseTransition from 'element-sim/src/transitions/collapse-transition';
|
|
94
|
-
|
|
95
|
-
const components = [
|
|
91
|
+
import Result from '../packages/result/index.js';
|
|
92
|
+
import locale from 'element-sim/src/locale';
|
|
93
|
+
import CollapseTransition from 'element-sim/src/transitions/collapse-transition';
|
|
94
|
+
|
|
95
|
+
const components = [
|
|
96
96
|
Pagination,
|
|
97
97
|
Dialog,
|
|
98
98
|
Autocomplete,
|
|
@@ -176,48 +176,48 @@ const components = [
|
|
|
176
176
|
Empty,
|
|
177
177
|
Descriptions,
|
|
178
178
|
DescriptionsItem,
|
|
179
|
-
Result,
|
|
180
|
-
CollapseTransition
|
|
181
|
-
];
|
|
182
|
-
|
|
183
|
-
const install = function(Vue, opts = {}) {
|
|
184
|
-
locale.use(opts.locale);
|
|
185
|
-
locale.i18n(opts.i18n);
|
|
186
|
-
|
|
187
|
-
components.forEach(component => {
|
|
188
|
-
Vue.component(component.name, component);
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
Vue.use(InfiniteScroll);
|
|
192
|
-
Vue.use(Loading.directive);
|
|
193
|
-
|
|
194
|
-
Vue.prototype.$ELEMENT = {
|
|
195
|
-
size: opts.size || '',
|
|
196
|
-
zIndex: opts.zIndex || 2000
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
Vue.prototype.$loading = Loading.service;
|
|
200
|
-
Vue.prototype.$msgbox = MessageBox;
|
|
201
|
-
Vue.prototype.$alert = MessageBox.alert;
|
|
202
|
-
Vue.prototype.$confirm = MessageBox.confirm;
|
|
203
|
-
Vue.prototype.$prompt = MessageBox.prompt;
|
|
204
|
-
Vue.prototype.$notify = Notification;
|
|
205
|
-
Vue.prototype.$message = Message;
|
|
206
|
-
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
/* istanbul ignore if */
|
|
210
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
|
211
|
-
install(window.Vue);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export default {
|
|
215
|
-
version: '1.0.
|
|
216
|
-
locale: locale.use,
|
|
217
|
-
i18n: locale.i18n,
|
|
218
|
-
install,
|
|
219
|
-
CollapseTransition,
|
|
220
|
-
Loading,
|
|
179
|
+
Result,
|
|
180
|
+
CollapseTransition
|
|
181
|
+
];
|
|
182
|
+
|
|
183
|
+
const install = function(Vue, opts = {}) {
|
|
184
|
+
locale.use(opts.locale);
|
|
185
|
+
locale.i18n(opts.i18n);
|
|
186
|
+
|
|
187
|
+
components.forEach(component => {
|
|
188
|
+
Vue.component(component.name, component);
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
Vue.use(InfiniteScroll);
|
|
192
|
+
Vue.use(Loading.directive);
|
|
193
|
+
|
|
194
|
+
Vue.prototype.$ELEMENT = {
|
|
195
|
+
size: opts.size || '',
|
|
196
|
+
zIndex: opts.zIndex || 2000
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
Vue.prototype.$loading = Loading.service;
|
|
200
|
+
Vue.prototype.$msgbox = MessageBox;
|
|
201
|
+
Vue.prototype.$alert = MessageBox.alert;
|
|
202
|
+
Vue.prototype.$confirm = MessageBox.confirm;
|
|
203
|
+
Vue.prototype.$prompt = MessageBox.prompt;
|
|
204
|
+
Vue.prototype.$notify = Notification;
|
|
205
|
+
Vue.prototype.$message = Message;
|
|
206
|
+
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
/* istanbul ignore if */
|
|
210
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
211
|
+
install(window.Vue);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export default {
|
|
215
|
+
version: '1.0.2',
|
|
216
|
+
locale: locale.use,
|
|
217
|
+
i18n: locale.i18n,
|
|
218
|
+
install,
|
|
219
|
+
CollapseTransition,
|
|
220
|
+
Loading,
|
|
221
221
|
Pagination,
|
|
222
222
|
Dialog,
|
|
223
223
|
Autocomplete,
|
|
@@ -305,5 +305,5 @@ export default {
|
|
|
305
305
|
Empty,
|
|
306
306
|
Descriptions,
|
|
307
307
|
DescriptionsItem,
|
|
308
|
-
Result
|
|
309
|
-
};
|
|
308
|
+
Result
|
|
309
|
+
};
|