element-assits 0.0.1
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/README.md +273 -0
- package/lib/index.js +6248 -0
- package/lib/style.css +1 -0
- package/lib/style.scss +461 -0
- package/package.json +34 -0
package/lib/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ea-select{display:inline-block;position:relative}.ea-select .el-select{width:100%}.ea-select .async-loading.el-icon-loading{position:absolute;top:10px;right:28px;color:#999}.ea-select-popover .el-select-dropdown__item{display:flex}.ea-select-popover .el-select-dropdown__item .select-item-value{overflow:hidden;text-overflow:ellipsis}.ea-select-popover .el-select-dropdown__item .select-item-desc{overflow:hidden;text-overflow:ellipsis;color:#8492a6;margin-left:8px}.ea-form .el-form-item__content>.el-input-number,.ea-form .el-form-item__content>.el-input,.ea-form .el-form-item__content>.ea-select,.ea-form .el-form-item__content>.el-select{width:100%}.ea-form .el-form-item.hidden-label>.el-form-item__label{display:none}.ea-form .el-form-item.hidden-label>.el-form-item__content{width:100%}.ea-form.form-group-title{position:relative;height:32px;margin-bottom:22px}.ea-form.form-group-title>span{position:absolute;top:0;left:20%;padding:5px 25px;background-color:#fff;z-index:1;color:#909399}.ea-form.form-group-title:after{content:"";position:absolute;top:50%;left:0;width:100%;height:0;border-bottom:1px dashed #DCDFE6}.ea-select-container{display:flex;justify-content:flex-start;font-size:12px}.ea-select-container.medium{font-size:14px}.ea-select-container.medium .ea-select-panel .ea-select-panel__item{line-height:28px}.ea-select-container .ea-select-panel{padding:0;margin:0;list-style:none;flex-grow:1;min-width:120px}.ea-select-container .ea-select-panel+.ea-select-panel{border-left:1px solid #DDD}.ea-select-container .ea-select-panel__item{width:100%;line-height:24px;cursor:pointer;padding:0 12px;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;font-size:inherit}.ea-select-container .ea-select-panel__item:hover{background-color:#ebeef5}.ea-select-container .ea-select-panel__item.active{color:#409eff;font-weight:700}.ea-table .el-table th{background-color:#f2f6fc;color:#303133}.ea-table .el-table th .cell{min-height:30px;display:flex;justify-content:flex-start;align-items:center}.ea-table .el-table td .cell,.ea-table .el-table th .cell{line-height:1.2}.ea-table .el-table.is-dense td,.ea-table .el-table.is-dense th{height:32px;padding:2px 0}.ea-table .theader-th-cell .cell-icon-menu{position:absolute;top:50%;right:4px;transform:rotate(90deg) translate(-50%);color:#c0c4cc;cursor:pointer;padding:4px;border-radius:2px}.ea-table .theader-th-cell .cell-icon-menu:hover{color:#303133;background-color:#e4e7ed}.ea-table .ea-table__footer{display:flex;justify-content:space-between}.ea-table .ea-table__footer .ea-table__footer-right{margin-left:auto;padding-right:0}.ea-table .ea-table__footer>*{margin-top:12px}.ea-table .column-transition-active{opacity:.33}.ea-table .el-button>i{min-width:12px}.el-popover.ea-popover-no-padding{padding:8px 0;min-width:100px}.el-dialog.ea-modal.is-closing{margin:0!important}.el-dialog.ea-modal.is-fullscreen{border-radius:0;margin:0}.el-dialog.ea-modal .el-dialog__header{color:#555;font-size:18px}.el-dialog.ea-modal .el-dialog__header .el-dialog__title{color:inherit;font-size:inherit}.ea-button-tooltip+.ea-button-tooltip{margin-left:10px}td .ea-button-tooltip+.ea-button-tooltip{margin-left:4px}td .ea-button-tooltip+.ea-button-tooltip.text{margin-left:10px}td .el-button [class*=el-icon-]+span{margin-left:2px}.el-button.ea-button.mini-rect-btn{padding:7px;border:0}.el-button.ea-button.mini-rect-btn [class^=design-]{margin-right:0}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary{background-color:#409eff26;color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus{background-color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success{background-color:#67c23a26;color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus{background-color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info{background-color:#90939926;color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus{background-color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning{background-color:#e6a23c26;color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus{background-color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger{background-color:#f56c6c26;color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus{background-color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus i{color:#fff}.ea-split-container{display:flex}.ea-split-container.is-down{user-select:none}.ea-split-container .sc-left,.ea-split-container .sc-right{flex-grow:1;flex-shrink:1}.ea-split-container .sc-bamboo{flex-grow:0;flex-shrink:0;width:8px;border:1px solid #DCDEE2;border-top:none;border-bottom:none;background-color:#f8f8f9;cursor:col-resize;user-select:none;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0 16px}.ea-split-container .sc-bamboo .sc-texture{width:4px;height:1px;background:rgba(23,35,61,.25);margin-top:3px}.ea-tree .ea-tree-real .el-tree-node>.el-tree-node__content{border-radius:4px}.ea-tree .ea-tree-real .el-tree-node.is-current>.el-tree-node__content{color:#409eff;background-color:#409eff1a}.ea-list .loading-text{color:#909399;text-align:center;font-size:inherit}.ea-desc{font-size:14px}.ea-desc__title{font-size:16px;margin-bottom:12px}.ea-desc__list{display:flex;flex-wrap:wrap}.ea-desc .item{line-height:24px;margin-bottom:10px;flex:0 0 auto}.ea-desc .item .item-label{float:left;text-align:right;padding-right:8px;color:#909399}.ea-desc .item .item-value{word-break:break-all}.ea-desc .item .item-value .value-no-wrap{height:48px;overflow:hidden;position:relative}.ea-desc .item .item-value .value-no-wrap .click-see-more{position:absolute;right:0;bottom:0;height:24px;padding-left:30px;padding-right:4px;background-image:linear-gradient(to right,transparent 0%,#fff 20%,#fff 100%);cursor:pointer;color:#409eff;user-select:none}.ea-number .el-input__inner{text-align:left}.file-upload-dialog .el-upload,.file-upload-dialog .el-upload .el-upload-dragger{width:100%}.file-upload-dialog .el-upload-list .el-upload-list__item{border:1px dashed #aaa}.file-upload-dialog .el-upload-list .el-upload-list__item .el-icon-close{display:inline-block}.file-upload-dialog .el-list-enter,.file-upload-dialog .el-list-enter-active,.file-upload-dialog .el-list-enter-to,.file-upload-dialog .el-list-leave,.file-upload-dialog .el-list-leave-active,.file-upload-dialog .el-list-leave-to{-webkit-transition:none!important;transition:none!important}.ea-table-modal{overflow:visible;right:unset;right:initial;bottom:unset;bottom:initial;width:100%;height:0}.ea-table-modal .el-dialog{background:#fdfdfd;box-shadow:0 0 16px #00000026}.ea-table-modal .el-dialog .el-dialog__header{padding:12px 20px;background-color:#f2f6fc;border-bottom:1px solid #EBEEF5}.ea-table-modal .el-dialog .el-dialog__headerbtn{top:12px}.ea-table-modal .el-dialog .el-dialog__close{font-weight:700;color:#909399}.ea-table-modal .el-dialog .el-dialog__body{padding:10px 0;height:calc(100% - 70px);min-height:40px;max-height:800px;overflow:auto}.ea-table-modal .el-dialog .el-dialog__body .scm-title{font-size:12px;font-weight:700;color:#303133}.ea-table-modal .el-dialog .el-dialog__body .scm-title.medium{font-size:14px}.ea-table-modal .el-dialog .el-dialog__body .el-tree{background:transparent;font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree .el-tree-node__label{font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium,.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium .el-tree-node__label{font-size:14px}
|
package/lib/style.scss
ADDED
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
$--color-primary: #409EFF !default;
|
|
2
|
+
$--color-success: #67C23A !default;
|
|
3
|
+
$--color-warning: #E6A23C !default;
|
|
4
|
+
$--color-danger: #F56C6C !default;
|
|
5
|
+
$--color-info: #909399 !default;
|
|
6
|
+
$--color-primary-text: #303133 !default;
|
|
7
|
+
$--color-regular-text: #606266 !default;
|
|
8
|
+
$--color-secondary-text: #909399 !default;
|
|
9
|
+
$--color-placeholder-text: #C0C4CC !default;
|
|
10
|
+
$--color-border-base: #DCDFE6 !default;
|
|
11
|
+
$--color-border-light: #E4E7ED !default;
|
|
12
|
+
$--color-border-lighter: #EBEEF5 !default;
|
|
13
|
+
$--color-border-extralight: #F2F6FC !default;
|
|
14
|
+
.ea-select {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
position: relative;
|
|
17
|
+
.el-select {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
.async-loading.el-icon-loading {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 10px;
|
|
23
|
+
right: 28px;
|
|
24
|
+
color: #999;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.ea-select-popover {
|
|
28
|
+
.el-select-dropdown__item {
|
|
29
|
+
display: flex;
|
|
30
|
+
.select-item-value {
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
text-overflow: ellipsis;
|
|
33
|
+
}
|
|
34
|
+
.select-item-desc {
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
color: #8492a6;
|
|
38
|
+
margin-left: 8px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// table
|
|
44
|
+
.ea-table {
|
|
45
|
+
// 表格头部样式美化
|
|
46
|
+
.el-table {
|
|
47
|
+
th {
|
|
48
|
+
background-color: $--color-border-extralight;
|
|
49
|
+
color: $--color-primary-text;
|
|
50
|
+
.cell {
|
|
51
|
+
min-height: 30px;
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: flex-start;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
td, th {
|
|
58
|
+
.cell {
|
|
59
|
+
line-height: 1.2;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
&.is-dense {
|
|
63
|
+
td, th {
|
|
64
|
+
height: 32px;
|
|
65
|
+
padding: 2px 0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
// 列的更多菜单项
|
|
70
|
+
.theader-th-cell {
|
|
71
|
+
.cell-icon-menu {
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 50%;
|
|
74
|
+
right: 4px;
|
|
75
|
+
transform: rotate(90deg) translateX(-50%);
|
|
76
|
+
color: $--color-placeholder-text;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
padding: 4px;
|
|
79
|
+
border-radius: 2px;
|
|
80
|
+
&:hover {
|
|
81
|
+
color: $--color-primary-text;
|
|
82
|
+
background-color: $--color-border-light;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// 表格底部
|
|
87
|
+
.ea-table__footer {
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
.ea-table__footer-right {
|
|
91
|
+
margin-left: auto;
|
|
92
|
+
padding-right: 0;
|
|
93
|
+
}
|
|
94
|
+
> * {
|
|
95
|
+
margin-top: 12px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.column-transition-active {
|
|
100
|
+
opacity: 0.33;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.el-button > i {
|
|
104
|
+
min-width: 12px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// table - popover
|
|
109
|
+
.el-popover.ea-popover-no-padding {
|
|
110
|
+
padding: 8px 0;
|
|
111
|
+
min-width: 100px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ea-split-container {
|
|
115
|
+
display: flex;
|
|
116
|
+
&.is-down {
|
|
117
|
+
user-select: none;
|
|
118
|
+
}
|
|
119
|
+
.sc-left {
|
|
120
|
+
flex-grow: 1;
|
|
121
|
+
flex-shrink: 1;
|
|
122
|
+
}
|
|
123
|
+
.sc-right {
|
|
124
|
+
flex-grow: 1;
|
|
125
|
+
flex-shrink: 1;
|
|
126
|
+
}
|
|
127
|
+
.sc-bamboo {
|
|
128
|
+
flex-grow: 0;
|
|
129
|
+
flex-shrink: 0;
|
|
130
|
+
width: 8px;
|
|
131
|
+
border: 1px solid #DCDEE2;
|
|
132
|
+
border-top: none;
|
|
133
|
+
border-bottom: none;
|
|
134
|
+
background-color: #F8F8F9;
|
|
135
|
+
cursor: col-resize;
|
|
136
|
+
user-select: none;
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
align-items: center;
|
|
141
|
+
margin: 0 16px;
|
|
142
|
+
.sc-texture {
|
|
143
|
+
width: 4px;
|
|
144
|
+
height: 1px;
|
|
145
|
+
background: rgba(23, 35, 61, .25);
|
|
146
|
+
margin-top: 3px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.el-dialog.ea-modal {
|
|
152
|
+
&.is-closing {
|
|
153
|
+
margin: 0 !important;
|
|
154
|
+
}
|
|
155
|
+
&.is-fullscreen {
|
|
156
|
+
border-radius: 0;
|
|
157
|
+
margin: 0;
|
|
158
|
+
}
|
|
159
|
+
.el-dialog__header {
|
|
160
|
+
color: #555;
|
|
161
|
+
font-size: 18px;
|
|
162
|
+
.el-dialog__title {
|
|
163
|
+
color: inherit;
|
|
164
|
+
font-size: inherit;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ea-button-tooltip + .ea-button-tooltip {
|
|
170
|
+
margin-left: 10px;
|
|
171
|
+
}
|
|
172
|
+
td {
|
|
173
|
+
.ea-button-tooltip + .ea-button-tooltip {
|
|
174
|
+
margin-left: 4px;
|
|
175
|
+
&.text {
|
|
176
|
+
margin-left: 10px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.el-button [class*="el-icon-"] + span {
|
|
180
|
+
margin-left: 2px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.el-button.ea-button.mini-rect-btn {
|
|
185
|
+
padding: 7px;
|
|
186
|
+
border: 0;
|
|
187
|
+
& [class^="design-"] {
|
|
188
|
+
margin-right: 0;
|
|
189
|
+
}
|
|
190
|
+
&:not(.is-disabled) {
|
|
191
|
+
&.primary {
|
|
192
|
+
background-color: rgba($--color-primary, .15);
|
|
193
|
+
color: $--color-primary;
|
|
194
|
+
&:hover,&:focus {
|
|
195
|
+
background-color: $--color-primary;
|
|
196
|
+
i { color: #fff }
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
&.success {
|
|
200
|
+
background-color: rgba($--color-success, .15);
|
|
201
|
+
color: $--color-success;
|
|
202
|
+
&:hover,&:focus {
|
|
203
|
+
background-color: $--color-success;
|
|
204
|
+
i { color: #fff }
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
&.info {
|
|
208
|
+
background-color: rgba($--color-info, .15);
|
|
209
|
+
color: $--color-info;
|
|
210
|
+
&:hover,&:focus {
|
|
211
|
+
background-color: $--color-info;
|
|
212
|
+
i { color: #fff }
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
&.warning {
|
|
216
|
+
background-color: rgba($--color-warning, .15);
|
|
217
|
+
color: $--color-warning;
|
|
218
|
+
&:hover,&:focus {
|
|
219
|
+
background-color: $--color-warning;
|
|
220
|
+
i { color: #fff }
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
&.danger {
|
|
224
|
+
background-color: rgba($--color-danger, .15);
|
|
225
|
+
color: $--color-danger;
|
|
226
|
+
&:hover,&:focus {
|
|
227
|
+
background-color: $--color-danger;
|
|
228
|
+
i { color: #fff }
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.ea-number .el-input__inner {
|
|
235
|
+
text-align: left;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ea-tree {
|
|
239
|
+
.ea-tree-real {
|
|
240
|
+
.el-tree-node > .el-tree-node__content{
|
|
241
|
+
border-radius: 4px;
|
|
242
|
+
}
|
|
243
|
+
.el-tree-node.is-current > .el-tree-node__content {
|
|
244
|
+
color: $--color-primary;
|
|
245
|
+
background-color: rgba($--color-primary, 0.1);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.ea-desc {
|
|
251
|
+
font-size: 14px;
|
|
252
|
+
&__title {
|
|
253
|
+
font-size: 16px;
|
|
254
|
+
margin-bottom: 12px;
|
|
255
|
+
}
|
|
256
|
+
&__list {
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-wrap: wrap;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
.ea-desc .item {
|
|
262
|
+
line-height: 24px;
|
|
263
|
+
margin-bottom: 10px;
|
|
264
|
+
flex: 0 0 auto;
|
|
265
|
+
.item-label {
|
|
266
|
+
float: left;
|
|
267
|
+
text-align: right;
|
|
268
|
+
padding-right: 8px;
|
|
269
|
+
color: #909399;
|
|
270
|
+
}
|
|
271
|
+
.item-value {
|
|
272
|
+
word-break: break-all;
|
|
273
|
+
.value-no-wrap {
|
|
274
|
+
height: 48px;
|
|
275
|
+
overflow: hidden;
|
|
276
|
+
position: relative;
|
|
277
|
+
.click-see-more {
|
|
278
|
+
position: absolute;
|
|
279
|
+
right: 0;
|
|
280
|
+
bottom: 0;
|
|
281
|
+
height: 24px;
|
|
282
|
+
padding-left: 30px;
|
|
283
|
+
padding-right: 4px;
|
|
284
|
+
background-image: linear-gradient(to right, transparent 0%, #fff 20%, #fff 100%);
|
|
285
|
+
cursor: pointer;
|
|
286
|
+
color: $--color-primary;
|
|
287
|
+
user-select: none;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ea-list {
|
|
294
|
+
.loading-text {
|
|
295
|
+
color: $--color-secondary-text;
|
|
296
|
+
text-align: center;
|
|
297
|
+
font-size: inherit;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.file-upload-dialog {
|
|
302
|
+
// 拖拽区域铺满
|
|
303
|
+
.el-upload,
|
|
304
|
+
.el-upload .el-upload-dragger {
|
|
305
|
+
width: 100%;
|
|
306
|
+
}
|
|
307
|
+
// 文件列表项边框
|
|
308
|
+
.el-upload-list {
|
|
309
|
+
.el-upload-list__item {
|
|
310
|
+
border: 1px dashed #aaa;
|
|
311
|
+
.el-icon-close {
|
|
312
|
+
display: inline-block;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
// 清除文件列表变动过渡动画
|
|
317
|
+
.el-list-enter,
|
|
318
|
+
.el-list-enter-active,
|
|
319
|
+
.el-list-enter-to,
|
|
320
|
+
.el-list-leave,
|
|
321
|
+
.el-list-leave-active,
|
|
322
|
+
.el-list-leave-to {
|
|
323
|
+
-webkit-transition: none !important;
|
|
324
|
+
transition: none !important;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.ea-table-modal {
|
|
329
|
+
overflow: visible;
|
|
330
|
+
right: unset;
|
|
331
|
+
right: initial;
|
|
332
|
+
bottom: unset;
|
|
333
|
+
bottom: initial;
|
|
334
|
+
width: 100%;
|
|
335
|
+
height: 0;
|
|
336
|
+
.el-dialog {
|
|
337
|
+
background: #fdfdfd;
|
|
338
|
+
box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.15);
|
|
339
|
+
.el-dialog__header {
|
|
340
|
+
padding: 12px 20px;
|
|
341
|
+
background-color: $--color-border-extralight;
|
|
342
|
+
border-bottom: 1px solid $--color-border-lighter;
|
|
343
|
+
}
|
|
344
|
+
.el-dialog__headerbtn {
|
|
345
|
+
top: 12px;
|
|
346
|
+
}
|
|
347
|
+
.el-dialog__close {
|
|
348
|
+
font-weight: bold;
|
|
349
|
+
color: $--color-secondary-text;
|
|
350
|
+
}
|
|
351
|
+
.el-dialog__body {
|
|
352
|
+
padding: 10px 0;
|
|
353
|
+
height: calc(100% - 70px);
|
|
354
|
+
min-height: 40px;
|
|
355
|
+
max-height: 800px;
|
|
356
|
+
overflow: auto;
|
|
357
|
+
.scm-title {
|
|
358
|
+
font-size: 12px;
|
|
359
|
+
font-weight: bold;
|
|
360
|
+
color: $--color-primary-text;
|
|
361
|
+
&.medium {
|
|
362
|
+
font-size: 14px;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
.el-tree {
|
|
366
|
+
background: transparent;
|
|
367
|
+
font-size: 12px;
|
|
368
|
+
.el-tree-node__label {
|
|
369
|
+
font-size: 12px;
|
|
370
|
+
}
|
|
371
|
+
&.medium {
|
|
372
|
+
font-size: 14px;
|
|
373
|
+
.el-tree-node__label {
|
|
374
|
+
font-size: 14px;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.ea-form.form-group-title {
|
|
383
|
+
position: relative;
|
|
384
|
+
height: 32px;
|
|
385
|
+
margin-bottom: 22px;
|
|
386
|
+
> span {
|
|
387
|
+
position: absolute;
|
|
388
|
+
top: 0;
|
|
389
|
+
left: 20%;
|
|
390
|
+
padding: 5px 25px;
|
|
391
|
+
background-color: #fff;
|
|
392
|
+
z-index: 1;
|
|
393
|
+
color: $--color-secondary-text;
|
|
394
|
+
}
|
|
395
|
+
&::after {
|
|
396
|
+
content: '';
|
|
397
|
+
position: absolute;
|
|
398
|
+
top: 50%;
|
|
399
|
+
left: 0;
|
|
400
|
+
width: 100%;
|
|
401
|
+
height: 0;
|
|
402
|
+
border-bottom: 1px dashed $--color-border-base;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.ea-select-container {
|
|
407
|
+
display: flex;
|
|
408
|
+
justify-content: flex-start;
|
|
409
|
+
font-size: 12px;
|
|
410
|
+
&.medium {
|
|
411
|
+
font-size: 14px;
|
|
412
|
+
.ea-select-panel .ea-select-panel__item {
|
|
413
|
+
line-height: 28px;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
.ea-select-panel {
|
|
417
|
+
padding: 0;
|
|
418
|
+
margin: 0;
|
|
419
|
+
list-style: none;
|
|
420
|
+
flex-grow: 1;
|
|
421
|
+
min-width: 120px;
|
|
422
|
+
& + .ea-select-panel {
|
|
423
|
+
border-left: 1px solid #DDD;
|
|
424
|
+
}
|
|
425
|
+
&__item {
|
|
426
|
+
width: 100%;
|
|
427
|
+
line-height: 24px;
|
|
428
|
+
cursor: pointer;
|
|
429
|
+
padding: 0 12px;
|
|
430
|
+
box-sizing: border-box;
|
|
431
|
+
display: flex;
|
|
432
|
+
justify-content: space-between;
|
|
433
|
+
align-items: center;
|
|
434
|
+
font-size: inherit;
|
|
435
|
+
&:hover {
|
|
436
|
+
background-color: $--color-border-lighter;
|
|
437
|
+
}
|
|
438
|
+
&.active {
|
|
439
|
+
color: $--color-primary;
|
|
440
|
+
font-weight: bold;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.ea-form .el-form-item__content {
|
|
447
|
+
& > .el-input-number,
|
|
448
|
+
& > .el-input,
|
|
449
|
+
& > .ea-select,
|
|
450
|
+
& > .el-select {
|
|
451
|
+
width: 100%;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
.ea-form .el-form-item.hidden-label {
|
|
455
|
+
> .el-form-item__label {
|
|
456
|
+
display: none;
|
|
457
|
+
}
|
|
458
|
+
> .el-form-item__content {
|
|
459
|
+
width: 100%;
|
|
460
|
+
}
|
|
461
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "element-assits",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "element-ui 的扩展组件库",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"private": false,
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
|
+
"dev": "vite",
|
|
11
|
+
"build": "vite build"
|
|
12
|
+
},
|
|
13
|
+
"author": "tk",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"element-ui": "^2.15.14",
|
|
17
|
+
"lodash": "^4.17.21",
|
|
18
|
+
"vue": "2.7",
|
|
19
|
+
"vue-router": "^3.6.5"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@vitejs/plugin-vue2": "^1.1.2",
|
|
23
|
+
"eslint": "^8.57.0",
|
|
24
|
+
"eslint-plugin-vue": "^9.22.0",
|
|
25
|
+
"rollup-plugin-bundle-scss": "^0.1.3",
|
|
26
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
27
|
+
"rollup-plugin-vue": "^5.1.9",
|
|
28
|
+
"sass": "^1.69.5",
|
|
29
|
+
"vite": "^3.2.8",
|
|
30
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
31
|
+
"vite-plugin-merge-scss": "^1.9.9",
|
|
32
|
+
"vue-template-compiler": "^2.7.8"
|
|
33
|
+
}
|
|
34
|
+
}
|