Permalink
Browse files

feat(docs): Native event capturing docs (#605)

* feat(docs): Moved .native from componetdoc.vue to _component.vue

Moved native event modifier from componentdoc.vue to _component.vue so that the card only appears once per page.
  • Loading branch information...
tmorehouse committed Jul 1, 2017
1 parent 843057e commit c2c200bed13966f53e71db799266ebe4abfedd15
Showing with 10 additions and 10 deletions.
  1. +0 −10 docs/nuxt/components/componentdoc.vue
  2. +10 −0 docs/nuxt/pages/docs/components/_component.vue
@@ -33,16 +33,6 @@
</template>
</div>
<b-card class="my-4">
<small class="font-italic">
Trying to get native browser events working on your component? Use the <code>.native</code>
modifier to capture browser native events such as: <code>@click.native="..."</code>,
<code>@mouseover.native="..."</code>, etc. See the the official
<a href="https://vuejs.org/v2/guide/components.html#Binding-Native-Events-to-Components">Vue.js docuementation</a>
for more information.
</small>
</b-card>
</template>
<style scoped>
@@ -5,6 +5,16 @@
<componentdoc :component="meta.component" :events="meta.events" :slots="meta.slots"></componentdoc>
<b-card class="my-4">
<small class="font-italic">
Trying to get native browser events working on your component? Use the <code>.native</code>
modifier to capture browser native events such as: <code>@click.native="..."</code>,
<code>@mouseover.native="..."</code>, etc. See the the official
<a href="https://vuejs.org/v2/guide/components.html#Binding-Native-Events-to-Components">Vue.js docuementation</a>
for more information.
</small>
</b-card>
<componentdoc :component="component" :key="component" v-for="component in meta.components"></componentdoc>
</div>
</template>

0 comments on commit c2c200b

Please sign in to comment.