migrate: convert most components to svelte 5
This commit is contained in:
1 parent
d670f39f0a
commit
10ef4123da
225 files changed
+5441
-3341
No files matched your search
@@ -13,18 +13,23 @@
|
||||
ViewColumns,
|
||||
} from 'svelte-hero-icons'
|
||||
|
||||
export let showLabel = true
|
||||
interface Props {
|
||||
showLabel?: boolean
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
let { showLabel = true, ...rest }: Props = $props()
|
||||
</script>
|
||||
|
||||
<Select {...$$restProps} bind:value={$userSettings.view}>
|
||||
<svelte:fragment slot="label">
|
||||
<Select {...rest} bind:value={$userSettings.view}>
|
||||
{#snippet customLabel()}
|
||||
{#if showLabel}
|
||||
<span class="flex items-center gap-1">
|
||||
<Icon src={ViewColumns} size="14" micro />
|
||||
{$t('filter.view.label')}
|
||||
</span>
|
||||
{/if}
|
||||
</svelte:fragment>
|
||||
{/snippet}
|
||||
<option value="cozy">
|
||||
<Icon
|
||||
src={RectangleGroup}
|
||||
|
||||
Reference in new issue
Block a user