@lx-frontend/wrap-element-ui 1.0.0-beta.7 → 1.0.1-7.beta-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.
Files changed (30) hide show
  1. package/README.md +2 -2
  2. package/package.json +6 -5
  3. package/src/components/EditableTable/bizHooks/index.ts +7 -0
  4. package/src/components/EditableTable/{useCellHover.ts → bizHooks/useCellHover.ts} +1 -1
  5. package/src/components/EditableTable/bizHooks/useColumnHeaderOperation.ts +329 -0
  6. package/src/components/EditableTable/{useDefaultOperation.ts → bizHooks/useDefaultOperation.ts} +2 -2
  7. package/src/components/EditableTable/{useDragSort.ts → bizHooks/useDragSort.ts} +4 -4
  8. package/src/components/EditableTable/{usePagination.ts → bizHooks/usePagination.ts} +3 -3
  9. package/src/components/EditableTable/{useRowBgColor.ts → bizHooks/useRowBgColor.ts} +9 -16
  10. package/src/components/EditableTable/bizHooks/useViewSetting.ts +125 -0
  11. package/src/components/EditableTable/features/bizColorSelect.vue +63 -0
  12. package/src/components/EditableTable/features/bizEditCell.vue +44 -0
  13. package/src/components/EditableTable/features/bizTableHeaderPopover/BizCheckboxFilter.vue +40 -0
  14. package/src/components/EditableTable/features/bizTableHeaderPopover/BizColorRadioFilter.vue +56 -0
  15. package/src/components/EditableTable/features/bizTableHeaderPopover/BizDoubleDatePickerFilter.vue +91 -0
  16. package/src/components/EditableTable/features/bizTableHeaderPopover/BizInputFilter.vue +26 -0
  17. package/src/components/EditableTable/features/bizTableHeaderPopover/BizMonthDayPicker.helper.ts +131 -0
  18. package/src/components/EditableTable/features/bizTableHeaderPopover/BizMonthDayPicker.vue +115 -0
  19. package/src/components/EditableTable/features/bizTableHeaderPopover/BizRadioFilter.vue +39 -0
  20. package/src/components/EditableTable/features/bizTableHeaderPopover/BizSortFilter.vue +50 -0
  21. package/src/components/EditableTable/features/bizTableHeaderPopover/index.vue +155 -0
  22. package/src/components/EditableTable/features/bizTableOperatePopover.vue +67 -0
  23. package/src/components/EditableTable/features/bizViewSettingDialog.vue +137 -0
  24. package/src/components/EditableTable/index.less +524 -428
  25. package/src/components/EditableTable/index.vue +167 -456
  26. package/src/components/EditableTable/{types.ts → types/index.ts} +176 -116
  27. package/src/components/SearchForm/index.vue +7 -4
  28. package/src/components/SearchForm/types/index.ts +63 -0
  29. package/src/components/EditableTable/useColumnHeaderOperation.ts +0 -326
  30. package/src/components/EditableTable/useViewSetting.ts +0 -119
@@ -1,6 +1,10 @@
1
1
  @--theme-blue--: #2468f2;
2
2
 
3
3
  .editable-table {
4
+ .el-table__body {
5
+ width: 100% !important;
6
+ }
7
+
4
8
  &__selected-color {
5
9
  position: absolute;
6
10
  left: 0;
@@ -139,337 +143,371 @@
139
143
  }
140
144
  }
141
145
 
