ele-admin-plus 1.1.7-beta.1 → 1.1.7-beta.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/es/ele-app/style/common/index.scss +3 -3
- package/es/ele-app/style/overwrite/cascader/index.scss +57 -7
- package/es/ele-app/style/overwrite/css-var.scss +2 -0
- package/es/ele-app/style/overwrite/index.js +1 -0
- package/es/ele-app/style/overwrite/index.scss +1 -0
- package/es/ele-app/style/overwrite/input/css-var.scss +31 -0
- package/es/ele-app/style/overwrite/input/index.js +1 -0
- package/es/ele-app/style/overwrite/input/index.scss +453 -0
- package/es/ele-app/style/overwrite/select/index.scss +53 -10
- package/es/ele-app/utils.d.ts +1 -0
- package/es/ele-app/utils.js +5 -0
- package/es/ele-basic-select/index.d.ts +10 -4
- package/es/ele-basic-select/index.js +36 -35
- package/es/ele-basic-select/props.d.ts +6 -0
- package/es/ele-basic-select/props.js +7 -1
- package/es/ele-basic-select/style/css-var.scss +9 -0
- package/es/ele-basic-select/style/index.scss +137 -49
- package/es/ele-copyable/index.js +2 -0
- package/es/ele-data-table/style/index.scss +10 -6
- package/es/ele-icon-select/index.d.ts +6 -2
- package/es/ele-icon-select/index.js +4 -1
- package/es/ele-icon-select/props.d.ts +4 -0
- package/es/ele-icon-select/props.js +4 -0
- package/es/ele-icon-select/style/index.scss +4 -0
- package/es/ele-menus/style/index.scss +1 -1
- package/es/ele-split-panel/style/index.scss +7 -6
- package/es/ele-table-select/index.d.ts +10 -6
- package/es/ele-table-select/index.js +3 -1
- package/es/ele-table-select/props.d.ts +4 -0
- package/es/ele-table-select/props.js +4 -0
- package/es/ele-tree-select/index.d.ts +11 -7
- package/es/ele-tree-select/index.js +3 -1
- package/es/ele-tree-select/props.d.ts +4 -0
- package/es/ele-tree-select/props.js +5 -1
- package/es/ele-virtual-table/style/index.scss +8 -4
- package/es/icons/ArrowDown.js +5 -3
- package/es/icons/ArrowRight.js +4 -2
- package/es/icons/CloseOutlined.d.ts +2 -0
- package/es/icons/CloseOutlined.js +40 -0
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +26 -24
- package/es/style/themes/default.scss +74 -1
- package/es/style/themes/theme-util.scss +2 -0
- package/lib/ele-app/style/common/index.scss +3 -3
- package/lib/ele-app/style/overwrite/cascader/index.scss +57 -7
- package/lib/ele-app/style/overwrite/css-var.scss +2 -0
- package/lib/ele-app/style/overwrite/index.cjs +1 -0
- package/lib/ele-app/style/overwrite/index.scss +1 -0
- package/lib/ele-app/style/overwrite/input/css-var.scss +31 -0
- package/lib/ele-app/style/overwrite/input/index.cjs +2 -0
- package/lib/ele-app/style/overwrite/input/index.scss +453 -0
- package/lib/ele-app/style/overwrite/select/index.scss +53 -10
- package/lib/ele-app/utils.cjs +5 -0
- package/lib/ele-app/utils.d.ts +1 -0
- package/lib/ele-basic-select/index.cjs +35 -34
- package/lib/ele-basic-select/index.d.ts +10 -4
- package/lib/ele-basic-select/props.cjs +7 -1
- package/lib/ele-basic-select/props.d.ts +6 -0
- package/lib/ele-basic-select/style/css-var.scss +9 -0
- package/lib/ele-basic-select/style/index.scss +137 -49
- package/lib/ele-copyable/index.cjs +2 -0
- package/lib/ele-data-table/style/index.scss +10 -6
- package/lib/ele-icon-select/index.cjs +4 -1
- package/lib/ele-icon-select/index.d.ts +6 -2
- package/lib/ele-icon-select/props.cjs +4 -0
- package/lib/ele-icon-select/props.d.ts +4 -0
- package/lib/ele-icon-select/style/index.scss +4 -0
- package/lib/ele-menus/style/index.scss +1 -1
- package/lib/ele-split-panel/style/index.scss +7 -6
- package/lib/ele-table-select/index.cjs +3 -1
- package/lib/ele-table-select/index.d.ts +10 -6
- package/lib/ele-table-select/props.cjs +4 -0
- package/lib/ele-table-select/props.d.ts +4 -0
- package/lib/ele-tree-select/index.cjs +3 -1
- package/lib/ele-tree-select/index.d.ts +11 -7
- package/lib/ele-tree-select/props.cjs +5 -1
- package/lib/ele-tree-select/props.d.ts +4 -0
- package/lib/ele-virtual-table/style/index.scss +8 -4
- package/lib/icons/ArrowDown.cjs +5 -3
- package/lib/icons/ArrowRight.cjs +4 -2
- package/lib/icons/CloseOutlined.cjs +39 -0
- package/lib/icons/CloseOutlined.d.ts +2 -0
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/style/themes/default.scss +74 -1
- package/lib/style/themes/theme-util.scss +2 -0
- package/package.json +1 -4
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
flex: 0;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.el-
|
|
33
|
-
|
|
32
|
+
& > .el-input__icon {
|
|
33
|
+
flex-shrink: 0;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/* 数字输入框 */
|
|
38
|
-
&.el-input-number .el-input__inner {
|
|
38
|
+
&.el-input-number.is-controls-right .el-input__inner {
|
|
39
39
|
text-align: left;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -95,6 +95,23 @@
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
.el-cascader > .el-input .el-input__inner {
|
|
99
|
+
margin: -2px 0;
|
|
100
|
+
min-height: calc(#{elVar('input', 'height')} + 2px);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* 多选标签 */
|
|
104
|
+
.el-cascader__tags .el-tag__content,
|
|
105
|
+
.el-cascader__collapse-tag .el-tag__content {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
line-height: 14px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.el-cascader .el-cascader__tags {
|
|
112
|
+
padding: 0 0 0 4px;
|
|
113
|
+
}
|
|
114
|
+
|
|
98
115
|
.el-cascader .el-cascader__tags .el-tag,
|
|
99
116
|
.el-cascader__collapse-tags .el-cascader__collapse-tag .el-tag {
|
|
100
117
|
flex-shrink: 0;
|
|
@@ -103,13 +120,46 @@
|
|
|
103
120
|
border: none;
|
|
104
121
|
}
|
|
105
122
|
|
|
106
|
-
.el-
|
|
107
|
-
|
|
108
|
-
transform: none;
|
|
109
|
-
padding: 0 0 0 4px;
|
|
123
|
+
.el-cascader__tags .el-cascader__search-input {
|
|
124
|
+
margin: 2px 0 2px 5.8px;
|
|
110
125
|
}
|
|
111
126
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
127
|
+
/* 小尺寸 */
|
|
128
|
+
.el-cascader--small .el-cascader__tags .el-cascader__search-input {
|
|
129
|
+
height: 18px;
|
|
130
|
+
margin-top: 1px;
|
|
131
|
+
margin-bottom: 1px;
|
|
132
|
+
margin-left: 3.8px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.el-cascader--small .el-cascader__tags .el-tag,
|
|
136
|
+
.el-cascader__collapse-tags .el-cascader__collapse-tag .el-tag--small {
|
|
137
|
+
margin: 1px 4px 1px 0;
|
|
138
|
+
height: calc(elVar('component-size', 'small') - 4px - 2px);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* 大尺寸 */
|
|
142
|
+
.el-cascader--large .el-cascader__tags {
|
|
143
|
+
padding: 1px 0 1px 6px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.el-cascader--large .el-cascader__tags .el-tag {
|
|
147
|
+
height: calc(elVar('component-size', 'large') - 8px - 4px);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.el-cascader--large .el-cascader__tags .el-cascader__search-input {
|
|
151
|
+
margin-left: 7.8px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* 多选搜索框 */
|
|
155
|
+
.el-cascader__tags .el-tag + .el-cascader__search-input {
|
|
156
|
+
margin-left: 2px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* 标签溢出气泡 */
|
|
160
|
+
.el-popper > .el-cascader__collapse-tags {
|
|
161
|
+
margin: -5px -11px;
|
|
162
|
+
padding: 8px 10px;
|
|
163
|
+
background: inherit;
|
|
164
|
+
border-radius: inherit;
|
|
115
165
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
@use './date-picker/css-var.scss' as *;
|
|
6
6
|
@use './descriptions/css-var.scss' as *;
|
|
7
7
|
@use './image-viewer/css-var.scss' as *;
|
|
8
|
+
@use './input/css-var.scss' as *;
|
|
8
9
|
@use './message-box/css-var.scss' as *;
|
|
9
10
|
@use './notification/css-var.scss' as *;
|
|
10
11
|
@use './popper/css-var.scss' as *;
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
@include set-el-date-picker-var($var);
|
|
24
25
|
@include set-el-descriptions-var($var);
|
|
25
26
|
@include set-el-image-viewer-var($var);
|
|
27
|
+
@include set-el-input-var($var);
|
|
26
28
|
@include set-el-message-box-var($var);
|
|
27
29
|
@include set-el-notification-var($var);
|
|
28
30
|
@include set-el-popper-var($var);
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@use './date-picker/index.scss' as datePicker;
|
|
7
7
|
@use './descriptions/index.scss' as descriptions;
|
|
8
8
|
@use './image-viewer/index.scss' as imageViewer;
|
|
9
|
+
@use './input/index.scss' as input;
|
|
9
10
|
@use './message-box/index.scss' as messageBox;
|
|
10
11
|
@use './notification/index.scss' as notification;
|
|
11
12
|
@use './popper/index.scss' as popper;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use '../../../../style/util.scss' as *;
|
|
2
|
+
|
|
3
|
+
/* ElInput 主题变量 */
|
|
4
|
+
@mixin set-el-input-var($var) {
|
|
5
|
+
.el-input,
|
|
6
|
+
.el-textarea,
|
|
7
|
+
.el-range-editor {
|
|
8
|
+
@include set-ele-var('input', $var);
|
|
9
|
+
@include set-ele-var('input-error', $var);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.el-input--small {
|
|
13
|
+
@include set-ele-var('input-sm', $var);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.el-input--large {
|
|
17
|
+
@include set-ele-var('input-lg', $var);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.el-textarea {
|
|
21
|
+
@include set-ele-var('textarea', $var);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.el-textarea.el-input--small {
|
|
25
|
+
@include set-ele-var('textarea-sm', $var);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.el-textarea.el-input--large {
|
|
29
|
+
@include set-ele-var('textarea-lg', $var);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.scss';
|
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
@use '../../../../style/themes/default.scss' as *;
|
|
2
|
+
@use '../../../../style/util.scss' as *;
|
|
3
|
+
@use './css-var.scss' as *;
|
|
4
|
+
|
|
5
|
+
@include set-el-input-var($ele);
|
|
6
|
+
|
|
7
|
+
/* Input */
|
|
8
|
+
.el-input .el-input__wrapper,
|
|
9
|
+
.el-range-editor.el-input__wrapper {
|
|
10
|
+
border: eleVar('input', 'border');
|
|
11
|
+
background: eleVar('input', 'bg');
|
|
12
|
+
border-radius: eleVar('input', 'radius');
|
|
13
|
+
padding: eleVar('input', 'padding');
|
|
14
|
+
transition: all $ele-transition;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
position: relative;
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.el-textarea .el-textarea__inner {
|
|
21
|
+
background: eleVar('input', 'bg');
|
|
22
|
+
padding: eleVar('textarea', 'padding');
|
|
23
|
+
min-height: elVar('component-size') !important;
|
|
24
|
+
border-radius: eleVar('input', 'radius');
|
|
25
|
+
border: eleVar('input', 'border');
|
|
26
|
+
transition: all $ele-transition;
|
|
27
|
+
box-shadow: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Hover */
|
|
31
|
+
.el-input .el-input__wrapper:hover,
|
|
32
|
+
.el-textarea .el-textarea__inner:hover,
|
|
33
|
+
.el-select:not(.el-select--disabled):hover .el-input .el-input__wrapper,
|
|
34
|
+
.el-cascader:not(.is-disabled):hover .el-input .el-input__wrapper,
|
|
35
|
+
.el-range-editor:not(.is-disabled):hover,
|
|
36
|
+
body .el-input-number:not(.is-disabled):hover .el-input .el-input__wrapper {
|
|
37
|
+
border: eleVar('input', 'hover-border');
|
|
38
|
+
background: eleVar('input', 'hover-bg');
|
|
39
|
+
box-shadow: eleVar('input', 'hover-shadow');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Focus */
|
|
43
|
+
.el-input .el-input__wrapper.is-focus,
|
|
44
|
+
.el-textarea .el-textarea__inner:focus,
|
|
45
|
+
.el-cascader .el-input.el-input--suffix .el-input__wrapper.is-focus,
|
|
46
|
+
.el-cascader .el-input.el-input--suffix.is-focus .el-input__wrapper,
|
|
47
|
+
.el-range-editor.el-input__wrapper.is-active:not(.is-disabled),
|
|
48
|
+
body .el-input-number:not(.is-disabled) .el-input .el-input__wrapper.is-focus {
|
|
49
|
+
border: eleVar('input', 'focus-border');
|
|
50
|
+
background: eleVar('input', 'focus-bg');
|
|
51
|
+
box-shadow: eleVar('input', 'focus-shadow');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* 层级 */
|
|
55
|
+
.el-input .el-input__wrapper:hover,
|
|
56
|
+
.el-input .el-input__wrapper.is-focus {
|
|
57
|
+
z-index: 2;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.el-select .el-select__tags,
|
|
61
|
+
.el-cascader .el-cascader__tags,
|
|
62
|
+
.el-input-number .el-input-number__increase,
|
|
63
|
+
.el-input-number .el-input-number__decrease {
|
|
64
|
+
z-index: 3;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* 字数统计 */
|
|
68
|
+
.el-input .el-input__wrapper .el-input__count {
|
|
69
|
+
color: eleVar('input', 'count-color');
|
|
70
|
+
font-size: eleVar('input', 'count-size');
|
|
71
|
+
margin-left: eleVar('input', 'icon-space');
|
|
72
|
+
line-height: normal;
|
|
73
|
+
|
|
74
|
+
.el-input__count-inner {
|
|
75
|
+
padding: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* 图标 */
|
|
80
|
+
.el-input .el-input__wrapper .el-input__icon,
|
|
81
|
+
.el-select .el-input .el-input__wrapper .el-select__icon,
|
|
82
|
+
.el-range-editor .el-input__icon.el-range__icon,
|
|
83
|
+
.el-range-editor .el-input__icon.el-range__close-icon,
|
|
84
|
+
.el-input .el-input__wrapper .el-input__prefix-icon {
|
|
85
|
+
color: eleVar('input', 'icon-color');
|
|
86
|
+
font-size: eleVar('input', 'icon-size');
|
|
87
|
+
transition: all $ele-transition;
|
|
88
|
+
height: 1em;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.el-input .el-input__prefix-inner .el-input__icon,
|
|
92
|
+
.el-select .el-input__prefix-inner .el-select__icon,
|
|
93
|
+
.el-range-editor .el-input__icon.el-range__icon,
|
|
94
|
+
.el-input .el-input__prefix-inner > div {
|
|
95
|
+
margin-right: eleVar('input', 'icon-space');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.el-input .el-input__suffix-inner .el-input__icon,
|
|
99
|
+
.el-select .el-input__suffix-inner .el-select__icon {
|
|
100
|
+
margin-left: eleVar('input', 'icon-space');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* 密码图标 */
|
|
104
|
+
.el-input .el-input__wrapper .el-input__password {
|
|
105
|
+
margin: eleVar('input', 'eye-margin');
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
color: eleVar('input', 'icon-hover-color');
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* 清空图标 */
|
|
113
|
+
.el-input .el-input__wrapper .el-input__clear,
|
|
114
|
+
.el-select .el-input .el-select__caret,
|
|
115
|
+
.el-cascader .el-input__icon.icon-circle-close,
|
|
116
|
+
.el-cascader .el-input__icon.icon-arrow-down,
|
|
117
|
+
.el-date-editor .el-input__icon.clear-icon,
|
|
118
|
+
.el-range-editor .el-input__icon.el-range__close-icon {
|
|
119
|
+
margin: eleVar('input', 'clear-margin');
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.el-input .el-input__wrapper .el-input__clear,
|
|
123
|
+
.el-cascader .el-input__icon.icon-circle-close,
|
|
124
|
+
.el-date-editor .el-input__icon.clear-icon,
|
|
125
|
+
.el-range-editor .el-input__icon.el-range__close-icon {
|
|
126
|
+
font-size: eleVar('input', 'clear-size');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.el-input .el-input__clear,
|
|
130
|
+
.el-input__icon.icon-circle-close,
|
|
131
|
+
.el-input__icon.clear-icon,
|
|
132
|
+
.el-range-editor .el-input__icon.el-range__close-icon {
|
|
133
|
+
background: eleVar('input', 'clear-color');
|
|
134
|
+
border-radius: 50%;
|
|
135
|
+
|
|
136
|
+
&:hover {
|
|
137
|
+
background: eleVar('input', 'clear-hover-color');
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* 状态图标 */
|
|
142
|
+
.el-input .el-input__wrapper .el-input__validateIcon {
|
|
143
|
+
margin: eleVar('input', 'status-margin');
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.el-input .el-input__clear + .el-input__validateIcon,
|
|
147
|
+
.el-input__icon.icon-circle-close + .el-input__validateIcon,
|
|
148
|
+
.el-input__icon.clear-icon + .el-input__validateIcon {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* 清空图标和验证失败图标修改 */
|
|
153
|
+
.el-input__clear > svg > path,
|
|
154
|
+
.el-input__icon.icon-circle-close > svg > path,
|
|
155
|
+
.el-input__icon.clear-icon > svg > path,
|
|
156
|
+
.el-input__icon.el-range__close-icon > svg > path {
|
|
157
|
+
fill: none;
|
|
158
|
+
stroke: elVar('bg-color', 'overlay');
|
|
159
|
+
stroke-width: 100;
|
|
160
|
+
stroke-linecap: round;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.el-input__clear > svg > path,
|
|
164
|
+
.el-input__icon.icon-circle-close > svg > path,
|
|
165
|
+
.el-input__icon.clear-icon > svg > path,
|
|
166
|
+
.el-input__icon.el-range__close-icon > svg > path,
|
|
167
|
+
.el-form-item.is-error .el-input__validateIcon > svg > path {
|
|
168
|
+
#{'d'}: path('M320 320L704 704');
|
|
169
|
+
|
|
170
|
+
&:last-child {
|
|
171
|
+
#{'d'}: path('M320 704L704 320');
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* 验证通过图标修改 */
|
|
176
|
+
.el-input .el-input__validateIcon {
|
|
177
|
+
font-size: eleVar('input', 'status-size');
|
|
178
|
+
background: eleVar('input', 'status-color');
|
|
179
|
+
border-radius: 50%;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.el-input__validateIcon > svg > path {
|
|
183
|
+
fill: none;
|
|
184
|
+
stroke: elVar('bg-color', 'overlay');
|
|
185
|
+
stroke-width: 100;
|
|
186
|
+
stroke-linecap: round;
|
|
187
|
+
#{'d'}: path('M755 364 426 700 254 529');
|
|
188
|
+
|
|
189
|
+
&:last-child {
|
|
190
|
+
#{'d'}: path('');
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* 下拉箭头图标修改 */
|
|
195
|
+
.el-select__caret,
|
|
196
|
+
.el-input__icon.icon-arrow-down {
|
|
197
|
+
& > svg > path {
|
|
198
|
+
fill: none;
|
|
199
|
+
stroke: currentColor;
|
|
200
|
+
stroke-width: 84;
|
|
201
|
+
stroke-linecap: round;
|
|
202
|
+
transition: (d $ele-transition, fill $ele-transition);
|
|
203
|
+
#{'d'}: path('M216 362L512 662L808 362');
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&.is-reverse > svg > path {
|
|
207
|
+
#{'d'}: path('M216 662L512 362L808 662');
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.el-select .el-input .el-input__wrapper .el-select__caret.is-reverse,
|
|
212
|
+
.el-cascader .el-input .el-input__icon.icon-arrow-down.is-reverse {
|
|
213
|
+
transform: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* 下拉清空图标修改 */
|
|
217
|
+
.el-select__caret {
|
|
218
|
+
& > svg > path[d^='m466'] {
|
|
219
|
+
stroke: none;
|
|
220
|
+
fill: eleVar('input', 'clear-color');
|
|
221
|
+
#{'d'}: path(
|
|
222
|
+
'M514 972C768 972 975 766 975 512 975 257 768 51 514 51 259 51 53 257 53 512 53 766 259 972 514 972'
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
& > svg > path + path {
|
|
227
|
+
stroke: none;
|
|
228
|
+
fill: elVar('bg-color', 'overlay');
|
|
229
|
+
#{'d'}: path(
|
|
230
|
+
'M305 247 507 449 709 247 766 304 564 506 766 708 708 765 506 563 304 765 247 708 449 506 247 304 305 247'
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&:hover > svg > path[d^='m466'] {
|
|
235
|
+
fill: eleVar('input', 'clear-hover-color');
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* 组合 */
|
|
240
|
+
.el-input {
|
|
241
|
+
&.el-input-group--prepend > .el-input__wrapper {
|
|
242
|
+
border-top-left-radius: 0;
|
|
243
|
+
border-bottom-left-radius: 0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&.el-input-group--append > .el-input__wrapper {
|
|
247
|
+
border-top-right-radius: 0;
|
|
248
|
+
border-bottom-right-radius: 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.el-input-group__prepend,
|
|
252
|
+
.el-input-group__append {
|
|
253
|
+
flex-shrink: 0;
|
|
254
|
+
color: eleVar('input', 'extra-color');
|
|
255
|
+
background: eleVar('input', 'extra-bg');
|
|
256
|
+
padding: eleVar('input', 'extra-padding');
|
|
257
|
+
line-height: eleVar('input', 'extra-line-height');
|
|
258
|
+
border-radius: eleVar('input', 'radius');
|
|
259
|
+
border: eleVar('input', 'border');
|
|
260
|
+
box-sizing: border-box;
|
|
261
|
+
box-shadow: none;
|
|
262
|
+
|
|
263
|
+
& > .el-button,
|
|
264
|
+
& > .el-select {
|
|
265
|
+
margin: eleVar('input', 'extra-preset-margin');
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.el-input-group__prepend {
|
|
270
|
+
border-right: none;
|
|
271
|
+
border-top-right-radius: 0;
|
|
272
|
+
border-bottom-right-radius: 0;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.el-input-group__append {
|
|
276
|
+
border-left: none;
|
|
277
|
+
border-top-left-radius: 0;
|
|
278
|
+
border-bottom-left-radius: 0;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.el-input.el-input-group.el-input-group--prepend > .el-input-group__prepend,
|
|
283
|
+
.el-input.el-input-group.el-input-group--append > .el-input-group__append {
|
|
284
|
+
& > .el-select > .select-trigger > .el-input > .el-input__wrapper {
|
|
285
|
+
background: none;
|
|
286
|
+
box-shadow: none !important;
|
|
287
|
+
border-color: transparent;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* 禁用 */
|
|
292
|
+
body .el-input.is-disabled .el-input__wrapper,
|
|
293
|
+
body .el-textarea.is-disabled .el-textarea__inner,
|
|
294
|
+
body .el-select.el-select--disabled .el-input.is-disabled .el-input__wrapper,
|
|
295
|
+
.el-range-editor.is-disabled.el-input__wrapper {
|
|
296
|
+
cursor: not-allowed;
|
|
297
|
+
border: eleVar('input', 'disabled-border');
|
|
298
|
+
background: eleVar('input', 'disabled-bg');
|
|
299
|
+
box-shadow: none;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.el-input.is-disabled .el-input__wrapper .el-input__inner,
|
|
303
|
+
body .el-textarea.is-disabled .el-textarea__inner,
|
|
304
|
+
.el-range-editor.is-disabled.el-input__wrapper input {
|
|
305
|
+
color: eleVar('input', 'disabled-color');
|
|
306
|
+
-webkit-text-fill-color: eleVar('input', 'disabled-color');
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* 小尺寸 */
|
|
310
|
+
.el-input.el-input--small .el-input__wrapper {
|
|
311
|
+
padding: eleVar('input-sm', 'padding');
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* 大尺寸 */
|
|
315
|
+
.el-input.el-input--large .el-input__wrapper {
|
|
316
|
+
padding: eleVar('input-lg', 'padding');
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* Textarea */
|
|
320
|
+
body .el-textarea .el-input__count {
|
|
321
|
+
color: eleVar('input', 'count-color');
|
|
322
|
+
font-size: eleVar('input', 'count-size');
|
|
323
|
+
background: eleVar('textarea', 'count-bg');
|
|
324
|
+
padding: eleVar('textarea', 'count-padding');
|
|
325
|
+
bottom: eleVar('textarea', 'count-bottom');
|
|
326
|
+
right: eleVar('textarea', 'count-right');
|
|
327
|
+
box-sizing: border-box;
|
|
328
|
+
line-height: normal;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.el-textarea.el-input--small .el-textarea__inner {
|
|
332
|
+
padding: eleVar('textarea-sm', 'padding');
|
|
333
|
+
min-height: elVar('component-size', 'small') !important;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.el-textarea.el-input--large .el-textarea__inner {
|
|
337
|
+
padding: eleVar('textarea-lg', 'padding');
|
|
338
|
+
min-height: elVar('component-size', 'large') !important;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* Select */
|
|
342
|
+
.el-select .el-input .el-input__wrapper.is-focus,
|
|
343
|
+
.el-select .el-input.el-input--suffix.is-focus .el-input__wrapper {
|
|
344
|
+
border: eleVar('input', 'focus-border');
|
|
345
|
+
background: eleVar('input', 'focus-bg');
|
|
346
|
+
box-shadow: eleVar('input', 'focus-shadow') !important;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* Cascader */
|
|
350
|
+
.el-cascader .el-input .el-input__wrapper .el-input__icon {
|
|
351
|
+
height: 1em;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* DatePicker */
|
|
355
|
+
.el-range-editor.is-disabled.el-input__wrapper input {
|
|
356
|
+
background: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* InputNumber */
|
|
360
|
+
body .el-input-number.is-disabled .el-input-number__increase,
|
|
361
|
+
body .el-input-number.is-disabled .el-input-number__decrease {
|
|
362
|
+
color: elVar('disabled', 'text-color');
|
|
363
|
+
border-color: elVar('disabled', 'border-color');
|
|
364
|
+
|
|
365
|
+
&:hover {
|
|
366
|
+
color: elVar('disabled', 'text-color');
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.el-input-number__increase,
|
|
371
|
+
.el-input-number__decrease {
|
|
372
|
+
transition: color $ele-transition;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.el-input-number .el-input .el-input__wrapper {
|
|
376
|
+
padding-right: calc(32px + #{eleVar('input', 'icon-space')});
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.el-input-number--small .el-input .el-input__wrapper {
|
|
380
|
+
padding-right: calc(24px + #{eleVar('input', 'icon-space')});
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.el-input-number--large .el-input .el-input__wrapper {
|
|
384
|
+
padding-right: calc(40px + #{eleVar('input', 'icon-space')});
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.el-input-number:not(.is-controls-right) .el-input__wrapper {
|
|
388
|
+
padding-left: calc(32px + #{eleVar('input', 'icon-space')});
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.el-input-number--small:not(.is-controls-right) .el-input__wrapper {
|
|
392
|
+
padding-left: calc(24px + #{eleVar('input', 'icon-space')});
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.el-input-number--large:not(.is-controls-right) .el-input__wrapper {
|
|
396
|
+
padding-left: calc(40px + #{eleVar('input', 'icon-space')});
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/* 表单验证 */
|
|
400
|
+
.el-form-item.is-error {
|
|
401
|
+
.el-input .el-input__wrapper,
|
|
402
|
+
.el-textarea .el-textarea__inner,
|
|
403
|
+
.el-select .el-input .el-input__wrapper,
|
|
404
|
+
.el-cascader .el-input .el-input__wrapper,
|
|
405
|
+
.el-range-editor.el-input__wrapper,
|
|
406
|
+
.el-input-number .el-input:not(.is-disabled) .el-input__wrapper {
|
|
407
|
+
border: eleVar('input-error', 'border');
|
|
408
|
+
background: eleVar('input-error', 'bg');
|
|
409
|
+
box-shadow: none;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.el-input .el-input__wrapper:hover,
|
|
413
|
+
.el-textarea .el-textarea__inner:hover,
|
|
414
|
+
.el-select .el-input .el-input__wrapper:hover,
|
|
415
|
+
.el-cascader .el-input .el-input__wrapper:hover,
|
|
416
|
+
.el-range-editor.el-input__wrapper:hover,
|
|
417
|
+
.el-input-number:hover .el-input .el-input__wrapper {
|
|
418
|
+
border: eleVar('input-error', 'hover-border');
|
|
419
|
+
background: eleVar('input-error', 'hover-bg');
|
|
420
|
+
box-shadow: eleVar('input-error', 'hover-shadow');
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.el-input .el-input__wrapper.is-focus,
|
|
424
|
+
.el-select .el-input.el-input--suffix.is-focus .el-input__wrapper,
|
|
425
|
+
.el-cascader .el-input.el-input--suffix.is-focus .el-input__wrapper {
|
|
426
|
+
border: eleVar('input-error', 'focus-border');
|
|
427
|
+
background: eleVar('input-error', 'focus-bg');
|
|
428
|
+
box-shadow: eleVar('input-error', 'focus-shadow') !important;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.el-textarea .el-textarea__inner:focus,
|
|
432
|
+
.el-range-editor.el-input__wrapper.is-active,
|
|
433
|
+
.el-input-number .el-input .el-input__wrapper.is-focus {
|
|
434
|
+
border: eleVar('input-error', 'focus-border');
|
|
435
|
+
background: eleVar('input-error', 'focus-bg');
|
|
436
|
+
box-shadow: eleVar('input-error', 'focus-shadow');
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.el-input.is-disabled .el-input__wrapper,
|
|
440
|
+
.el-textarea.is-disabled .el-textarea__inner,
|
|
441
|
+
.el-select .el-input.is-disabled .el-input__wrapper,
|
|
442
|
+
.el-cascader .el-input.is-disabled .el-input__wrapper,
|
|
443
|
+
.el-range-editor.el-input__wrapper.is-disabled,
|
|
444
|
+
.el-input-number.is-disabled .el-input .el-input__wrapper {
|
|
445
|
+
border: eleVar('input-error', 'disabled-border');
|
|
446
|
+
background: eleVar('input-error', 'disabled-bg');
|
|
447
|
+
box-shadow: none;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.el-input__validateIcon {
|
|
451
|
+
background: eleVar('input-error', 'status-color');
|
|
452
|
+
}
|
|
453
|
+
}
|
|
@@ -82,27 +82,70 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/* 多选标签 */
|
|
86
|
+
.el-select-tags-wrapper .el-tag__content,
|
|
87
|
+
.el-select__collapse-tag .el-tag__content {
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.el-select .el-tag__content .el-select__tags-text {
|
|
93
|
+
line-height: 14px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.el-select .el-select-tags-wrapper.has-prefix {
|
|
97
|
+
margin: 0 !important;
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.el-select .el-select__tags {
|
|
102
|
+
box-sizing: border-box;
|
|
103
|
+
padding: 0 0 0 4px;
|
|
104
|
+
left: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
85
107
|
.el-select .el-select__tags .el-tag,
|
|
86
108
|
.el-select__collapse-tags .el-select__collapse-tag .el-tag {
|
|
87
109
|
flex-shrink: 0;
|
|
88
|
-
margin:
|
|
110
|
+
margin: 2px 4px 2px 0;
|
|
89
111
|
height: calc(elVar('component-size') - 4px - 4px);
|
|
90
112
|
border: none;
|
|
91
113
|
}
|
|
92
114
|
|
|
93
|
-
.el-select .el-select__tags {
|
|
94
|
-
|
|
95
|
-
transform: none;
|
|
115
|
+
.el-select .el-select__tags .el-select__input {
|
|
116
|
+
margin: 0 0 0 5.8px !important;
|
|
96
117
|
}
|
|
97
118
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
119
|
+
/* 小尺寸 */
|
|
120
|
+
.el-select--small .el-select__tags .el-tag--small,
|
|
121
|
+
.el-select__collapse-tags .el-select__collapse-tag .el-tag--small {
|
|
122
|
+
margin: 1px 4px 1px 0;
|
|
123
|
+
height: calc(elVar('component-size', 'small') - 4px - 2px);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.el-select--small .el-select__tags .el-select__input {
|
|
127
|
+
margin: 0 0 0 3.8px !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* 大尺寸 */
|
|
131
|
+
.el-select--large .el-select__tags {
|
|
132
|
+
padding: 1px 0 1px 6px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.el-select--large .el-select__tags .el-tag {
|
|
136
|
+
height: calc(elVar('component-size', 'large') - 8px - 4px);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.el-select--large .el-select__tags .el-select__input {
|
|
140
|
+
margin: 0 0 0 7.8px !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* 多选搜索框 */
|
|
144
|
+
.el-select-tags-wrapper.has-prefix + .el-select__input {
|
|
145
|
+
margin: 0 0 0 2px !important;
|
|
104
146
|
}
|
|
105
147
|
|
|
148
|
+
/* 标签溢出气泡 */
|
|
106
149
|
.el-popper > .el-select__collapse-tags {
|
|
107
150
|
margin: -5px -11px;
|
|
108
151
|
padding: 8px 10px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useWave(): void;
|