About vue slot issu

div id= "app" >

    <child slot="head">
        <!-- 

miqi

--> i am head </child> <child slot="foot"> i am foot </child> </div> <script src="./vue.js"></script> <script> Vue.component("child",{ props: ["content"], template: `<div> <slot name="head"></slot>

hellow

<slot></slot> <slot name="foot"></slot> </div>` }) var vm = new Vue({ el: "-sharpapp" }) </script>

hellow


because there are two child components above, each child has a

hello

element. You can check

with vue devtools.

clipboard.png


it is right to appear on both sides according to your way of writing, and the usage you want is like this:

<child>
  <div slot="head">I am head</div>
  <div slot="foot">I am head</div>
  
</child>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea6c2e-47be3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea6c2e-47be3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?