Related subprocesses (#9097)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2025-05-26 22:36:48 +07:00
committed by GitHub
parent 9017ad2310
commit 4785a7acc5
6 changed files with 101 additions and 28 deletions
@@ -42,6 +42,7 @@
export let attribute: AnyAttribute
export let editor: AnySvelteComponent | undefined
export let allowRemove: boolean = false
export let forbidValue: boolean = false
const dispatch = createEventDispatcher()
@@ -96,19 +97,21 @@
/>
{:else}
<div class="w-full">
<svelte:component
this={editor}
label={attribute?.label}
placeholder={attribute?.label}
kind={'ghost'}
size={'large'}
width={'100%'}
justify={'left'}
type={attribute?.type}
{value}
{onChange}
{focus}
/>
{#if !forbidValue}
<svelte:component
this={editor}
label={attribute?.label}
placeholder={attribute?.label}
kind={'ghost'}
size={'large'}
width={'100%'}
justify={'left'}
type={attribute?.type}
{value}
{onChange}
{focus}
/>
{/if}
</div>
{/if}
<div class="button flex-row-center">