use slots in refnav
This commit is contained in:
parent
3e404169ff
commit
0ffdf1aeab
|
@ -1,6 +1,8 @@
|
||||||
Vue.component('rnav', {
|
Vue.component('rnav', {
|
||||||
template: `
|
template: `
|
||||||
<span class="rnav" v-on:click="toggle" v-bind:class="{ 'tagged': tag.isTrue}"></span>
|
<span class="rnav" v-on:click="toggle" v-bind:class="{ 'tagged': tag.isTrue}">
|
||||||
|
<slot></slot>
|
||||||
|
</span>
|
||||||
`,
|
`,
|
||||||
props : ['tag'],
|
props : ['tag'],
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue