mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 20:06:00 +00:00
create table or collection from object list
This commit is contained in:
13
packages/web/src/elements/CloseSearchButton.svelte
Normal file
13
packages/web/src/elements/CloseSearchButton.svelte
Normal file
@@ -0,0 +1,13 @@
|
||||
<script lang="ts">
|
||||
import FontIcon from '../icons/FontIcon.svelte';
|
||||
|
||||
import InlineButton from './InlineButton.svelte';
|
||||
|
||||
export let filter;
|
||||
</script>
|
||||
|
||||
{#if filter}
|
||||
<InlineButton on:click={() => (filter = '')} title="Clear filter">
|
||||
<FontIcon icon="icon close" />
|
||||
</InlineButton>
|
||||
{/if}
|
||||
@@ -2,6 +2,7 @@
|
||||
export let disabled = false;
|
||||
export let square = false;
|
||||
export let narrow = false;
|
||||
export let title = null;
|
||||
|
||||
let domButton;
|
||||
|
||||
@@ -10,7 +11,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="outer buttonLike" class:disabled class:square class:narrow on:click bind:this={domButton}>
|
||||
<div class="outer buttonLike" {title} class:disabled class:square class:narrow on:click bind:this={domButton}>
|
||||
<div class="inner">
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user