Skip to content

Commit aa15ddb

Browse files
committed
fixed doc
1 parent e7d9145 commit aa15ddb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/rules/valid-v-bind-sync.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ This rule reports `.sync` modifier on `v-bind` directives in the following cases
2121
```vue
2222
<template>
2323
<!-- ✓ GOOD -->
24+
<MyComponent v-bind:aaa.sync="foo"/>
25+
<MyComponent :aaa.sync="foo"/>
26+
27+
<div v-for="todo in todos">
28+
<MyComponent v-bind:aaa.sync="todo.name"/>
29+
<MyComponent :aaa.sync="todo.name"/>
30+
</div>
31+
32+
<!-- ✗ BAD -->
2433
<MyComponent v-bind:aaa.sync="foo + bar" />
2534
<MyComponent :aaa.sync="foo + bar" />
2635
@@ -31,15 +40,6 @@ This rule reports `.sync` modifier on `v-bind` directives in the following cases
3140
<MyComponent v-bind:aaa.sync="todo" />
3241
<MyComponent :aaa.sync="todo" />
3342
</div>
34-
35-
<!-- ✗ BAD -->
36-
<MyComponent v-bind:aaa.sync="foo"/>
37-
<MyComponent :aaa.sync="foo"/>
38-
39-
<div v-for="todo in todos">
40-
<MyComponent v-bind:aaa.sync="todo.name"/>
41-
<MyComponent :aaa.sync="todo.name"/>
42-
</div>
4343
</template>
4444
```
4545
</eslint-code-block>

0 commit comments

Comments
 (0)