element-assits 0.0.19 → 0.0.20

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/index.js CHANGED
@@ -1891,7 +1891,7 @@ const Ol = {
1891
1891
  column: [],
1892
1892
  model: this.searchForm,
1893
1893
  ...Se(this.innerForm, "show")
1894
- }) : (t = Boolean(this.innerForm), e = { model: {} }), { show: t, attrs: e };
1894
+ }) : (t = Boolean(this.innerForm), e = { model: this.searchForm }), { show: t, attrs: e };
1895
1895
  },
1896
1896
  theOperation() {
1897
1897
  let t, e = { width: 180 }, n;
package/lib/style.scss CHANGED
@@ -11,123 +11,6 @@ $--color-border-base: #DCDFE6 !default;
11
11
  $--color-border-light: #E4E7ED !default;
12
12
  $--color-border-lighter: #EBEEF5 !default;
13
13
  $--color-border-extralight: #F2F6FC !default;
14
- // table
15
- .ea-table {
16
- // 表格头部样式美化
17
- .el-table {
18
- th {
19
- background-color: $--color-border-extralight;
20
- color: $--color-primary-text;
21
- .cell {
22
- min-height: 30px;
23
- display: flex;
24
- justify-content: flex-start;
25
- align-items: center;
26
- }
27
- &.is-center .cell { justify-content: center }
28
- &.is-right .cell { justify-content: flex-end }
29
- }
30
- td, th {
31
- .cell {
32
- line-height: 1.2;
33
- }
34
- }
35
- &.el-table--small {
36
- td, th {
37
- height: 48px;
38
- }
39
- }
40
- &.is-dense {
41
- td, th {
42
- height: 32px;
43
- padding: 2px 0;
44
- .el-button {
45
- padding-top: 0;
46
- padding-bottom: 0;
47
- }
48
- }
49
- }
50
- }
51
- // 列的更多菜单项
52
- .theader-th-cell {
53
- .cell-icon-menu {
54
- position: absolute;
55
- top: 50%;
56
- right: 4px;
57
- transform: rotate(90deg) translateX(-50%);
58
- color: $--color-placeholder-text;
59
- cursor: pointer;
60
- padding: 4px;
61
- border-radius: 2px;
62
- &:hover {
63
- color: $--color-primary-text;
64
- background-color: $--color-border-light;
65
- }
66
- }
67
- }
68
- // 表格底部
69
- .ea-table__footer {
70
- display: flex;
71
- justify-content: space-between;
72
- .ea-table__footer-right {
73
- margin-left: auto;
74
- padding-right: 0;
75
- }
76
- > * {
77
- margin-top: 12px;
78
- }
79
- }
80
-
81
- .column-transition-active {
82
- opacity: 0.33;
83
- }
84
-
85
- .el-button > i {
86
- min-width: 12px;
87
- }
88
-
89
- .more-btn > i{
90
- transform: rotate(-90deg);
91
- }
92
- }
93
-
94
- // table - popover
95
- .el-popover.ea-popover-no-padding {
96
- padding: 8px 0;
97
- min-width: 100px;
98
- &.dense {
99
- margin-top: 0px;
100
- margin-bottom: 0px;
101
- min-width: 70px;
102
- }
103
- }
104
-
105
- .more-btn-panel {
106
- &__item {
107
- &:hover {
108
- background-color: $--color-border-lighter;
109
- }
110
- .el-button {
111
- padding: 8px 12px;
112
- width: 100%;
113
- text-align: left;
114
- }
115
- }
116
- }
117
-
118
- .ea-zoom-in-top-enter-active,
119
- .ea-zoom-in-top-leave-active {
120
- opacity: 1;
121
- transform: scaleY(1);
122
- transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
123
- transform-origin: center top;
124
- }
125
- .ea-zoom-in-top-enter,
126
- .ea-zoom-in-top-leave-active {
127
- opacity: 0;
128
- transform: scaleY(0);
129
- }
130
-
131
14
  .ea-select {
132
15
  display: inline-block;
133
16
  position: relative;
@@ -175,43 +58,6 @@ $--color-border-extralight: #F2F6FC !default;
175
58
  }
176
59
  }
