Skip to content

幻灯片布局

Slidev 中的布局用于定义每张幻灯片的结构。它们是包装幻灯片内容的 Vue 组件。

使用布局

要使用布局,你可以在幻灯片的 frontmatter 中指定它:

md
---
layout: quote
---

A quote from someone

默认情况下,第一张幻灯片的布局是 cover,其余是 default

布局按以下顺序加载,后加载的将覆盖之前的:

  1. 默认布局。参见内置布局
  2. 主题提供的布局
  3. 插件提供的布局
  4. layouts 目录中的自定义布局
另请参阅:
✨ 布局的插槽语法糖

编写布局

📖 编写布局

Released under the MIT License.