Skip to content

Instantly share code, notes, and snippets.

@cannap
Last active April 17, 2019 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cannap/323b55c5d09858d517c9bf536ba01543 to your computer and use it in GitHub Desktop.
Save cannap/323b55c5d09858d517c9bf536ba01543 to your computer and use it in GitHub Desktop.
Child
<template>
<no-ssr>
<vuetable
ref="vuetable"
:api-url="apiURL"
:slots="$slots"
v-bind="tableOptions"
v-on="$listeners" />
<!-- here i want to use the slots from the other components -->
</no-ssr>
</template>
<-- Parent -->
<div class="wallets">
<s-table
:path="path"
:options="tableOptions"
@vuetable:row-clicked="clicked">
<div slot="currency" slot-scope="props">
<span v-if="props.rowData.gender === 'M'" class="ui teal label"><i class="large man icon"></i>Male</span>
<span v-else class="ui pink label"><i class="large woman icon"></i>Female</span>
</div>
</s-table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment