Skip to content

Commit b620575

Browse files
authored
Merge pull request vuejs#262 from lex111/patch-9
class-and-style.md: улучшения
2 parents 2df7ffb + daca5e2 commit b620575

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ order: 6
1010

1111
### Использование объектов
1212

13-
Для динамического задания или удаления CSS классов мы можем передать в директиву `v-bind:class` объект:
13+
Для динамического задания или удаления CSS-классов мы можем передать в директиву `v-bind:class` объект:
1414

1515
``` html
1616
<div v-bind:class="{ active: isActive }"></div>
@@ -121,7 +121,7 @@ data: {
121121

122122
``` js
123123
Vue.component('my-component', {
124-
template: '<p class="foo bar">Hi</p>'
124+
template: '<p class="foo bar">Привет</p>'
125125
})
126126
```
127127

@@ -134,7 +134,7 @@ Vue.component('my-component', {
134134
В результате рендеринга получим:
135135

136136
``` html
137-
<p class="foo bar baz boo">Hi</p>
137+
<p class="foo bar baz boo">Привет</p>
138138
```
139139

140140
То же самое справедливо для связывания классов с данными:
@@ -146,7 +146,7 @@ Vue.component('my-component', {
146146
Если `isActive` истинно, результирующий HTML будет:
147147

148148
``` html
149-
<p class="foo bar active">Hi</p>
149+
<p class="foo bar active">Привет</p>
150150
```
151151

152152
## Связывание inline-стилей

0 commit comments

Comments
 (0)