You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Définit des alias pour les touches du clavier avec `v-on`.
120
127
121
128
### performance
@@ -124,7 +131,7 @@ type: api
124
131
125
132
-**Type:**`boolean`
126
133
127
-
-**Default:**`false`
134
+
-**Default:**`false (from 2.2.3)`
128
135
129
136
-**Usage**:
130
137
@@ -642,7 +649,7 @@ if (version === 2) {
642
649
An alternative to string templates allowing you to leverage the full programmatic power of JavaScript. The render function receives a `createElement` method as it's first argument used to create `VNode`s.
643
650
644
651
If the component is a functional component, the render function also receives an extra argument `context`, which provides access to contextual data since functional components are instance-less.
645
-
652
+
646
653
<pclass="tip">The `render` function has priority over the render function compiled from `template` option or in-DOM HTML template of the mounting element which is specified by the `el` option.</p>
647
654
648
655
-**Voir aussi :**
@@ -1048,7 +1055,12 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
1048
1055
},
1049
1056
props: {
1050
1057
// this allows using the `value` prop for a different purpose
1051
-
value:String
1058
+
value:String,
1059
+
// use `checked` as the prop which take the place of `value`
1060
+
checked: {
1061
+
type:Number,
1062
+
default:0
1063
+
}
1052
1064
},
1053
1065
// ...
1054
1066
})
@@ -1772,6 +1784,9 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
1772
1784
<!-- prop binding. "prop" must be declared in my-component. -->
1773
1785
<my-component :prop="someThing"></my-component>
1774
1786
1787
+
<!-- pass down parent props in common with a child component -->
> This example uses [deepstreamHub](https://deepstreamhub.com/) to synchronize realtime data, send events and make remote procedure calls between clients (you can try opening it in multiple browser windows).
Copy file name to clipboardExpand all lines: src/v2/examples/firebase.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Firebase + Validation
3
3
type: examples
4
-
order: 2
4
+
order: 10
5
5
---
6
6
7
7
> Cet exemple utilise [Firebase](https://firebase.google.com/) comme serveur de données persistantes et de synchronisation clientes en temps réel (vous pouvez essayer cela en ouvrant de multiples onglets dans votre navigateur). Il réalise également une validation instantanée en utilisant les propriétés calculées et déclenche des transitions CSS quand des éléments sont ajoutés/supprimés.
Copy file name to clipboardExpand all lines: src/v2/examples/todomvc.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: TodoMVC
3
3
type: examples
4
-
order: 9
4
+
order: 11
5
5
---
6
6
7
7
> Ceci est une spécification pleinement valide pour une implémentation TodoMVC en moins de 120 lignes effectives (excluant les commentaires et sauts de ligne).
Copy file name to clipboardExpand all lines: src/v2/guide/comparison.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ Dans Vue, nous avons également des [fonctions de rendu](https://vuejs.org/v2/gu
139
139
<template>
140
140
<divclass="list-container">
141
141
<ulv-if="items.length">
142
-
<liv-for="item in items">
142
+
<liv-for="item in items":key="item.id">
143
143
{{ item.name }}
144
144
</li>
145
145
</ul>
@@ -199,7 +199,7 @@ Une autre différence importante entre ces offres est que les bibliothèques acc
199
199
200
200
Pour finir, Vue offre un [outil de génération de projet en ligne de commande](https://github.com/vuejs/vue-cli) qui rend trivial le démarrage d'un nouveau projet en utilisant le système de système de build de votre choix, incluant [Webpack](https://github.com/vuejs-templates/webpack), [Browserify](https://github.com/vuejs-templates/browserify), ou même sans [système de création](https://github.com/vuejs-templates/simple). React fait aussi des progrès de ce côté là avec [create-react-app](https://github.com/facebookincubator/create-react-app), mais a pour le moment quelques limitations :
201
201
202
-
- Il ne permet aucune configuration durant la génération du projet, là où les templates de projet Vue permettent une personnalisation à la façon Yeoman.
202
+
- Il ne permet aucune configuration durant la génération du projet, là où les templates de projet Vue permettent une personnalisation à la façon [Yeoman](http://yeoman.io/).
203
203
- Il ne propose qu'un seul template qui présume que vous concevez une application web monopage, là où Vue offre une large variété de templates pour différents objectifs et outils de *build*.
204
204
- Il ne permet pas la génération de projets depuis des templates faits par les utilisateurs, ce qui peut être particulièrement utile en entreprise avec des conventions pré-établies.
Copy file name to clipboardExpand all lines: src/v2/guide/render-function.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ createElement(
121
121
122
122
### The Data Object In-Depth
123
123
124
-
One thing to note: similar to how `v-bind:class` and `v-bind:style` have special treatment in templates, they have their own top-level fields in VNode data objects.
124
+
One thing to note: similar to how `v-bind:class` and `v-bind:style` have special treatment in templates, they have their own top-level fields in VNode data objects. This object also allows you to bind normal HTML attributes as well as DOM properties such as `innerHTML` (this would replace the `v-html` directive):
0 commit comments