Mod Creation/Reusable Components with PetiteVue: Difference between revisions

no edit summary
(Created page with "Melvor Idle ships with [https://github.com/vuejs/petite-vue PetiteVue] for mods to use to create reusable HTML components. The documentation from the [https://github.com/vuejs/petite-vue official GitHub page] in addition to the [https://vuejs.org/guide/introduction.html full Vue.js documentation] (for clarity on definitions and what the PetiteVue directives do - there are many full Vue.js features that are unavailable) may assist in using the PetiteVue library. However,...")
 
No edit summary
Line 179: Line 179:
  <nowiki><!-- templates.html -->
  <nowiki><!-- templates.html -->
<template id="block-component">
<template id="block-component">
   <div class="block>
   <div class="block">
     <div class="block-header" v-scope="BlockHeader(headerProps)"></div>
     <div class="block-header" v-scope="BlockHeader(headerProps)"></div>
     <div class="block-content" v-scope="BlockContent(contentProps)"></div>
     <div class="block-content" v-scope="BlockContent(contentProps)"></div>
Line 186: Line 186:


<template id="block-header">
<template id="block-header">
   <h3 class="block-title>{{ title }}</h3>
   <h3 class="block-title">{{ title }}</h3>
</template>
</template>


91

edits