177
60
 
178
- .ea-split-container {
179
- display: flex;
180
- &.is-down {
181
- user-select: none;
182
- }
183
- .sc-left {
184
- flex-grow: 1;
185
- flex-shrink: 1;
186
- }
187
- .sc-right {
188
- flex-grow: 1;
189
- flex-shrink: 1;
190
- }
191
- .sc-bamboo {
192
- flex-grow: 0;
193
- flex-shrink: 0;
194
- width: 8px;
195
- border: 1px solid #DCDEE2;
196
- border-top: none;
197
- border-bottom: none;
198
- background-color: #F8F8F9;
199
- cursor: col-resize;
200
- user-select: none;
201
- display: flex;
202
- flex-direction: column;
203
- justify-content: center;
204
- align-items: center;
205
- margin: 0 16px;
206
- .sc-texture {
207
- width: 4px;
208
- height: 1px;
209
- background: rgba(23, 35, 61, .25);
210
- margin-top: 3px;
211
- }
212
- }
213
- }
214
-
215
61
  .ea-button-tooltip + .ea-button-tooltip {
216
62
  margin-left: 10px;
217
63
  }
@@ -289,6 +135,43 @@ td {
289
135
  }
290
136
  }
291
137
 
138
+ .ea-split-container {
139
+ display: flex;
140
+ &.is-down {
141
+ user-select: none;
142
+ }
143
+ .sc-left {
144
+ flex-grow: 1;
145
+ flex-shrink: 1;
146
+ }
147
+ .sc-right {
148
+ flex-grow: 1;
149
+ flex-shrink: 1;
150
+ }
151
+ .sc-bamboo {
152
+ flex-grow: 0;
153
+ flex-shrink: 0;
154
+ width: 8px;
155
+ border: 1px solid #DCDEE2;
156
+ border-top: none;
157
+ border-bottom: none;
158
+ background-color: #F8F8F9;
159
+ cursor: col-resize;
160
+ user-select: none;
161
+ display: flex;
162
+ flex-direction: column;
163
+ justify-content: center;
164
+ align-items: center;
165
+ margin: 0 16px;
166
+ .sc-texture {
167
+ width: 4px;
168
+ height: 1px;
169
+ background: rgba(23, 35, 61, .25);
170
+ margin-top: 3px;
171
+ }
172
+ }
173
+ }
174
+
292
175
  .ea-number .el-input__inner {
293
176
  text-align: left;
294
177
  }
@@ -371,6 +254,147 @@ td {
371
254
  }
372
255
  }
373
256
 
