1
0
This commit is contained in:
2026-06-22 15:57:57 +04:00
parent b04209650e
commit c500318676
2 changed files with 59 additions and 61 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@syncraft/svelte-ui",
"version": "1.0.4",
"version": "1.0.5",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run prepack",

View File

@@ -1,3 +1,9 @@
<script>
import Image from "$lib/components/Image.svelte";
let { src, ...others } = $props();
</script>
{#if src}
<picture>
{#if src?.sources}
@@ -10,20 +16,12 @@
src={src?.img?.src || src}
width={src?.img?.w}
height={src?.img?.h}
sizes="auto"
{...others}
/>
</picture>
{/if}
<script>
import Image from '$lib/components/Image.svelte'
let {
src,
...others
} = $props()
</script>
<style lang="scss">
picture {
display: flex;