create-slidev 0.48.0-beta.11 → 0.48.0-beta.13
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 +2 -2
- package/template/slides.md +63 -0
package/package.json
CHANGED
package/template/package.json
CHANGED
package/template/slides.md
CHANGED
|
@@ -166,6 +166,69 @@ doubled.value = 2
|
|
|
166
166
|
}
|
|
167
167
|
</style>
|
|
168
168
|
|
|
169
|
+
<!--
|
|
170
|
+
Notes can also sync with clicks
|
|
171
|
+
|
|
172
|
+
[click] This will be highlighted after the first click
|
|
173
|
+
|
|
174
|
+
[click] Highlighted with `count = ref(0)`
|
|
175
|
+
|
|
176
|
+
[click:3] Last click (skip two clicks)
|
|
177
|
+
-->
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
# Shiki Magic Move
|
|
182
|
+
|
|
183
|
+
(this feature is still experimental)
|
|
184
|
+
|
|
185
|
+
Powered by [shiki-magic-move](https://shiki-magic-move.netlify.app/), Slidev supports animations across multiple code snippets.
|
|
186
|
+
|
|
187
|
+
Add multiple code blocks and wrap them with <code>````md magic-move</code> (four backticks) to enable the magic move. For example:
|
|
188
|
+
|
|
189
|
+
````md magic-move
|
|
190
|
+
```ts
|
|
191
|
+
const author = reactive({
|
|
192
|
+
name: 'John Doe',
|
|
193
|
+
books: [
|
|
194
|
+
'Vue 2 - Advanced Guide',
|
|
195
|
+
'Vue 3 - Basic Guide',
|
|
196
|
+
'Vue 4 - The Mystery'
|
|
197
|
+
]
|
|
198
|
+
})
|
|
199
|
+
```
|
|
200
|
+
```ts
|
|
201
|
+
export default {
|
|
202
|
+
data() {
|
|
203
|
+
return {
|
|
204
|
+
author: {
|
|
205
|
+
name: 'John Doe',
|
|
206
|
+
books: [
|
|
207
|
+
'Vue 2 - Advanced Guide',
|
|
208
|
+
'Vue 3 - Basic Guide',
|
|
209
|
+
'Vue 4 - The Mystery'
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
```ts
|
|
217
|
+
export default {
|
|
218
|
+
data: () => ({
|
|
219
|
+
author: {
|
|
220
|
+
name: 'John Doe',
|
|
221
|
+
books: [
|
|
222
|
+
'Vue 2 - Advanced Guide',
|
|
223
|
+
'Vue 3 - Basic Guide',
|
|
224
|
+
'Vue 4 - The Mystery'
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
})
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
````
|
|
231
|
+
|
|
169
232
|
---
|
|
170
233
|
|
|
171
234
|
# Components
|