create-slidev 0.48.0-beta.15 → 0.48.0-beta.17
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/package.json +1 -1
- package/template/package.json +1 -1
- package/template/slides.md +17 -0
package/package.json
CHANGED
package/template/package.json
CHANGED
package/template/slides.md
CHANGED
|
@@ -16,6 +16,10 @@ defaults:
|
|
|
16
16
|
transition: slide-left
|
|
17
17
|
title: Welcome to Slidev
|
|
18
18
|
mdc: true
|
|
19
|
+
monaco: true
|
|
20
|
+
monacoTypesSource: local # or cdn or none
|
|
21
|
+
monacoTypesAdditionalPackages:
|
|
22
|
+
- '@slidev/types'
|
|
19
23
|
---
|
|
20
24
|
|
|
21
25
|
# Welcome to Slidev
|
|
@@ -313,6 +317,7 @@ You can add `v-click` to elements to add a click animation.
|
|
|
313
317
|
<div v-click>
|
|
314
318
|
|
|
315
319
|
This shows up when you click the slide:
|
|
320
|
+
|
|
316
321
|
```html
|
|
317
322
|
<div v-click>This shows up when you click the slide.</div>
|
|
318
323
|
```
|
|
@@ -530,6 +535,18 @@ src: ./pages/multiple-entries.md
|
|
|
530
535
|
hide: false
|
|
531
536
|
---
|
|
532
537
|
|
|
538
|
+
---
|
|
539
|
+
|
|
540
|
+
# Monaco Editor
|
|
541
|
+
|
|
542
|
+
```ts {monaco}
|
|
543
|
+
import { ref } from 'vue'
|
|
544
|
+
import hello from './external'
|
|
545
|
+
|
|
546
|
+
const code = ref('const a = 1')
|
|
547
|
+
hello()
|
|
548
|
+
```
|
|
549
|
+
|
|
533
550
|
---
|
|
534
551
|
layout: center
|
|
535
552
|
class: text-center
|