Browse Source
adds a empty state for no components added in the repeater
gh-pages
kevmodrome
6 years ago
No known key found for this signature in database
GPG Key ID: 828D8FE4D235B551
2 changed files with
6 additions and
2 deletions
-
packages/client/src/components/Component.svelte
-
packages/standard-components/src/List.svelte
|
|
@ -29,7 +29,7 @@ |
|
|
$builderStore.previewType === "layout" || screenslotContext |
|
|
$builderStore.previewType === "layout" || screenslotContext |
|
|
|
|
|
|
|
|
// Update component context |
|
|
// Update component context |
|
|
$: componentStore.set({ id, styles: { ...styles, id, allowSelection } }) |
|
|
$: componentStore.set({ id, children: children.length, styles: { ...styles, id, allowSelection } }) |
|
|
|
|
|
|
|
|
// Gets the component constructor for the specified component |
|
|
// Gets the component constructor for the specified component |
|
|
const getComponentConstructor = component => { |
|
|
const getComponentConstructor = component => { |
|
|
|
|
|
@ -28,7 +28,11 @@ |
|
|
{#if rows.length > 0} |
|
|
{#if rows.length > 0} |
|
|
{#each rows as row} |
|
|
{#each rows as row} |
|
|
<DataProvider {row}> |
|
|
<DataProvider {row}> |
|
|
<slot /> |
|
|
{#if $component.children === 0} |
|
|
|
|
|
<p>Add some components to.</p> |
|
|
|
|
|
{:else} |
|
|
|
|
|
<slot /> |
|
|
|
|
|
{/if} |
|
|
</DataProvider> |
|
|
</DataProvider> |
|
|
{/each} |
|
|
{/each} |
|
|
{:else} |
|
|
{:else} |
|
|
|