Skip to content

Commit f42fd89

Browse files
committed
Merge remote-tracking branch 'upstream/master'
# Conflicts: # src/v2/api/index.md # src/v2/guide/comparison.md Signed-off-by: Bruno Lesieur <[email protected]>
2 parents 7e98851 + 3271b97 commit f42fd89

File tree

14 files changed

+54
-16
lines changed

14 files changed

+54
-16
lines changed

src/images/fancygrid.png

1.88 KB
Loading

src/support-vuejs/index.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ However, the amount of effort needed to maintain and develop new features for th
1616
### Gold ($500/mo)
1717

1818
<p style="text-align: center; margin-top: 0; margin-bottom: 60px" class="sponsors-page">
19-
<a href="https://jsfiddle.net">
19+
<a href="https://deepstreamhub.com" target="_blank" style="width:130px;top:1px">
20+
<img src="/images/deepstream.png" style="width:130px">
21+
</a><a href="https://jsfiddle.net">
2022
<img src="/images/jsfiddle.png">
2123
</a><a href="https://laravel.com">
2224
<img src="/images/laravel.png">
@@ -30,14 +32,16 @@ However, the amount of effort needed to maintain and develop new features for th
3032
<img src="/images/monterail.png">
3133
</a><a href="https://www.trisoft.ro/" target="_blank">
3234
<img src="/images/trisoft.png">
33-
</a><a href="http://actualize.co" target="_blank" style="width:180px">
34-
<img src="/images/actualize.png" style="width:180px">
3535
</a><a href="https://www.2mhost.com/" target="_blank">
3636
<img src="/images/2mhost.png">
3737
</a><a href="https://vuejobs.com/?ref=vuejs" target="_blank" style="position:relative;top:6px">
3838
<img src="/images/vuejobs.svg">
3939
</a><a href="https://leanpub.com/vuejs2" target="_blank">
4040
<img src="/images/tmvuejs2.png">
41+
</a><a href="https://fancygrid.com" target="_blank">
42+
<img src="https://fancygrid.com/logo/logo.png">
43+
</a><a href="https://component.io" target="_blank" style="width:150px">
44+
<img src="/images/component_io.png" style="width:150px">
4145
</a>
4246
</p>
4347

src/v2/api/index.md

+19-4
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,22 @@ type: api
107107

108108
- **Utilisation :**
109109

110-
``` js
110+
```js
111111
Vue.config.keyCodes = {
112112
v: 86,
113113
f1: 112,
114+
// camelCase won`t work
114115
mediaPlayPause: 179,
116+
// instead you can use kebab-case with double quatation mark
117+
"media-play-pause" : 179,
115118
up: [38, 87]
116119
}
117120
```
118121

122+
```html
123+
<input type="text" @keyup.media-play-pause="method">
124+
```
125+
119126
Définit des alias pour les touches du clavier avec `v-on`.
120127

121128
### performance
@@ -124,7 +131,7 @@ type: api
124131
125132
- **Type:** `boolean`
126133

127-
- **Default:** `false`
134+
- **Default:** `false (from 2.2.3)`
128135

129136
- **Usage**:
130137

@@ -642,7 +649,7 @@ if (version === 2) {
642649
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.
643650

644651
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+
646653
<p class="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>
647654

648655
- **Voir aussi :**
@@ -1048,7 +1055,12 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
10481055
},
10491056
props: {
10501057
// 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+
}
10521064
},
10531065
// ...
10541066
})
@@ -1772,6 +1784,9 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
17721784
<!-- prop binding. "prop" must be declared in my-component. -->
17731785
<my-component :prop="someThing"></my-component>
17741786
1787+
<!-- pass down parent props in common with a child component -->
1788+
<child-component v-bind.prop="$props"></child-component>
1789+
17751790
<!-- XLink -->
17761791
<svg><a :xlink:special="foo"></a></svg>
17771792
```

src/v2/examples/deepstream.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Realtime with deepstreamHub
3+
type: examples
4+
order: 9
5+
---
6+
7+
> 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).
8+
9+
<iframe width="100%" height="500" src="https://jsfiddle.net/yyx990803/ff0sp9hw/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

