Skip to content

Commit 0b81918

Browse files
committed
update images + add figma links
1 parent ebdfc65 commit 0b81918

File tree

12 files changed

+17
-82
lines changed

12 files changed

+17
-82
lines changed

src/guide/built-ins/transition.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ There are six classes applied for enter / leave transitions.
8585

8686
![Transition Diagram](./images/transition-classes.png)
8787

88+
<!-- https://www.figma.com/file/rlOv0ZKJFFNA9hYmzdZv3S/Transition-Classes -->
89+
8890
1. `v-enter-from`: Starting state for enter. Added before the element is inserted, removed one frame after the element is inserted.
8991

9092
2. `v-enter-active`: Active state for enter. Applied during the entire entering phase. Added before the element is inserted, removed when the transition/animation finishes. This class can be used to define the duration, delay and easing curve for the entering transition.
1.28 KB
Loading
328 Bytes
Loading

src/guide/components/images/slots.png

979 Bytes
Loading

src/guide/components/provide-inject.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ Usually, when we need to pass data from the parent to child component, we use [p
1212

1313
![props drilling diagram](./images/props-drilling.png)
1414

15+
<!-- https://www.figma.com/file/yNDTtReM2xVgjcGVRzChss/props-drilling -->
16+
1517
Notice although the `<Footer>` component may not care about these props at all - but it still needs to declare and pass them along just so `<DeepChild>` can access them. If there is a longer parent chain, more components would be affected along the way. This is called "props drilling" and definitely isn't fun to deal with.
1618

1719
We can solve props drilling with `provide` and `inject`. A parent component can serve as a **dependency provider** for all its descendants. Any component in the descendant tree, regardless of how deep it is, can **inject** dependencies provided by components up in its parent chain.
1820

1921
![Provide/inject scheme](./images/provide-inject.png)
2022

23+
<!-- https://www.figma.com/file/PbTJ9oXis5KUawEOWdy2cE/provide-inject -->
24+
2125
## Provide
2226

2327
<div class="composition-api">

src/guide/components/slots.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ The `<slot>` element is a **slot outlet** that indicates where the parent-provid
3030

3131
![slot diagram](./images/slots.png)
3232

33+
<!-- https://www.figma.com/file/LjKTYVL97Ck6TEmBbstavX/slot -->
34+
3335
And the final rendered DOM:
3436

3537
```html
@@ -213,6 +215,8 @@ To pass a named slot, we need to use a `<template>` element with the `v-slot` di
213215

214216
![named slots diagram](./images/named-slots.png)
215217

218+
<!-- https://www.figma.com/file/2BhP8gVZevttBu9oUmUUyz/named-slot -->
219+
216220
Here's the code passing content to all three slots to `<BaseLayout>` using the shorthand syntax:
217221

218222
```vue-html

src/guide/essentials/component-basics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Components allow us to split the UI into independent and reusable pieces, and th
44

55
![Component Tree](./images/components.png)
66

7+
<!-- https://www.figma.com/file/qa7WHDQRWuEZNRs7iZRZSI/components -->
8+
79
This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component. Vue also plays nicely with native Web Components. If you are curious about the relationship between Vue Components and native Web Components, [read more here](http://localhost:3000/guide/extras/web-components.html).
810

911
## Defining a Component
28.6 KB
Loading
115 KB
Loading

src/guide/essentials/images/lifecycle.svg

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)