257
+ // table
258
+ .ea-table {
259
+ // 表格头部样式美化
260
+ .el-table {
261
+ th {
262
+ background-color: $--color-border-extralight;
263
+ color: $--color-primary-text;
264
+ .cell {
265
+ min-height: 30px;
266
+ display: flex;
267
+ justify-content: flex-start;
268
+ align-items: center;
269
+ }
270
+ &.is-center .cell { justify-content: center }
271
+ &.is-right .cell { justify-content: flex-end }
272
+ }
273
+ td, th {
274
+ .cell {
275
+ line-height: 1.2;
276
+ }
277
+ }
278
+ &.el-table--small {
279
+ td, th {
280
+ height: 48px;
281
+ }
282
+ }
283
+ &.is-dense {
284
+ td, th {
285
+ height: 32px;
286
+ padding: 2px 0;
287
+ .el-button {
288
+ padding-top: 0;
289
+ padding-bottom: 0;
290
+ }
291
+ }
292
+ }
293
+ }
294
+ // 列的更多菜单项
295
+ .theader-th-cell {
296
+ .cell-icon-menu {
297
+ position: absolute;
298
+ top: 50%;
299
+ right: 4px;
300
+ transform: rotate(90deg) translateX(-50%);
301
+ color: $--color-placeholder-text;
302
+ cursor: pointer;
303
+ padding: 4px;
304
+ border-radius: 2px;
305
+ &:hover {
306
+ color: $--color-primary-text;
307
+ background-color: $--color-border-light;
308
+ }
309
+ }
310
+ }
311
+ // 表格底部
312
+ .ea-table__footer {
313
+ display: flex;
314
+ justify-content: space-between;
315
+ .ea-table__footer-right {
316
+ margin-left: auto;
317
+ padding-right: 0;
318
+ }
319
+ > * {
320
+ margin-top: 12px;
321
+ }
322
+ }
323
+
324
+ .column-transition-active {
325
+ opacity: 0.33;
326
+ }
327
+
328
+ .el-button > i {
329
+ min-width: 12px;
330
+ }
331
+
332
+ .more-btn > i{
333
+ transform: rotate(-90deg);
334
+ }
335
+ }
336
+
337
+ // table - popover
338
+ .el-popover.ea-popover-no-padding {
339
+ padding: 8px 0;
340
+ min-width: 100px;
341
+ &.dense {
342
+ margin-top: 0px;
343
+ margin-bottom: 0px;
344
+ min-width: 70px;
345
+ }
346
+ }
347
+
348
+ .more-btn-panel {
349
+ &__item {
350
+ &:hover {
351
+ background-color: $--color-border-lighter;
352
+ }
353
+ .el-button {
354
+ padding: 8px 12px;
355
+ width: 100%;
356
+ text-align: left;
357
+ }
358
+ }
359
+ }
360
+
361
+ .ea-zoom-in-top-enter-active,
362
+ .ea-zoom-in-top-leave-active {
363
+ opacity: 1;
364
+ transform: scaleY(1);
365
+ transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
366
+ transform-origin: center top;
367
+ }
368
+ .ea-zoom-in-top-enter,
369
+ .ea-zoom-in-top-leave-active {
370
+ opacity: 0;
371
+ transform: scaleY(0);
372
+ }
373
+
374
+ .ea-form .form-group-title {
375
+ position: relative;
376
+ height: 32px;
377
+ margin-bottom: 22px;
378
+ > span {
379
+ position: absolute;
380
+ top: 0;
381
+ left: 20%;
382
+ padding: 5px 25px;
383
+ background-color: #fff;
384
+ z-index: 1;
385
+ color: $--color-secondary-text;
386
+ }
387
+ &::after {
388
+ content: '';
389
+ position: absolute;
390
+ top: 50%;
391
+ left: 0;
392
+ width: 100%;
393
+ height: 0;
394
+ border-bottom: 1px dashed $--color-border-base;
395
+ }
396
+ }
397
+
374
398
  .ea-table-modal {
375
399
  overflow: visible;
376
400
  right: unset;
@@ -425,27 +449,20 @@ td {
425
449
  }
426
450
  }
427
451
 
428
- .ea-form .form-group-title {
429
- position: relative;
430
- height: 32px;
431
- margin-bottom: 22px;
432
- > span {
433
- position: absolute;
434
- top: 0;
435
- left: 20%;
436
- padding: 5px 25px;
437
- background-color: #fff;
438
- z-index: 1;
439
- color: $--color-secondary-text;
452
+ .ea-form .el-form-item__content {
453
+ & > .el-input-number,
454
+ & > .el-input,
455
+ & > .ea-select,
456
+ & > .el-select {
457
+ width: 100%;
440
458
  }
441
- &::after {
442
- content: '';
443
- position: absolute;
444
- top: 50%;
445
- left: 0;
459
+ }
460
+ .ea-form .el-form-item.hidden-label {
461
+ > .el-form-item__label {
462
+ display: none;
463
+ }
464
+ > .el-form-item__content {
446
465
  width: 100%;
447
- height: 0;
448
- border-bottom: 1px dashed $--color-border-base;
449
466
  }
450
467
  }
451
468
 
@@ -488,20 +505,3 @@ td {
488
505
  }
489
506
  }
490
507
  }
491
-
492
- .ea-form .el-form-item__content {
493
- & > .el-input-number,
494
- & > .el-input,
495
- & > .ea-select,
496
- & > .el-select {
497
- width: 100%;
498
- }
499
- }
500
- .ea-form .el-form-item.hidden-label {
501
- > .el-form-item__label {
502
- display: none;
503
- }
504
- > .el-form-item__content {
505
- width: 100%;
506
- }
507
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",