演示区

使用

Stackblitz

::playground
---
provider: stackblitz
repo: nuxt/starter
branch: v3
file: app.vue
---
::

CodeSandbox

::playground
---
provider: codesandbox
repo: nuxt/starter
branch: v3
file: app.vue
---
::

属性

provider'stackblitz' | 'codesandbox'
使用的提供商
repostring
GitHub 存储库名称 (例如 nuxt/starter)
branchstring
main
分支名称
idstring
仓库 ID (例如 Stackblitz 为 github-t1vjvm, Codesandbox 为 8hq5qn)
dirstring
''
要在演示区中打开的目录 (可选)
filestring
要打开的文件路径
titlestring
Playground
iframe 的标题

::