--- title: \>- To avoid scope ambiguity, the default slot should also use <template> syntax when there are other na url: \>- https://yayi.site/archives/toavoidscopeambiguitythedefaultslotshouldalsousetemplatesyntaxwhenthereareotherna categories: 前端 cover: 'https://cdn.jsdelivr.net/gh/yan-bolan/picbed/img/动漫/結城友奈は勇者である/東郷·美森.png' tags: 'vue slot,slot,插槽:' abbrlink: 60c33bd2 date: 2020-10-04 19:05:32 updated: 2021-05-14 22:04:01 --- ### 具名插槽 \[https://cn.vuejs.org/v2/guide/components-slots.html\](https://cn.vuejs.org/v2/guide/components-slots.html) \`\`\`html // slot="" 已经废弃 。!!!!
Here might be a page title
==========================
A paragraph for the main content.
And another one.
Here's some contact info
\`\`\` ==base-layout 是一个子组件。内容如下: \`\`\`html
// 当有多个slot 并且name 时 上面的就要写多个tempelte 了 \`\`\`
原创
To avoid scope ambiguity, the default slot should also use <template> syntax when there are other na-toavoidscopeambiguitythedefaultslotshouldalsousetemplatesyntaxwhenthereareotherna
本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
评论交流
欢迎留下你的想法