-
Notifications
You must be signed in to change notification settings - Fork 103
api/index.md 3/3 #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api/index.md 3/3 #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rien de capital. Je crois même pas une seul faute repéré. Bon travail !!!
src/v2/api/index.md
Outdated
|
||
- **Restriction :** previous sibling element must have `v-if` or `v-else-if`. | ||
- **Restriction :** l'élément précédent doit avoir une directive `v-if` or `v-else-if`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ou
src/v2/api/index.md
Outdated
|
||
- **Utilisation :** | ||
|
||
Denote the "else block" for `v-if` or a `v-if`/`v-else-if` chain. | ||
Dénote un bloc "else" pour `v-if` ou pour une chaîne `v-if`/`v-else-if`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
« else »
src/v2/api/index.md
Outdated
|
||
### v-else-if | ||
|
||
> New in 2.1.0+ | ||
> Nouveauté de la 2.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.1.0+
vuejs#1025
src/v2/api/index.md
Outdated
|
||
- **Utilisation :** | ||
|
||
Denote the "else if block" for `v-if`. Can be chained. | ||
Dénote un bloc "else if" pour `v-if`. Peut être enchaîné plusieurs fois. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
« else if »
|
||
``` html | ||
<div v-for="item in items" :key="item.id"> | ||
{{ item.text }} | ||
</div> | ||
``` | ||
|
||
<p class="tip">When used together with v-if, v-for has a higher priority than v-if. See the <a href="../guide/list.html#v-for-with-v-if">list rendering guide</a> for details.</p> | ||
<p class="tip">Quand utilisé conjointement avec v-if, v-for a une plus grande priorité que v-if. Consultez le <a href="../guide/list.html#v-for-with-v-if">guide de rendu de listes</a> pour plus de détails.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je mettrais des ` autour de v-if / v-for etc et proposerai une PR à l'original. Je peux le faire si tu veux.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c'est du HTML, il faut passer par des balises code. Je crois que c'est pour ça qu'il n'a pas pris la peine de le faire
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exact. Sur la page mergin.md
ils prennent la peine de le faire. Tu me laisses le point, je vois ça avec l'original plus tard.
- **Events:** | ||
- exposes the same events as `<transition>`. | ||
- **Événements:** | ||
- expose les mêmes événements que `<transition>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
évènements
src/v2/api/index.md
Outdated
@@ -2178,93 +2177,92 @@ if (version === 2) { | |||
</transition-group> | |||
``` | |||
|
|||
- **Voir aussi :** [Transitions: Entering, Leaving, and Lists](../guide/transitions.html) | |||
- **Voir aussi :** [Transitions: entrantes, sortantes et de listes](../guide/transitions.html) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transition :
src/v2/api/index.md
Outdated
|
||
- **Utilisation :** | ||
|
||
When wrapped around a dynamic component, `<keep-alive>` caches the inactive component instances without destroying them. Similar to `<transition>`, `<keep-alive>` is an abstract component: it doesn't render a DOM element itself, and doesn't show up in the component parent chain. | ||
Quand il entoure un composant dynamique, `<keep-alive>` met en cache les instances de composant inactives sans les détruire. Tout comme `<transition>`, `<keep-alive>` est un composant abstrait: le rendu ne donne pas d'élément supplémentaire dans le DOM, et il n'apparaît pas dans la chaîne de composants du parent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abstrait :
src/v2/api/index.md
Outdated
|
||
> In 2.2.0+ and above, `activated` and `deactivated` will fire for all nested components inside a `<keep-alive>` tree. | ||
> À partir de la 2.2.0, `activated` et `deactivated` se déclencheront pour tous les composants imbriqués dans une arborescence `<keep-alive>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Préférer « Dans la 2.2.0+ ».
PR l'original pour retirer "and above"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je garde "A partir de", c'est beaucoup plus explicite
<keep-alive> | ||
<comp-a v-if="a > 1"></comp-a> | ||
<comp-b v-else></comp-b> | ||
</keep-alive> | ||
|
||
<!-- used together with <transition> --> | ||
<!-- utilisé avec <transition> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mettre transition entre ` (PR l'original)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code, pas formattage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bon pour moi @sylvainpolletvillard ! Super boulot ! |
J'essaye de relire cela ce week-end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Félicitations pour ton travail, voici ma review
src/v2/api/index.md
Outdated
|
||
- **Détails :** | ||
|
||
Updates the element's `textContent`. If you need to update the part of `textContent`, you should use `{% raw %}{{ Mustache }}{% endraw %}` interpolations. | ||
Met à jour le contenu texte `textContent` de l'élément. Si vous n'avez besoin de mettre à jour qu'une partie de ce contenu, vous devriez utiliser les interpolations `{% raw %}{{ Mustache }}{% endraw %}`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Met à jour le contenu textuel (
textContent
)
src/v2/api/index.md
Outdated
|
||
- **Détails :** | ||
|
||
Updates the element's `innerHTML`. **Note that the contents are inserted as plain HTML - they will not be compiled as Vue templates**. If you find yourself trying to compose templates using `v-html`, try to rethink the solution by using components instead. | ||
Met à jour le HTML interne `innerHTML` de l'élément. **Notez que les contenus sont insérés en pur HTML - ils ne seront pas compilés en tant que templates Vue**. Si vous vous retrouvez à vouloir composer des templates avec `v-html`, essayez de repenser la solution en utilisant des composants à la place. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Met à jour le contenu HTML (
innerHTML
)
src/v2/api/index.md
Outdated
|
||
- **Utilisation :** | ||
|
||
Render the element or template block multiple times based on the source data. The directive's value must use the special syntax `alias in expression` to provide an alias for the current element being iterated on: | ||
Fait le rendu de l'élément ou du bloc template plusieurs fois selon les données source. La valeur de la directive doit utiliser la syntaxe spéciale `alias in expression` pour fournir un alias à l'élément courant dans l'itération: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
les données sources
ou
la donnée source
src/v2/api/index.md
Outdated
|
||
<!-- pass down parent props in common with a child component --> | ||
<child-component v-bind="$props"></child-component> | ||
<!-- transmettre les props parentes à un composant enfant --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transmet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je mets les autres verbes précédent à l'indicatif également
|
||
``` html | ||
<!-- vm.$refs.p will be the DOM node --> | ||
<!-- vm.$refs.p sera le nœud du DOM --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce qu'ici on entoure vm.$refs.p
de backquotes ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
il n'y a pas de formatage dans les blocs code donc ça ne sert à rien
<p ref="p">hello</p> | ||
|
||
<!-- vm.$refs.child will be the child comp instance --> | ||
<child-comp ref="child"></child-comp> | ||
<!-- vm.$refs.enfant sera l'instance du composant enfant --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce qu'ici on entoure vm.$refs.enfant
de backquotes ?
@@ -2143,32 +2142,32 @@ if (version === 2) { | |||
... | |||
methods: { | |||
transitionComplete: function (el) { | |||
// for passed 'el' that DOM element as the argument, something ... | |||
// pour l'élément du DOM 'el' passé en argument, faire quelque-chose... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce qu'ici on entoure el
de backquotes ?
retours de @Kocal pris en compte. Je pense qu'on est bon pour merge |
Pfiou ça aura pris de longs mois mais j'ai enfin terminé la traduction de la plus longue section du site.
Bon courage aux relecteurs