mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
feat: add show mask chip for tools
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
dims?: string;
|
||||
note?: string;
|
||||
noteTone?: "warning" | "info";
|
||||
actions?: Snippet;
|
||||
}
|
||||
let {
|
||||
label,
|
||||
@@ -26,6 +27,7 @@
|
||||
dims = undefined,
|
||||
note = undefined,
|
||||
noteTone = "warning",
|
||||
actions = undefined,
|
||||
}: Props = $props();
|
||||
</script>
|
||||
|
||||
@@ -44,6 +46,9 @@
|
||||
{/if}
|
||||
</span>
|
||||
<span class="tile-note">
|
||||
{#if actions}
|
||||
{@render actions()}
|
||||
{/if}
|
||||
{#if note}
|
||||
<Badge tone={noteTone} label={note} />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user