frontend: image file picker
This commit is contained in:
parent
ac97e5b152
commit
831f3a5f98
2 changed files with 18 additions and 8 deletions
|
@ -1,13 +1,14 @@
|
|||
<script>
|
||||
import AddButton from "./add_button.svelte";
|
||||
let { direction = "horisontal", input = true } = $props();
|
||||
let { direction = "horisontal", image = $bindable() } = $props();
|
||||
|
||||
$effect(() => {
|
||||
console.log(image);
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="{direction} {input ? "input" : ""} image rounded">
|
||||
<AddButton size=48 handler={() => {
|
||||
// addImage(plus.id, this.id);
|
||||
// document.getElementById("screenshots").appendChild(new HorisontalImage().html);
|
||||
}}/>
|
||||
<div class="{direction} input image rounded">
|
||||
<AddButton type="image" bind:files={image}/>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue