Skip to content

Commit

Permalink
docs: fix translate mistake in /guide/essentials/class-and-style (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 authored Apr 16, 2024
1 parent 7d26106 commit d4f94e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/essentials/class-and-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Class 的绑定也是同样的:
<p class="foo bar active">Hi!</p>
```

如果你的组件有多个根元素,你将需要指定哪个根元素来接收这个 class。你可以通过组件的 `$attrs` 属性来实现指定
如果你的组件有多个根元素,你将需要指定哪个根元素来接收这个 class。你可以通过组件的 `$attrs` 属性来指定接收的元素

```vue-html
<!-- MyComponent 模板使用 $attrs 时 -->
Expand Down

0 comments on commit d4f94e7

Please sign in to comment.