142
- &__sort-filter {
143
- padding: 0 !important;
144
- }
145
-
146
- &__pin-top {
147
- width: 24px;
148
- height: 24px;
149
- color: white;
150
- background-color: #969ca4;
151
- }
146
+ &-view-setting {
147
+ &__btn-wrapper {
148
+ display: flex;
149
+ justify-content: flex-end;
150
+ }
152
151
 
153
- & .el-table td,
154
- .el-table th.is-leaf {
155
- border-bottom: 1px solid #dfe3ec;
156
- }
152
+ &__btn {
153
+ display: flex;
154
+ justify-content: flex-end;
155
+ align-items: center;
156
+ font-weight: 400;
157
+ font-size: 14px;
158
+ color: @--theme-blue--;
159
+ margin-bottom: 17px;
160
+ margin-right: 20px;
161
+ }
157
162
 
158
- & .el-table {
159
- &__expanded-cell {
160
- background-color: #fafafa;
163
+ &__btn-text {
164
+ margin-left: 4px;
161
165
  }
162
- }
163
166
 
164
- & .el-table tr td {
165
- min-height: 45px;
166
- border-top: none;
167
- border-left: none;
168
- border-right: none;
169
- }
167
+ &__dialog {
168
+ padding: 0px;
170
169
 
171
- & thead tr th {
172
- background-color: #f3f4f8 !important;
173
- border-right: none !important;
170
+ .el-dialog__body {
171
+ max-height: 70vh;
172
+ }
174
173
 
175
- & .cell {
176
- color: #13161b;
177
- }
174
+ .el-dialog__body {
175
+ padding: 0;
176
+ }
178
177
 
179
- &:not(:last-child) .cell {
180
- border-right: 2px #e4e8ef solid;
181
- }
182
- }
178
+ & .el-button--primary {
179
+ background-color: @--theme-blue-- !important;
180
+ border-color: @--theme-blue-- !important;
181
+ }
183
182
 
184
- .el-table-filter,
185
- th.el-table__cell .el-table__column-filter-trigger,
186
- th.is-sortable .caret-wrapper {
187
- display: none;
188
- }
183
+ & .el-checkbox.is-checked:not(.is-disabled) {
184
+ .el-checkbox__input .el-checkbox__inner {
185
+ background-color: @--theme-blue-- !important;
186
+ border-color: @--theme-blue-- !important;
187
+ }
189
188
 
190
- .el-table__body tr.current-row > td,
191
- .el-table__body tr.hover-row > td {
192
- background-color: #fafafa;
193
- }
189
+ .el-checkbox__label {
190
+ color: @--theme-blue-- !important;
191
+ }
192
+ }
194
193
 
195
- table tbody tr td {
196
- & .el-date-editor.el-input {
197
- width: 100%;
198
- }
194
+ & .el-button {
195
+ border-radius: 2px;
196
+ }
199
197
 
200
- & .cell {
201
- font-size: 14px;
198
+ .el-dialog__header {
199
+ display: flex;
200
+ justify-content: space-between;
201
+ align-items: center;
202
+ font-size: 14px;
203
+ background-color: #eeeeee;
204
+ height: 36px;
205
+ line-height: 36px;
206
+ padding: 0 20px;
207
+ }
208
+
209
+ .el-dialog__title {
210
+ font-size: 14px;
211
+ line-height: 20px;
212
+ color: #333333;
213
+ }
214
+
215
+ .el-dialog__footer {
216
+ background-color: #eeeeee;
217
+ height: 42px;
218
+ line-height: 42px;
219
+ padding: 0 20px;
220
+
221
+ & .el-button {
222
+ height: 24px;
223
+ // line-height: 24px;
224
+ font-size: 12px;
225
+ padding: 5px 12px;
226
+ }
227
+ }
202
228
  }
203
- }
204
229
 
205
- .el-table__fixed-body-wrapper {
206
- background: #fff;
207
- }
208
- }
230
+ &__content {
231
+ display: flex;
232
+ min-height: 500px;
233
+ }
209
234
 
210
- .view-setting {
211
- &__btn-wrapper {
212
- display: flex;
213
- justify-content: flex-end;
214
- }
235
+ &__content-left {
236
+ min-width: 417px;
237
+ width: 417px;
215
238
 
216
- &__btn {
217
- display: flex;
218
- justify-content: flex-end;
219
- align-items: center;
220
- font-weight: 400;
221
- font-size: 14px;
222
- color: @--theme-blue--;
223
- margin-bottom: 17px;
224
- margin-right: 20px;
225
- }
239
+ display: flex;
240
+ flex-direction: column;
241
+ justify-content: flex-start;
242
+ align-items: flex-start;
243
+ }
226
244
 
227
- &__btn-text {
228
- margin-left: 4px;
229
- }
245
+ &__content-left-item {
246
+ width: 130px;
247
+ margin-bottom: 15px;
248
+ }
230
249
 
231
- &__dialog {
232
- padding: 0px;
250
+ &__content-right {
251
+ border-left: 1px solid #d9d9d9;
252
+ display: flex;
253
+ flex-direction: column;
254
+ justify-content: flex-start;
255
+ align-items: flex-start;
256
+ }
233
257
 
234
- .el-dialog__body {
235
- max-height: 70vh;
258
+ &__content-right-title,
259
+ &__content-left-title {
260
+ border-bottom: 1px solid #d9d9d9;
261
+ width: 100%;
262
+ height: 46px;
263
+ display: flex;
264
+ justify-content: flex-start;
265
+ align-items: center;
266
+ padding-left: 20px;
236
267
  }
237
268
 
238
- .el-dialog__body {
239
- padding: 0;
269
+ &__selected-count {
270
+ margin-left: 20px;
240
271
  }
241
272
 
242
- & .el-button--primary {
243
- background-color: @--theme-blue-- !important;
244
- border-color: @--theme-blue-- !important;
273
+ &__checkbox-wrapper {
274
+ padding-left: 37px;
275
+ padding-top: 24px;
245
276
  }
246
277
 
247
- & .el-checkbox.is-checked:not(.is-disabled) {
248
- .el-checkbox__input .el-checkbox__inner {
249
- background-color: @--theme-blue-- !important;
250
- border-color: @--theme-blue-- !important;
251
- }
252
- .el-checkbox__label {
253
- color: @--theme-blue-- !important;
254
- }
278
+ &__content-right {
279
+ flex-grow: 1;
255
280
  }
256
281
 
257
- & .el-button {
258
- border-radius: 2px;
282
+ &__content-right-frize {
283
+ width: 100%;
284
+ display: flex;
285
+ justify-content: flex-start;
286
+ align-items: center;
287
+ height: 50px;
288
+ border-bottom: 1px solid #d9d9d9;
289
+ padding-left: 20px;
259
290
  }
260
- }
261
291
 
262
- &__content {
263
- display: flex;
264
- min-height: 500px;
265
- }
292
+ &__content-right-input.el-input {
293
+ width: 140px;
294
+ margin: 0 4px;
266
295
 
267
- &__content-left {
268
- min-width: 417px;
269
- width: 417px;
296
+ .el-input__inner {
297
+ height: 28px;
298
+ line-height: 28px;
299
+ }
300
+ }
270
301
 
271
- display: flex;
272
- flex-direction: column;
273
- justify-content: flex-start;
274
- align-items: flex-start;
275
- }
302
+ &__content-right-selected {
303
+ display: flex;
304
+ justify-content: flex-start;
305
+ flex-direction: column;
306
+ align-items: flex-start;
307
+ width: 100%;
308
+ flex-grow: 1;
309
+ padding-left: 18px;
310
+ padding-top: 17px;
311
+ padding-right: 23px;
312
+ }
276
313
 
277
- &__content-left-item {
278
- width: 130px;
279
- margin-bottom: 15px;
280
- }
314
+ &__selected-item-left {
315
+ display: flex;
316
+ justify-content: flex-start;
317
+ align-items: center;
318
+ }
281
319
 
282
- &__content-right {
283
- border-left: 1px solid #d9d9d9;
284
- display: flex;
285
- flex-direction: column;
286
- justify-content: flex-start;
287
- align-items: flex-start;
288
- }
320
+ &__icon-wrapper {
321
+ width: 14px;
322
+ height: 14px;
323
+ line-height: 14px;
324
+ padding: 2px 4px;
325
+ margin-right: 10px;
326
+ cursor: grab;
327
+ display: flex;
328
+ flex-direction: column;
329
+ justify-content: center;
330
+ align-items: center;
331
+ }
289
332
 
290
- &__content-right-title,
291
- &__content-left-title {
292
- border-bottom: 1px solid #d9d9d9;
293
- width: 100%;
294
- height: 46px;
295
- display: flex;
296
- justify-content: flex-start;
297
- align-items: center;
298
- padding-left: 20px;
299
- }
333
+ &__selected-item {
334
+ display: flex;
335
+ justify-content: space-between;
336
+ align-items: center;
337
+ line-height: 30px;
338
+ height: 30px;
339
+ width: 100%;
340
+ }
300
341
 
301
- &__selected-count {
302
- margin-left: 20px;
303
- }
342
+ &__selected-item-close {
343
+ cursor: pointer;
304
344
 
305
- &__checkbox-wrapper {
306
- padding-left: 37px;
307
- padding-top: 24px;
345
+ &--disabled {
346
+ cursor: not-allowed;
347
+ color: #989ea9;
348
+ }
349
+ }
308
350
  }
309
351
 
310
- &__content-right {
311
- flex-grow: 1;
312
- }
352
+ &-color-popover {
353
+ min-width: 102px !important;
354
+ width: 102px !important;
355
+ padding: 0 !important;
313
356
 
314
- &__content-right-frize {
315
- width: 100%;
316
- display: flex;
317
- justify-content: flex-start;
318
- align-items: center;
319
- height: 50px;
320
- border-bottom: 1px solid #d9d9d9;
321
- padding-left: 20px;
322
- }
357
+ & .popper__arrow::after {
358
+ left: 0 !important;
359
+ }
323
360
 
324
- &__content-right-input {
325
- width: 140px;
326
- margin: 0 4px;
361
+ .color-list {
362
+ color: #fff;
363
+ width: 102px;
364
+ border-radius: 5px;
365
+ overflow: hidden;
327
366
 
328
- .el-input__inner {
329
- height: 28px;
330
- line-height: 28px;
367
+ &__item {
368
+ display: inline-block;
369
+ width: 100%;
370
+ height: 27px;
371
+ line-height: 27px;
372
+ padding-left: 6px;
373
+ }
331
374
  }
332
375
  }
333
376
 
334
- &__content-right-selected {
335
- display: flex;
336
- justify-content: flex-start;
337
- flex-direction: column;
338
- align-items: flex-start;
339
- width: 100%;
340
- flex-grow: 1;
341
- padding-left: 18px;
342
- padding-top: 17px;
343
- padding-right: 23px;
344
- }
377
+ &-sort-filter {
378
+ padding: 0 !important;
379
+ width: 258px;
345
380
 
346
- &__selected-item-left {
347
- display: flex;
348
- justify-content: flex-start;
349
- align-items: center;
350
- }
381
+ &__column-title {
382
+ font-size: 14px;
383
+ font-weight: 600;
384
+ height: 40px;
385
+ line-height: 40px;
386
+ text-align: center;
387
+ border-bottom: 1px solid #d6dbe3;
388
+ }
351
389
 
352
- &__icon-wrapper {
353
- width: 14px;
354
- height: 14px;
355
- line-height: 14px;
356
- padding: 2px 4px;
357
- margin-right: 10px;
358
- cursor: grab;
359
- display: flex;
360
- flex-direction: column;
361
- justify-content: center;
362
- align-items: center;
363
- }
390
+ &__item {
391
+ margin-top: 14px;
392
+ }
364
393
 
365
- &__selected-item {
366
- display: flex;
367
- justify-content: space-between;
368
- align-items: center;
369
- line-height: 30px;
370
- height: 30px;
371
- width: 100%;
372
- }
394
+ &__date-picker-content {
395
+ display: flex;
396
+ flex-direction: column;
397
+ gap: 12px;
373
398
 
374
- &__selected-item-close {
375
- cursor: pointer;
376
- &--disabled {
377
- cursor: not-allowed;
378
- color: #989ea9;
399
+ .el-date-editor.el-input,
400
+ .el-date-editor.el-input__inner {
401
+ width: 100%;
402
+ }
379
403
  }
380
- }
381
- }
382
404
 
383
- .color-popover {
384
- min-width: 102px;
385
- width: 102px;
386
- padding: 0;
405
+ &__filter,
406
+ &__search {
407
+ padding: 0 14px;
387
408
 
388
- & .popper__arrow::after {
389
- left: 0 !important;
390
- }
391
- }
409
+ .el-select {
410
+ width: 100%;
411
+ }
392
412
 
393
- .color-list {
394
- color: #fff;
395
- width: 102px;
396
- border-radius: 5px;
397
- overflow: hidden;
398
- &__item {
399
- display: inline-block;
400
- width: 100%;
401
- height: 27px;
402
- line-height: 27px;
403
- padding-left: 6px;
404
- }
405
- }
413
+ .el-radio {
414
+ width: 100%;
415
+ margin-top: 10px;
406
416
 
407
- .sort-filter {
408
- width: 258px;
409
- padding: 0;
417
+ &:first-child {
418
+ margin-top: 0;
419
+ }
420
+ }
410
421
 
411
- &__column-title {
412
- font-size: 14px;
413
- font-weight: 600;
414
- height: 40px;
415
- line-height: 40px;
416
- text-align: center;
417
- border-bottom: 1px solid #d6dbe3;
418
- }
422
+ .el-radio__input {
423
+ line-height: 10px;
424
+ }
419
425
 
420
- &__filter,
421
- &__sort,
422
- &__search {
423
- padding: 14px;
424
- }
426
+ .el-radio__inner {
427
+ width: 14px;
428
+ height: 14px;
429
+ }
425
430
 
426
- &__filter {
427
- padding-top: 0;
428
- }
431
+ .el-radio__label {
432
+ white-space: nowrap;
433
+ overflow-x: hidden;
434
+ text-overflow: ellipsis;
435
+ width: calc(100% - 20px);
436
+ display: inline-block;
437
+ vertical-align: middle;
438
+ font-size: 12px;
439
+ line-height: normal;
440
+ }
441
+ }
429
442
 
430
- &__filter-title,
431
- &__sort-title,
432
- &__search-title {
433
- font-weight: 600;
434
- font-size: 14px;
435
- color: #1f1f1f;
436
- margin-bottom: 10px;
437
- }
443
+ &__filter {
438
444
 
439
- &__search-input {
440
- & .el-input__inner {
441
- height: 32px;
445
+ .el-radio-group,
446
+ .el-checkbox-group {
447
+ max-height: 166px;
448
+ overflow-y: auto;
449
+ overflow-x: hidden;
450
+ }
442
451
  }
443
- }
444
452
 
445
- &__filter-title {
446
- border-top: 1px solid #f3f3f3;
447
- padding-top: 14px;
448
- }
453
+ &__sort {
454
+ padding: 0 14px;
455
+ display: flex;
456
+ flex-direction: column;
457
+ }
449
458
 
450
- &__sort-btns {
451
- display: flex;
452
- justify-content: space-between;
453
- align-items: center;
459
+ &__filter-title,
460
+ &__sort-title,
461
+ &__search-title {
462
+ font-weight: 600;
463
+ font-size: 14px;
464
+ color: #1f1f1f;
465
+ margin-bottom: 10px;
466
+ }
467
+
468
+ &__search {
469
+ &-input {
470
+ & .el-input__inner {
471
+ height: 32px;
472
+ }
473
+ }
474
+
475
+ &__date-range {
476
+ display: flex;
477
+ flex-direction: column;
478
+ gap: 12px;
454
479
 
455
- & .el-button {
456
- border: none;
480
+ .el-date-editor.el-input,
481
+ .el-date-editor.el-input__inner {
482
+ width: 100%;
483
+ }
484
+ }
457
485
  }
458
- }
459
486
 
460
- &__sort-btn {
461
- width: 112px;
462
- height: 28px;
463
- padding: 4px 42px;
464
- display: inline-block;
465
- background-color: #f4f4f4;
466
- color: #4a4a4a;
487
+ &__sort-btns {
488
+ display: flex;
489
+ justify-content: space-between;
490
+ align-items: center;
467
491
 
468
- &:hover {
469
- background-color: #fafafa;
492
+ & .el-button {
493
+ border: none;
494
+ }
470
495
  }
471
496
 
472
- &--active {
497
+ &__sort-btn.el-button {
498
+ width: 112px;
499
+ height: 28px;
500
+ padding: 4px 42px;
501
+ display: inline-block;
502
+ background-color: #f4f4f4;
503
+ color: #4a4a4a;
504
+
505
+ &:hover {
506
+ background-color: #fafafa;
507
+ }
508
+ }
509
+
510
+ &__sort-btn--active.el-button {
473
511
  color: @--theme-blue--;
474
512
  border-color: #eef3ff;
475
513
  background: #f4f7fe;
@@ -478,184 +516,277 @@
478
516
  background-color: #f4f7fe;
479
517
  }
480
518
  }
481
- }
482
519
 
483
- &__filter-checkbox-group {
484
- display: flex;
485
- flex-direction: column;
486
- justify-content: flex-start;
487
- align-items: flex-start;
488
- }
520
+ &__filter-checkbox-group {
521
+ width: 100%;
522
+ display: flex;
523
+ flex-direction: column;
524
+ justify-content: flex-start;
525
+ align-items: flex-start;
526
+ }
527
+
528
+ &__filter-checkbox {
529
+ margin-top: 10px;
530
+ font-size: 14px;
531
+ width: 100%;
532
+
533
+ &:first-child {
534
+ margin-top: 0;
535
+ }
536
+
537
+ .el-checkbox__input {
538
+ line-height: 10px;
539
+ }
540
+
541
+ .el-checkbox__label {
542
+ white-space: nowrap;
543
+ overflow-x: hidden;
544
+ text-overflow: ellipsis;
545
+ width: calc(100% - 20px);
546
+ display: inline-block;
547
+ vertical-align: middle;
548
+ font-size: 12px;
549
+ line-height: normal;
550
+ }
551
+ }
552
+
553
+ &__footer {
554
+ display: flex;
555
+ height: 47px;
556
+ border-top: 1px solid #d6dbe3;
557
+ justify-content: flex-end;
558
+ align-items: center;
559
+ padding: 0 15px;
560
+ margin-top: 14px;
561
+ }
562
+
563
+ &__reset-btn,
564
+ &__confirm-btn {
565
+ &.el-button {
566
+ width: 50px;
567
+ height: 28px;
568
+ margin-left: 10px;
569
+ display: flex;
570
+ justify-content: center;
571
+ align-items: center;
572
+ border-radius: 2px;
573
+ font-size: 14px;
574
+ font-weight: 400;
575
+ }
576
+ }
577
+
578
+ &__confirm-btn.el-button {
579
+ background-color: @--theme-blue--;
580
+ border-color: @--theme-blue--;
581
+ }
489
582
 
490
- &__filter-checkbox {
491
- margin-top: 10px;
492
- font-size: 14px;
583
+ .el-checkbox__input.is-checked .el-checkbox__inner,
584
+ .el-radio__input.is-checked .el-radio__inner {
585
+ background: @--theme-blue--;
586
+ border-color: @--theme-blue--;
587
+ }
493
588
 
494
- &:first-child {
495
- margin-top: 0;
589
+ .el-checkbox__input.is-checked+.el-checkbox__label,
590
+ .el-radio__input.is-checked+.el-radio__label {
591
+ color: @--theme-blue--;
496
592
  }
497
593
  }
498
594
 
499
- &__footer {
500
- display: flex;
501
- height: 47px;
502
- border-top: 1px solid #d6dbe3;
503
- justify-content: flex-end;
504
- align-items: center;
505
- padding: 0 15px;
595
+ &__pin-top {
596
+ width: 24px;
597
+ height: 24px;
598
+ color: white;
599
+ background-color: #969ca4;
506
600
  }
507
601
 
508
- &__reset-btn,
509
- &__confirm-btn {
510
- width: 50px;
511
- height: 28px;
512
- margin-left: 10px;
513
- display: flex;
514
- justify-content: center;
515
- align-items: center;
516
- border-radius: 2px;
517
- font-size: 14px;
518
- font-weight: 400;
602
+ & .el-table td,
603
+ .el-table th.is-leaf {
604
+ border-bottom: 1px solid #dfe3ec;
519
605
  }
520
606
 
521
- &__confirm-btn {
522
- background-color: @--theme-blue--;
523
- border-color: @--theme-blue--;
607
+ & .el-table {
608
+ &__expanded-cell {
609
+ background-color: #fafafa;
610
+ }
524
611
  }
525
612
 
526
- .el-checkbox__input.is-checked .el-checkbox__inner,
527
- .el-radio__input.is-checked .el-radio__inner {
528
- background: #2468f2;
529
- border-color: #2468f2;
613
+ & .el-table tr td {
614
+ min-height: 45px;
615
+ border-top: none;
616
+ border-left: none;
617
+ border-right: none;
530
618
  }
531
- }
532
619
 
533
- .btn-pointer {
534
- cursor: pointer;
535
- }
620
+ & thead tr th {
621
+ background-color: #f3f4f8 !important;
622
+ border-right: none !important;
536
623
 
537
- .operation-popover {
538
- min-width: 120px;
539
- padding: 0;
624
+ & .cell {
625
+ color: #13161b;
626
+ }
540
627
 
541
- &__operation {
542
- display: flex;
543
- flex-direction: column;
544
- justify-content: space-between;
545
- align-items: center;
628
+ &:not(:last-child) .cell {
629
+ border-right: 2px #e4e8ef solid;
630
+ }
546
631
  }
547
632
 
548
- &__operation-reference {
549
- display: inline-block;
633
+ .el-table-filter,
634
+ th.el-table__cell .el-table__column-filter-trigger,
635
+ th.is-sortable .caret-wrapper {
636
+ display: none;
637
+ }
550
638
 
551
- &--active {
552
- color: @--theme-blue--;
553
- }
639
+ .el-table__body tr.current-row>td,
640
+ .el-table__body tr.hover-row>td {
641
+ background-color: #fafafa;
642
+ }
554
643
 
555
- .el-button {
556
- background: transparent;
557
- border: none;
558
- padding: 0;
559
- font-weight: 400;
560
- color: #13161b;
561
- font-size: 14px;
644
+ table tbody tr td {
645
+ & .el-date-editor.el-input {
646
+ width: 100%;
647
+ }
562
648
 
563
- &:focus {
564
- color: @--theme-blue--;
565
- }
649
+ & .cell {
650
+ font-size: 12px;
566
651
  }
567
652
  }
568
653
 
569
- &__operation-item {
570
- height: 40px;
571
- line-height: 40px;
572
- width: 100%;
573
- text-align: center;
574
- color: #1f1f1f;
575
- cursor: pointer;
654
+ & table th {
655
+ font-size: 12px;
656
+ font-weight: bold;
657
+ }
576
658
 
577
- &:hover {
578
- background: #f4f7fe;
579
- }
659
+ & table td {
660
+ font-size: 12px;
661
+ color: #13161b;
580
662
  }
581
663
 
582
- &__save-cancel {
583
- display: flex;
584
- justify-content: flex-start;
585
- align-items: center;
586
- color: @--theme-blue--;
664
+ .el-table th>.cell {
665
+ color: #5b6984
587
666
  }
588
667
 
589
- &__btn {
590
- cursor: pointer;
591
- &:first-child {
592
- margin-right: 15px;
593
- }
668
+ .el-table__fixed-body-wrapper {
669
+ background: #fff;
594
670
  }
595
671
 
596
- &__operation-btn {
597
- &--active {
598
- color: @--theme-blue-- !important;
672
+ .el-checkbox__input.is-checked .el-checkbox__inner,
673
+ .el-checkbox__input.is-indeterminate .el-checkbox__inner {
674
+ background: @--theme-blue--;
675
+ border-color: @--theme-blue--;
676
+ }
677
+
678
+ .no-inner-cell-border {
679
+ & .cell {
680
+ border: none !important;
599
681
  }
600
682
  }
601
- }
602
683
 
603
- .pagination-wrap {
604
- display: flex;
605
- justify-content: space-between;
606
- align-items: center;
607
- margin-top: 12px;
684
+ .custom-row-classname-pinned {
685
+ & td:last-child {
686
+ background-image: url("./pin-top.png");
687
+ background-repeat: no-repeat;
688
+ background-size: 24px 24px;
689
+ background-position: right 0 top 0;
690
+ }
691
+ }
608
692
 
609
- & .el-pagination {
693
+ &-operation-popover {
694
+ min-width: 120px;
610
695
  padding: 0;
611
696
 
612
- .el-pager li.number {
613
- background-color: #fff;
614
- border: 1px solid #d6dbe3;
615
- font-weight: 400;
616
- font-size: 14px;
697
+ &__operation {
698
+ display: flex;
699
+ flex-direction: column;
700
+ justify-content: space-between;
701
+ align-items: center;
702
+ }
703
+
704
+ &__operation-reference {
705
+ display: inline-block;
706
+
707
+ &--active {
708
+ color: @--theme-blue--;
709
+ }
617
710
 
618
- &.active {
619
- background-color: @--theme-blue--;
620
- color: #fff;
711
+ .el-button {
712
+ background: transparent;
713
+ border: none;
714
+ padding: 0;
715
+ font-weight: 400;
716
+ color: #13161b;
717
+ font-size: 14px;
718
+
719
+ &:focus {
720
+ color: @--theme-blue--;
721
+ }
621
722
  }
622
723
  }
623
724
 
624
- & .btn-prev,
625
- & .btn-next,
626
- & .el-icon-more {
627
- background-color: #fff !important;
725
+ &__operation-item {
726
+ height: 40px;
727
+ line-height: 40px;
728
+ width: 100%;
729
+ text-align: center;
730
+ color: #1f1f1f;
731
+ cursor: pointer;
732
+
733
+ &:hover {
734
+ background: #f4f7fe;
735
+ }
628
736
  }
629
- }
630
- }
631
737
 
632
- .custom-row-classname-pinned {
633
- & td:last-child {
634
- background-image: url("./pin-top.png");
635
- background-repeat: no-repeat;
636
- background-size: 24px 24px;
637
- background-position: right 0 top 0;
638
- }
639
- }
738
+ &__save-cancel {
739
+ display: flex;
740
+ justify-content: flex-start;
741
+ align-items: center;
742
+ color: @--theme-blue--;
743
+ }
640
744
 
745
+ &__btn {
746
+ cursor: pointer;
641
747
 
748
+ &:first-child {
749
+ margin-right: 15px;
750
+ }
751
+ }
642
752
 
643
- .editable-table {
644
- & table th {
645
- font-size: 14px;
646
- font-weight: bold;
753
+ &__operation-btn {
754
+ color: @--theme-blue-- !important;
755
+ }
647
756
  }
648
757
 
649
- & table td {
650
- font-size: 12px;
651
- color: #13161b;
758
+ .pagination-wrap {
759
+ display: flex;
760
+ justify-content: space-between;
761
+ align-items: center;
762
+ margin-top: 12px;
763
+
764
+ & .el-pagination.is-background {
765
+ padding: 0;
766
+
767
+ .el-pager li.number {
768
+ background-color: #fff;
769
+ border: 1px solid #d6dbe3;
770
+ font-weight: 400;
771
+ font-size: 14px;
772
+
773
+ &.active {
774
+ background-color: @--theme-blue--;
775
+ color: #fff;
776
+ }
777
+ }
778
+
779
+ & .btn-prev,
780
+ & .btn-next,
781
+ & .el-icon-more {
782
+ background-color: #fff !important;
783
+ }
784
+ }
652
785
  }
653
786
  }
654
787
 
655
- .no-inner-cell-border {
656
- & .cell {
657
- border: none !important;
658
- }
788
+ .btn-pointer {
789
+ cursor: pointer;
659
790
  }
660
791
 
661
792
  .editable-table-drag-icon {
@@ -686,39 +817,4 @@
686
817
  &::before {
687
818
  bottom: -4px;
688
819
  }
689
- }
690
-
691
- .el-dialog__header {
692
- display: flex;
693
- justify-content: space-between;
694
- align-items: center;
695
- font-size: 14px;
696
- background-color: #eeeeee;
697
- height: 36px;
698
- line-height: 36px;
699
- padding: 0 20px;
700
- }
701
-
702
- .el-dialog__headerbtn {
703
- position: inherit;
704
- }
705
-
706
- .el-dialog__title {
707
- font-size: 14px;
708
- line-height: 20px;
709
- color: #333333;
710
- }
711
-
712
- .el-dialog__footer {
713
- background-color: #eeeeee;
714
- height: 42px;
715
- line-height: 42px;
716
- padding: 0 20px;
717
-
718
- & .el-button {
719
- height: 24px;
720
- // line-height: 24px;
721
- font-size: 12px;
722
- padding: 5px 12px;
723
- }
724
- }
820
+ }