Slot of applet components

1. The writing method on the page, write in the middle of the referenced component, if there are multiple slots with slot="", mark it, if there are multiple slots, you do not need to write slot=""

2. Writing in the component

3. Multiple slots need to be defined in the component js, and there is no need to define a single slot  

Guess you like

Origin blog.csdn.net/xiaoyun888_/article/details/109739777