mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 00:16:00 +00:00
duplicator UX
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
<script lang="ts">
|
||||
import { openWebLink } from '../utility/exportFileTools';
|
||||
import contextMenu from '../utility/contextMenu';
|
||||
|
||||
export let href = undefined;
|
||||
export let onClick = undefined;
|
||||
export let menu = '__no_menu';
|
||||
</script>
|
||||
|
||||
<a
|
||||
on:click={(e) => {
|
||||
on:click={e => {
|
||||
if (onClick) onClick(e);
|
||||
else openWebLink(href);
|
||||
}}
|
||||
use:contextMenu={menu}
|
||||
>
|
||||
<slot />
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user