feat(editor): Add Beta tag to Data Tables (no-changelog) (#19458)

This commit is contained in:
Charlie Kolb
2025-09-15 09:52:29 +02:00
committed by GitHub
parent e4ccf527f2
commit c6e147550c
5 changed files with 11 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import { RouterLink } from 'vue-router';
import type { TabOptions } from '../../types';
import N8nIcon from '../N8nIcon';
import Tag from '../N8nTag/Tag.vue';
import N8nTooltip from '../N8nTooltip';
interface TabsProps {
@@ -123,6 +124,7 @@ const scrollRight = () => scroll(50);
>
<N8nIcon v-if="option.icon" :icon="option.icon" size="medium" />
<span v-if="option.label">{{ option.label }}</span>
<Tag v-if="option.tag" :text="option.tag" :clickable="false" />
</RouterLink>
<div
v-else
@@ -151,6 +153,7 @@ const scrollRight = () => scroll(50);
:class="$style.icon"
size="small"
/>
<Tag v-if="option.tag" :text="option.tag" :clickable="false" />
</div>
</N8nTooltip>
</div>

View File

@@ -13,4 +13,5 @@ export interface TabOptions<Value extends string | number> {
align?: 'left' | 'right';
to?: RouteLocationRaw;
notification?: boolean;
tag?: string;
}