@deot/docs-playground 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs +706 -199
- package/dist/index.d.ts +3 -0
- package/dist/index.js +703 -199
- package/dist/index.style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ const files = ref({
|
|
|
49
49
|
| `viewport` | `'auto' \| number \| [number, number]` | `'auto'` | 运行时宽度,或固定宽高。 |
|
|
50
50
|
| `viewportOptions` | `PlaygroundViewport[]` | `['auto', 375]` | 可切换的视口列表。 |
|
|
51
51
|
| `styleless` | `boolean` | `false` | 只渲染无工具栏的运行时预览。 |
|
|
52
|
+
| `expand` | `true \| number` | `undefined` | 开启预览高度展开;未传不显示控件;`true` 展开到剩余视口;正数为目标高度(px)。 |
|
|
52
53
|
| `options` | `PlaygroundOptions` | `{}` | 传给 Vue REPL store 的实例级选项;`cdnURL` 会同时作用于预览样式和默认 import map。 |
|
|
53
54
|
| `previewOptions` | `SandboxProps['previewOptions']` | `undefined` | 传给当前 iframe 的 preview 选项。 |
|
|
54
55
|
| `locale` | `Language` | `en-US` | 界面语言;未传入时使用上层 Locale Provider。 |
|