Fixes TabList: params for Label (#3093)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2023-04-27 18:05:44 +03:00 committed by GitHub
parent 3f3abd3e24
commit c08b711782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,7 @@
{#if item.label}
{item.label}
{:else if item.labelIntl}
<Label label={item.labelIntl} />
<Label label={item.labelIntl} params={item.labelParams} />
{/if}
</span>
{/if}

View File

@ -105,6 +105,7 @@ export interface TabItem {
id: string
label?: string
labelIntl?: IntlString
labelParams?: Record<string, any>
icon?: Asset | AnySvelteComponent
color?: string
tooltip?: IntlString

View File

@ -10,6 +10,7 @@
return {
id: c[0],
labelIntl: c[1],
labelParams: c[2],
action: () => onChange(c[0])
}
})