mirror of https://github.com/Budibase/budibase.git
5 changed files with 59 additions and 17 deletions
@ -1,12 +1,10 @@ |
|||
<script> |
|||
export let _bb |
|||
export let isPrimaryAction = false |
|||
export let onClick = () => {} |
|||
|
|||
let cardBody |
|||
let cls = isPrimaryAction ? "mdc-card__primary-action" : "" |
|||
|
|||
$: cardBody && _bb.attachChildren(cardBody) |
|||
</script> |
|||
|
|||
<div bind:this={cardBody} class={cls} on:click={onClick} /> |
|||
<div bind:this={cardBody} class="mdc-card__primary-action" on:click={onClick} /> |
|||
|
|||
Loading…
Reference in new issue