mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 22:26:01 +00:00
define description modal
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
export let icon = 'icon chevron-down';
|
||||
export let menu;
|
||||
export let narrow = false;
|
||||
let domButton;
|
||||
|
||||
function handleClick() {
|
||||
@@ -17,6 +18,6 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<InlineButton square on:click={handleClick} bind:this={domButton}>
|
||||
<InlineButton square {narrow} on:click={handleClick} bind:this={domButton}>
|
||||
<FontIcon {icon} />
|
||||
</InlineButton>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
export let disabled = false;
|
||||
export let square = false;
|
||||
export let narrow = false;
|
||||
|
||||
let domButton;
|
||||
|
||||
@@ -9,7 +10,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="outer buttonLike" class:disabled class:square on:click bind:this={domButton}>
|
||||
<div class="outer buttonLike" class:disabled class:square class:narrow on:click bind:this={domButton}>
|
||||
<div class="inner">
|
||||
<slot />
|
||||
</div>
|
||||
@@ -34,6 +35,10 @@
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.narrow {
|
||||
padding: 3px 1px;
|
||||
}
|
||||
|
||||
.outer.disabled {
|
||||
color: var(--theme-font-3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user