Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
API 文档说:
如果不提供layout或layoutName属性,则不推荐使用指定组件的templateName 。
那么组件的模板和布局有什么区别呢?在什么情况下我们需要同时指定模板和布局?
看起来该模板是布局的{{yield}}部分?
您提供的链接不包含标记的文本 - 它可能已更改,因此不确定上下文是什么。但本质上,布局将用作另一个模板的“yield”部分。(一个模板可以使用多个布局页面)