Skip to content

Commit 53d5b2c

Browse files
committed
update docs for 1.0.17
1 parent 0ad5e16 commit 53d5b2c

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

src/api/index.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,6 @@ type: api
8484

8585
When async mode is off, Vue will perform all DOM updates synchronously upon detecting data change. This may help with debugging in some scenarios, but could also cause degraded performance and affect the order in which watcher callbacks are called. **`async: false` is not recommended in production.**
8686

87-
### convertAllProperties
88-
89-
- **Type:** `Boolean`
90-
91-
- **Default:** `false`
92-
93-
- **Usage:**
94-
95-
``` js
96-
Vue.config.convertAllProperties = true
97-
```
98-
99-
(Added in 1.0.8) Turning this option on will enable Vue to convert and observe objects that already contain getters/setters defined with `Object.defineProperty`. This is off by default because there is a small performance cost and this is not a commonly-needed feature.
100-
10187
## Global API
10288

10389
<h3 id="Vue-extend">Vue.extend( options )</h3>
@@ -1522,14 +1508,16 @@ type: api
15221508

15231509
- **Usage:**
15241510

1525-
Render the element or template block multiple times based on the source data. The expression must use the special syntax to provide an alias for the current element being iterated on:
1511+
Render the element or template block multiple times based on the source data. The directive's value must use the special syntax `alias (in|of) expression` to provide an alias for the current element being iterated on:
15261512

15271513
``` html
15281514
<div v-for="item in items">
15291515
{{ item.text }}
15301516
</div>
15311517
```
15321518

1519+
Note using `of` as the delimiter is only supported in 1.0.17+.
1520+
15331521
Alternatively, you can also specify an alias for the index (or the key if used on an Object):
15341522

15351523
``` html

src/guide/events.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,14 @@ Here's the full list of key modifier aliases:
181181
- left
182182
- right
183183

184-
In addition, single letter key aliases are also supported in 1.0.8+.
184+
**1.0.8+:** Single letter key aliases are also supported.
185+
186+
**1.0.17+:** You can also define custom key modifier aliases:
187+
188+
``` js
189+
// enable @keyup.f1
190+
Vue.directive('on').keyCodes.f1 = 112
191+
```
185192

186193
## Why Listeners in HTML?
187194

src/guide/list.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ Alternatively, you can also specify an alias for the index (or the key if `v-for
114114
</div>
115115
```
116116

117+
Starting in 1.0.17 you can also use `of` as the delimiter instead of `in`, so that it is closer to JavaScript syntax for iterators:
118+
119+
``` html
120+
<div v-for="item of items"></div>
121+
```
122+
117123
## Template v-for
118124

119125
Similar to template `v-if`, you can also use a `<template>` tag with `v-for` to render a block of multiple elements. For example:

0 commit comments

Comments
 (0)