1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Fix lag when swapping between settings and design options

This commit is contained in:
Andrew Kingston 2020-12-23 09:56:18 +00:00
parent fb3a3d504e
commit f8e6dd99ef

View file

@ -14,17 +14,19 @@
</script>
<DetailSummary {name} on:open show={open} thin>
<div>
{#each properties as props}
<PropertyControl
label={props.label}
control={props.control}
key={props.key}
value={style[props.key]}
onChange={(key, value) => onStyleChanged(styleCategory, key, value)}
props={{ ...excludeProps(props, ['control', 'label']) }} />
{/each}
</div>
{#if open}
<div>
{#each properties as props}
<PropertyControl
label={props.label}
control={props.control}
key={props.key}
value={style[props.key]}
onChange={(key, value) => onStyleChanged(styleCategory, key, value)}
props={{ ...excludeProps(props, ['control', 'label']) }} />
{/each}
</div>
{/if}
</DetailSummary>
<style>