Skip to content

Commit 182a6ab

Browse files
committed
fix: CDataTable: v-else compiler warning coreui#143
1 parent 9ffeb6a commit 182a6ab

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

Diff for: src/components/table/CDataTable.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
:index="itemIndex + firstItemIndex"
132132
/>
133133
<td
134-
v-else
134+
v-if="!$scopedSlots[colName]"
135135
:class="cellClass(item, colName, index)"
136136
:key="index"
137137
>

Diff for: src/components/table/tests/__snapshots__/CDataTable.spec.js.snap

+40
Original file line numberDiff line numberDiff line change
@@ -323,34 +323,44 @@ exports[`CDataTable renders correctly 2`] = `
323323
class="position-relative"
324324
>
325325
<tr>
326+
<!---->
327+
326328
<td
327329
class="user-custom-class"
328330
>
329331
330332
Yiorgos Avraamu
331333
332334
</td>
335+
<!---->
336+
333337
<td
334338
class=""
335339
>
336340
337341
2013
338342
339343
</td>
344+
<!---->
345+
340346
<td
341347
class=""
342348
>
343349
344350
Member
345351
346352
</td>
353+
<!---->
354+
347355
<td
348356
class=""
349357
>
350358
351359
Active
352360
353361
</td>
362+
<!---->
363+
354364
<td
355365
class=""
356366
>
@@ -375,34 +385,44 @@ exports[`CDataTable renders correctly 2`] = `
375385
</td>
376386
</tr>
377387
<tr>
388+
<!---->
389+
378390
<td
379391
class="user-custom-class"
380392
>
381393
382394
Estavan Lykos
383395
384396
</td>
397+
<!---->
398+
385399
<td
386400
class=""
387401
>
388402
389403
2014
390404
391405
</td>
406+
<!---->
407+
392408
<td
393409
class=""
394410
>
395411
396412
Staff
397413
398414
</td>
415+
<!---->
416+
399417
<td
400418
class=""
401419
>
402420
403421
Banned
404422
405423
</td>
424+
<!---->
425+
406426
<td
407427
class=""
408428
>
@@ -427,34 +447,44 @@ exports[`CDataTable renders correctly 2`] = `
427447
</td>
428448
</tr>
429449
<tr>
450+
<!---->
451+
430452
<td
431453
class="user-custom-class"
432454
>
433455
434456
Derick Maximinus
435457
436458
</td>
459+
<!---->
460+
437461
<td
438462
class=""
439463
>
440464
441465
212
442466
443467
</td>
468+
<!---->
469+
444470
<td
445471
class=""
446472
>
447473
448474
Member
449475
450476
</td>
477+
<!---->
478+
451479
<td
452480
class=""
453481
>
454482
455483
Pending
456484
457485
</td>
486+
<!---->
487+
458488
<td
459489
class=""
460490
>
@@ -479,34 +509,44 @@ exports[`CDataTable renders correctly 2`] = `
479509
</td>
480510
</tr>
481511
<tr>
512+
<!---->
513+
482514
<td
483515
class="user-custom-class"
484516
>
485517
486518
Chetan Mohamed
487519
488520
</td>
521+
<!---->
522+
489523
<td
490524
class=""
491525
>
492526
493527
2011
494528
495529
</td>
530+
<!---->
531+
496532
<td
497533
class=""
498534
>
499535
500536
Admin
501537
502538
</td>
539+
<!---->
540+
503541
<td
504542
class=""
505543
>
506544
507545
Inactive
508546
509547
</td>
548+
<!---->
549+
510550
<td
511551
class=""
512552
>

0 commit comments

Comments
 (0)