Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged 伙伴们

0 votes
303 views
1 answer
    <template><div><slot></slot></div></template> 某个组件的模板如上述代码,由于组件的模板必须要有一个根元素,因此上述代码中的 div 不能少,如果这个组件被套在 ul 下,并进行列表循环,slot 的内容是 ... 不期望生成这个 div 这种怎么破? 因此,伙伴们组件模板的内容由外部决定时,你们是怎么处理的呢?...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...