src/v2/examples/firebase.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Firebase + Validation
33
type: examples
4-
order: 2
4+
order: 10
55
---
66

77
> 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.

src/v2/examples/hackernews.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Clone de HackerNews
33
type: examples
4-
order: 10
4+
order: 12
55
---
66

77
> Ceci est un build clone du site HackerNews (HN) utilisant l'API Firebase HN officielle, Vue 2.0 + vue-router + vuex, avec un rendu côté serveur.

src/v2/examples/select2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ order: 8
66

77
> Dans cet exemple nous utilisons un plugin jQuery tiers (select2) en le plaçant à l'intérieur d'un composant personnalisé.
88
9-
<iframe width="100%" height="500" src="https://jsfiddle.net/yyx990803/fruqrvdL/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
9+
<iframe width="100%" height="500" src="https://jsfiddle.net/fruqrvdL/456/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0"></iframe>

src/v2/examples/todomvc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: TodoMVC
33
type: examples
4-
order: 9
4+
order: 11
55
---
66

77
> 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).

src/v2/guide/comparison.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Dans Vue, nous avons également des [fonctions de rendu](https://vuejs.org/v2/gu
139139
<template>
140140
<div class="list-container">
141141
<ul v-if="items.length">
142-
<li v-for="item in items">
142+
<li v-for="item in items" :key="item.id">
143143
{{ item.name }}
144144
</li>
145145
</ul>
@@ -199,7 +199,7 @@ Une autre différence importante entre ces offres est que les bibliothèques acc
199199

200200
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 :
201201

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/).
203203
- 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*.
204204
- 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.
205205

src/v2/guide/events.md

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ To address this problem, Vue provides **event modifiers** for `v-on`. Recall tha
186186
<form v-on:submit.prevent></form>
187187

188188
<!-- use capture mode when adding the event listener -->
189+
<!-- i.e. an event targeting an inner element is handled here before being handled by that element -->
189190
<div v-on:click.capture="doThis">...</div>
190191

191192
<!-- only trigger handler if event.target is the element itself -->

src/v2/guide/render-function.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ createElement(
121121

122122
### The Data Object In-Depth
123123

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):
125125

126126
``` js
127127
{

themes/vue/layout/partials/sponsors.ejs

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<img style="width: 180px" src="<%- url_for("/images/stdlib.png") %>">
33
</a>
44
<br>
5+
<a href="https://deepstreamhub.com" target="_blank" style="width:130px;top:1px">
6+
<img src="<%- url_for("/images/deepstream.png") %>" style="width:130px">
7+
</a>
58
<a href="https://jsfiddle.net/" target="_blank">
69
<img src="<%- url_for("/images/jsfiddle.png") %>">
710
</a>
@@ -26,9 +29,15 @@
2629
<a href="https://www.2mhost.com/" target="_blank" style="width:90px">
2730
<img src="<%- url_for("/images/2mhost.png") %>" style="width:90px">
2831
</a>
29-
<a href="https://vuejobs.com/?ref=vuejs" target="_blank" style="width:90px;top:5px">
30-
<img src="<%- url_for("/images/vuejobs.svg") %>" style="width:90px">
32+
<a href="https://vuejobs.com/?ref=vuejs" target="_blank" style="width:80px;top:4px">
33+
<img src="<%- url_for("/images/vuejobs.svg") %>" style="width:80px">
3134
</a>
3235
<a href="https://leanpub.com/vuejs2" target="_blank">
3336
<img src="<%- url_for("/images/tmvuejs2.png") %>">
3437
</a>
38+
<a href="https://fancygrid.com" target="_blank" style="width:110px;">
39+
<img src="<%- url_for("/images/fancygrid.png") %>" style="width:110px">
40+
</a>
41+
<a href="https://component.io" target="_blank" style="width:120px;top:1px">
42+
<img src="<%- url_for("/images/component_io.png") %>" style="width:120px">
43+
</a>
14.8 KB
Loading
31.5 KB
Loading

0 commit comments

Comments
 (0)