xt-element-ui 1.1.0 → 1.1.2
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/css/2.3f7aa432.css +1 -0
- package/lib/css/3.ffcc175d.css +1 -0
- package/lib/css/4.9abd1f2b.css +1 -0
- package/lib/css/5.1a31ed8a.css +1 -0
- package/lib/css/6.c2d0d77e.css +1 -0
- package/lib/index.common.0.js +120208 -0
- package/lib/index.common.2.js +1053 -0
- package/lib/index.common.3.js +996 -0
- package/lib/index.common.4.js +1108 -0
- package/lib/index.common.5.js +1009 -0
- package/lib/index.common.6.js +973 -0
- package/lib/index.common.js +8003 -211
- package/lib/index.css +1 -1
- package/lib/index.umd.0.js +120208 -0
- package/lib/index.umd.2.js +1053 -0
- package/lib/index.umd.3.js +996 -0
- package/lib/index.umd.4.js +1108 -0
- package/lib/index.umd.5.js +1009 -0
- package/lib/index.umd.6.js +973 -0
- package/lib/index.umd.js +8003 -211
- package/lib/index.umd.min.0.js +34 -0
- package/lib/index.umd.min.2.js +1 -0
- package/lib/index.umd.min.3.js +1 -0
- package/lib/index.umd.min.4.js +1 -0
- package/lib/index.umd.min.5.js +1 -0
- package/lib/index.umd.min.6.js +1 -0
- package/lib/index.umd.min.js +1 -1
- package/package.json +7 -3
- package/src/components/button/index.vue +5 -5
- package/src/components/button/style/index.scss +743 -90
- package/src/components/chart/ExBar.vue +203 -0
- package/src/components/chart/ExLine.vue +146 -0
- package/src/components/chart/ExMulti.vue +257 -0
- package/src/components/chart/ExPie.vue +159 -0
- package/src/components/chart/ExTrend.vue +121 -0
- package/src/components/chart/index.js +2 -0
- package/src/components/chart/index.vue +51 -0
- package/src/components/chart/pieList.vue +110 -0
- package/src/components/chart/theme/blue.js +91 -0
- package/src/components/chart/theme/dark.js +91 -0
- package/src/components/chart/theme/orange.js +92 -0
- package/src/components/chart/theme/starry.js +106 -0
- package/src/components/chart/theme/white.js +110 -0
- package/src/components/chart/utils.js +273 -0
- package/src/components/config-provider/index.vue +150 -51
- package/src/components/config-provider/style/index.scss +2 -2
- package/src/components/date-picker/SearchDate.vue +45 -0
- package/src/components/date-picker/index.js +2 -0
- package/src/components/date-picker/index.vue +131 -0
- package/src/components/date-picker/quarter.vue +152 -0
- package/src/components/grid-box/index.js +2 -0
- package/src/components/grid-box/index.vue +42 -0
- package/src/components/layout/BaseCollapse.vue +48 -0
- package/src/components/layout/ExFieldset.vue +204 -0
- package/src/components/page/index.js +0 -0
- package/src/components/page/index.vue +109 -0
- package/src/components/select-tree/index.js +0 -0
- package/src/components/select-tree/index.vue +386 -0
- package/src/components/table/ExCell.vue +27 -0
- package/src/components/table/ExColumn.vue +36 -0
- package/src/components/table/index.js +2 -0
- package/src/components/table/index.vue +731 -0
- package/src/components/table/processor.js +380 -0
- package/src/components/text/index.vue +79 -2
- package/src/components/text/style/index.scss +28 -6
- package/src/components/upload/index.js +2 -0
- package/src/components/upload/index.vue +225 -0
- package/src/components/upload/preview.vue +333 -0
- package/src/index.js +11 -2
- package/src/styles/css-variables.scss +238 -148
- package/src/styles/theme/background.scss +1 -1
- package/src/styles/theme/colors.scss +90 -1
- package/src/styles/variables.scss +1 -1
- package/src/components/button/style/index copy.scss +0 -221
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
@import '../../../styles/variables.scss';
|
|
2
|
-
|
|
3
|
-
// 颜色(使用主题变量)
|
|
4
|
-
$button-color-map: (
|
|
5
|
-
default: $xt-color-text-regular,
|
|
6
|
-
primary: $xt-color-primary,
|
|
7
|
-
success: $xt-color-success,
|
|
8
|
-
warning: $xt-color-warning,
|
|
9
|
-
danger: $xt-color-danger
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
$button-bg-color-map: (
|
|
13
|
-
default: transparent,
|
|
14
|
-
primary: $xt-color-primary,
|
|
15
|
-
success: $xt-color-success,
|
|
16
|
-
warning: $xt-color-warning,
|
|
17
|
-
danger: $xt-color-danger
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
$button-hover-bg-map: (
|
|
21
|
-
default: lighten($xt-color-primary, 10%),
|
|
22
|
-
primary: lighten($xt-color-primary, 10%),
|
|
23
|
-
success: lighten($xt-color-success, 10%),
|
|
24
|
-
warning: lighten($xt-color-warning, 10%),
|
|
25
|
-
danger: lighten($xt-color-danger, 10%)
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
$button-active-bg-map: (
|
|
29
|
-
default: darken($xt-color-primary, 10%),
|
|
30
|
-
primary: darken($xt-color-primary, 10%),
|
|
31
|
-
success: darken($xt-color-success, 10%),
|
|
32
|
-
warning: darken($xt-color-warning, 10%),
|
|
33
|
-
danger: darken($xt-color-danger, 10%)
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
// 尺寸
|
|
37
|
-
$button-size-map: (
|
|
38
|
-
large: 40px,
|
|
39
|
-
medium: 36px,
|
|
40
|
-
small: 32px,
|
|
41
|
-
mini: 28px
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
$button-font-size-map: (
|
|
45
|
-
large: 14px,
|
|
46
|
-
medium: 14px,
|
|
47
|
-
small: 12px,
|
|
48
|
-
mini: 12px
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
// 圆角
|
|
52
|
-
$button-radius: 4px;
|
|
53
|
-
|
|
54
|
-
// 基础按钮
|
|
55
|
-
.xt-button {
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
white-space: nowrap;
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
border: 1px solid $xt-color-border;
|
|
62
|
-
border-radius: $button-radius;
|
|
63
|
-
padding: 0 15px;
|
|
64
|
-
box-sizing: border-box;
|
|
65
|
-
outline: none;
|
|
66
|
-
transition: all 0.2s;
|
|
67
|
-
|
|
68
|
-
// 默认尺寸:medium
|
|
69
|
-
height: map-get($button-size-map, medium);
|
|
70
|
-
font-size: map-get($button-font-size-map, medium);
|
|
71
|
-
|
|
72
|
-
&:hover {
|
|
73
|
-
opacity: 0.9;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&:active {
|
|
77
|
-
opacity: 0.8;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// 禁用状态
|
|
81
|
-
&.is-disabled {
|
|
82
|
-
opacity: 0.5;
|
|
83
|
-
cursor: not-allowed;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// 圆角
|
|
87
|
-
&.is-round {
|
|
88
|
-
border-radius: 20px;
|
|
89
|
-
padding: 0 18px;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// ------------------------------
|
|
94
|
-
// 循环生成所有类型按钮
|
|
95
|
-
// ------------------------------
|
|
96
|
-
@each $type, $color in $button-color-map {
|
|
97
|
-
$bg: map-get($button-bg-color-map, $type);
|
|
98
|
-
$hover-bg: map-get($button-hover-bg-map, $type);
|
|
99
|
-
$active-bg: map-get($button-active-bg-map, $type);
|
|
100
|
-
|
|
101
|
-
.xt-button--#{$type} {
|
|
102
|
-
@if $type == default {
|
|
103
|
-
color: $color;
|
|
104
|
-
border-color: $xt-color-border;
|
|
105
|
-
} @else {
|
|
106
|
-
color: #fff;
|
|
107
|
-
border-color: $bg;
|
|
108
|
-
}
|
|
109
|
-
background: $bg;
|
|
110
|
-
|
|
111
|
-
&:hover {
|
|
112
|
-
background: $hover-bg;
|
|
113
|
-
border-color: $hover-bg;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&:active {
|
|
117
|
-
background: $active-bg;
|
|
118
|
-
border-color: $active-bg;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// default 按钮 hover 特殊处理
|
|
122
|
-
@if $type == default {
|
|
123
|
-
&:hover {
|
|
124
|
-
color: $hover-bg;
|
|
125
|
-
background: #ffffff;
|
|
126
|
-
border-color: $hover-bg;
|
|
127
|
-
}
|
|
128
|
-
&:active {
|
|
129
|
-
background: #fff;
|
|
130
|
-
border-color: $active-bg;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// ------------------------------
|
|
137
|
-
// 循环生成所有尺寸
|
|
138
|
-
// ------------------------------
|
|
139
|
-
@each $size, $height in $button-size-map {
|
|
140
|
-
$font: map-get($button-font-size-map, $size);
|
|
141
|
-
|
|
142
|
-
.xt-button--#{$size} {
|
|
143
|
-
height: $height;
|
|
144
|
-
font-size: $font;
|
|
145
|
-
|
|
146
|
-
@if $size == large {
|
|
147
|
-
padding: 0 20px;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// ------------------------------
|
|
153
|
-
// Plain 模式
|
|
154
|
-
// ------------------------------
|
|
155
|
-
.xt-button--plain {
|
|
156
|
-
background-color: transparent;
|
|
157
|
-
border-color: inherit;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@each $type, $color in $button-color-map {
|
|
161
|
-
$bg: map-get($button-bg-color-map, $type);
|
|
162
|
-
|
|
163
|
-
.xt-button--#{$type}.xt-button--plain {
|
|
164
|
-
@if $type == default {
|
|
165
|
-
color: $xt-color-text-regular;
|
|
166
|
-
background: transparent;
|
|
167
|
-
border-color: $xt-color-border;
|
|
168
|
-
&:hover {
|
|
169
|
-
background: $xt-color-bg-hover;
|
|
170
|
-
border-color: $xt-color-border-light;
|
|
171
|
-
}
|
|
172
|
-
} @else {
|
|
173
|
-
color: $bg;
|
|
174
|
-
background: transparent;
|
|
175
|
-
border-color: $bg;
|
|
176
|
-
&:hover {
|
|
177
|
-
background: rgba($bg, 0.1);
|
|
178
|
-
color: $bg;
|
|
179
|
-
border-color: $bg;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// ------------------------------
|
|
186
|
-
// 暗色主题
|
|
187
|
-
// ------------------------------
|
|
188
|
-
html.dark .xt-button {
|
|
189
|
-
border-color: $xt-dark-color-border;
|
|
190
|
-
background: $xt-dark-color-bg-primary;
|
|
191
|
-
color: $xt-dark-color-text-primary;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
html.dark .xt-button:hover {
|
|
195
|
-
background: $xt-dark-color-bg-secondary;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
html.dark .xt-button--primary {
|
|
199
|
-
background: $xt-color-primary;
|
|
200
|
-
border-color: $xt-color-primary;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
html.dark .xt-button--success {
|
|
204
|
-
background: $xt-dark-color-success;
|
|
205
|
-
border-color: $xt-dark-color-success;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
html.dark .xt-button--warning {
|
|
209
|
-
background: $xt-dark-color-warning;
|
|
210
|
-
border-color: $xt-dark-color-warning;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
html.dark .xt-button--danger {
|
|
214
|
-
background: $xt-dark-color-danger;
|
|
215
|
-
border-color: $xt-dark-color-danger;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
html.dark .xt-button--info {
|
|
219
|
-
background: $xt-dark-color-info;
|
|
220
|
-
border-color: $xt-dark-color-info;
|
|
221
|
-
}
|