Skip to content

Commit a0416e4

Browse files
kazuponchrisvfritz
authored andcommitted
improve docs of set/delete API (vuejs#794)
1 parent 1a0f40d commit a0416e4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/v2/api/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ type: api
206206
207207
- **See also:** [Async Update Queue](../guide/reactivity.html#Async-Update-Queue)
208208

209-
<h3 id="Vue-set">Vue.set( object, key, value )</h3>
209+
<h3 id="Vue-set">Vue.set( target, key, value )</h3>
210210

211211
- **Arguments:**
212-
- `{Object} object`
213-
- `{string} key`
212+
- `{Object | Array} target`
213+
- `{string | number} key`
214214
- `{any} value`
215215

216216
- **Returns:** the set value.
@@ -1277,11 +1277,11 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
12771277
// callback is fired immediately with current value of `a`
12781278
```
12791279
1280-
<h3 id="vm-set">vm.$set( object, key, value )</h3>
1280+
<h3 id="vm-set">vm.$set( target, key, value )</h3>
12811281
12821282
- **Arguments:**
1283-
- `{Object} object`
1284-
- `{string} key`
1283+
- `{Object | Array} target`
1284+
- `{string | number} key`
12851285
- `{any} value`
12861286
12871287
- **Returns:** the set value.
@@ -1292,11 +1292,11 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
12921292
12931293
- **See also:** [Vue.set](#Vue-set)
12941294
1295-
<h3 id="vm-delete">vm.$delete( object, key )</h3>
1295+
<h3 id="vm-delete">vm.$delete( target, key )</h3>
12961296
12971297
- **Arguments:**
1298-
- `{Object} object`
1299-
- `{string} key`
1298+
- `{Object | Array} target`
1299+
- `{string | number} key`
13001300
13011301
- **Usage:**
13021302

0 commit comments

Comments
 (0)