budibase/packages/builder/src/components/userInterface/DesignView.svelte

18 lines
468 B
Svelte
Raw Normal View History

2020-05-04 17:07:04 +02:00
<script>
import PropertyGroup from "./PropertyGroup.svelte"
export let panelDefinition = {}
export let componentInstance = {}
export let componentDefinition = {}
const getProperties = prop => panelDefinition.props[prop]
$: props = !!panelDefinition.props && Object.keys(panelDefinition.props)
</script>
{#each props as prop}
<PropertyGroup
title={prop}
content={getProperties(prop)}
{componentDefinition}
{componentInstance} />
{/each}