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