mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 21:36:00 +00:00
feat: parse col to row formatter
This commit is contained in:
@@ -350,7 +350,7 @@
|
|||||||
{#if col.component}
|
{#if col.component}
|
||||||
<svelte:component this={col.component} {...rowProps} />
|
<svelte:component this={col.component} {...rowProps} />
|
||||||
{:else if col.formatter}
|
{:else if col.formatter}
|
||||||
{col.formatter(row)}
|
{col.formatter(row, col)}
|
||||||
{:else if col.slot != null}
|
{:else if col.slot != null}
|
||||||
{#key row[col.slotKey] || 'key'}
|
{#key row[col.slotKey] || 'key'}
|
||||||
{#if col.slot == -1}<slot name="-1" {row} {col} {index} />
|
{#if col.slot == -1}<slot name="-1" {row} {col} {index} />
|
||||||
|
|||||||
Reference in New Issue
Block a user