Skip to content

Commit 3afbcd0

Browse files
committed
clarify render function data object class and style values
1 parent 22c933a commit 3afbcd0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/v2/guide/render-function.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,14 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special
170170

171171
``` js
172172
{
173-
// Same API as `v-bind:class`
173+
// Same API as `v-bind:class`, accepting either
174+
// a string, object, or array of strings and objects.
174175
class: {
175176
foo: true,
176177
bar: false
177178
},
178-
// Same API as `v-bind:style`
179+
// Same API as `v-bind:style`, accepting either
180+
// a string, object, or array of objects.
179181
style: {
180182
color: 'red',
181183
fontSize: '14px'

0 commit comments

Comments
 (0)