mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-29 08:11:06 +00:00
Multi-database management tool built with Tauri + Vue 3. Supports MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server.
23 lines
699 B
Vue
23 lines
699 B
Vue
<script setup lang="ts">
|
|
import type { ContextMenuLabelProps } from 'reka-ui'
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { reactiveOmit } from '@vueuse/core'
|
|
import { ContextMenuLabel } from 'reka-ui'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const props = defineProps<ContextMenuLabelProps & { class?: HTMLAttributes['class'], inset?: boolean }>()
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class')
|
|
</script>
|
|
|
|
<template>
|
|
<ContextMenuLabel
|
|
data-slot="context-menu-label"
|
|
:data-inset="inset ? '' : undefined"
|
|
v-bind="delegatedProps"
|
|
:class="cn('text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:pl-7', props.class)"
|
|
>
|
|
<slot />
|
|
</ContextMenuLabel>
|
|
</template>
|