mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 01:16:01 +00:00
27 lines
419 B
Svelte
27 lines
419 B
Svelte
<script lang="ts">
|
|
import { openWebLink } from '../utility/exportFileTools';
|
|
|
|
export let href = undefined;
|
|
export let onClick = undefined;
|
|
</script>
|
|
|
|
<a
|
|
on:click={(e) => {
|
|
if (onClick) onClick(e);
|
|
else openWebLink(href);
|
|
}}
|
|
>
|
|
<slot />
|
|
</a>
|
|
|
|
<style>
|
|
a {
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
color: var(--theme-font-link);
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
</style>
|