feat: Add search function
This commit is contained in:
1 parent
91134d05e4
commit
1dd179d636
22 files changed
+455
-70
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<script lang="ts">
|
||||
import Button from '$lib/components/input/Button.svelte'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
export let page: number
|
||||
|
||||
const dispatcher = createEventDispatcher<{ change: number }>()
|
||||
</script>
|
||||
|
||||
<div class="flex flex-row w-full gap-4">
|
||||
<Button
|
||||
on:click={() => {
|
||||
dispatcher('change', --page)
|
||||
}}
|
||||
disabled={page <= 1}
|
||||
class="flex-1"
|
||||
>
|
||||
Back
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
on:click={() => {
|
||||
dispatcher('change', ++page)
|
||||
}}
|
||||
class="flex-1"
|
||||
>
|
||||
Next
|
||||
</Button>
|
||||
</div>
|
||||
Reference in new issue
Block a user