SOURCE

console 命令行工具 X clear

                    
>
console
Vue.component('my-list', {
  template: `
<div class="container">
  <header>
    <slot name="header"></slot>
  </header>
  <main>
    <slot></slot>
  </main>
  <footer>
    <slot name="footer"></slot>
  </footer>
</div>
  `,
  props: ['title'] 
});


let app = new Vue({
  el: '#app'
});
 <div id="app">
  <template v-slot:header>
    <h1>Here might be a page title</h1>
  </template>

  <p>A paragraph for the main content.</p>
  <p>And another one.</p>

  <template v-slot:footer>
    <p>Here's some contact info</p>
  </template>
 </div>

本项目引用的自定义外部资源