Skip to content

Commit

Permalink
docs: fix translate mistake in /guidfe/essentials/class-and-style
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Apr 14, 2024
1 parent afb1d15 commit ff387f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/essentials/class-and-style.md
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 ff387f0

Please sign in to comment.