Skip to content

Commit 3c950ef

Browse files
committed
Update translate.
1 parent 827851c commit 3c950ef

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/v2/guide/class-and-style.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ data: {
109109
<div v-bind:class="[{ active: isActive }, errorClass]">
110110
```
111111

112-
### 和组件一起使用
112+
### 用在组件上
113113

114-
> 这个部分假设你已经有了对于[Vue组件](components.html)的一些了解。尽管跳过这段好了,过会儿再回来看也是可以的
114+
> 这个章节假设你已经对 [Vue 组件](components.html)有一定的了解。当然你也可以跳过这里,稍后再回过头来看
115115
116-
当你在一个定制的组件上用到`class`属性的时候,这些类将被添加到根元素上面,这个元素上已经存在的类不会被覆盖。
116+
当你在一个定制的组件上用到 `class` 属性的时候,这些类将被添加到根元素上面,这个元素上已经存在的类不会被覆盖。
117117

118118
例如,如果你声明了这个组件:
119119

@@ -135,13 +135,13 @@ HTML最终将被渲染成为:
135135
<p class="foo bar baz boo">Hi</p>
136136
```
137137

138-
同样的适用于绑定HTML class:
138+
同样的适用于绑定 HTML class :
139139

140140
``` html
141141
<my-component v-bind:class="{ active: isActive }"></my-component>
142142
```
143143

144-
`isActive`为true的时候,HTML将被渲染成为:
144+
`isActive` 为 true 的时候,HTML 将被渲染成为:
145145

146146
``` html
147147
<div class="foo bar active"></div>

src/v2/guide/forms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,11 @@ vm.selected.number // -> 123
362362
<input v-model.trim="msg">
363363
```
364364

365-
## `v-model`与组件
365+
## `v-model` 与组件
366366

367367
> 如果你对组件还不熟悉,跳过这里即可。
368368
369-
HTML的内置input类型可能不会总是能满足你的需求。幸运的是,Vue的组件系统允许你创建一个具有自定义行为的并且可重用的inputs。这些inputs甚至可以与`v-model`一起使用!想了解更多,阅读组件文档中的[自定义inputs](components.html#Form-Input-Components-using-Custom-Events)
369+
HTML 的内置 input 类型可能不会总是能满足你的需求。幸运的是, Vue 的组件系统允许你创建一个具有自定义行为的并且可重用的 inputs 。这些 inputs 甚至可以与 `v-model` 一起使用!想了解更多,阅读组件文档中的 [自定义inputs](components.html#Form-Input-Components-using-Custom-Events)
370370

371371
***
372372

0 commit comments

Comments
 (0)