@dataloop-ai/components 0.18.72 → 0.18.73
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/package.json
CHANGED
|
@@ -433,29 +433,32 @@
|
|
|
433
433
|
/>
|
|
434
434
|
</slot>
|
|
435
435
|
</td>
|
|
436
|
-
<
|
|
436
|
+
<DlTd
|
|
437
437
|
v-for="col in computedCols"
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
row,
|
|
442
|
-
pageIndex,
|
|
443
|
-
col
|
|
444
|
-
})
|
|
445
|
-
"
|
|
446
|
-
:name="
|
|
447
|
-
hasSlotByName(`body-cell-${col.name}`)
|
|
448
|
-
? `body-cell-${col.name}`
|
|
449
|
-
: 'body-cell'
|
|
450
|
-
"
|
|
438
|
+
:key="col.name"
|
|
439
|
+
:class="col.tdClass(row)"
|
|
440
|
+
:style="col.tdStyle(row)"
|
|
451
441
|
>
|
|
452
|
-
<
|
|
453
|
-
|
|
454
|
-
|
|
442
|
+
<slot
|
|
443
|
+
v-bind="
|
|
444
|
+
getBodyCellScope({
|
|
445
|
+
key: getRowKey(row),
|
|
446
|
+
row,
|
|
447
|
+
pageIndex,
|
|
448
|
+
col
|
|
449
|
+
})
|
|
450
|
+
"
|
|
451
|
+
:name="
|
|
452
|
+
hasSlotByName(
|
|
453
|
+
`body-cell-${col.name}`
|
|
454
|
+
)
|
|
455
|
+
? `body-cell-${col.name}`
|
|
456
|
+
: 'body-cell'
|
|
457
|
+
"
|
|
455
458
|
>
|
|
456
459
|
{{ getCellValue(col, row) }}
|
|
457
|
-
</
|
|
458
|
-
</
|
|
460
|
+
</slot>
|
|
461
|
+
</DlTd>
|
|
459
462
|
</DlTr>
|
|
460
463
|
</slot>
|
|
461
464
|
</slot>
|
|
@@ -432,6 +432,18 @@
|
|
|
432
432
|
title="Table Title"
|
|
433
433
|
/>
|
|
434
434
|
</div>
|
|
435
|
+
<div>
|
|
436
|
+
<p>Custom body cell</p>
|
|
437
|
+
<DlTable
|
|
438
|
+
:rows="tableRows"
|
|
439
|
+
:columns="tableColumns"
|
|
440
|
+
title="Custom Cells"
|
|
441
|
+
>
|
|
442
|
+
<template #body-cell-name="{ row }">
|
|
443
|
+
{{ row.name }}
|
|
444
|
+
</template>
|
|
445
|
+
</DlTable>
|
|
446
|
+
</div>
|
|
435
447
|
</div>
|
|
436
448
|
</div>
|
|
437
449
|
</template>
|