-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from GuoXiCheng/dev-c
add style binding md
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 样式绑定 | ||
|
||
Vue 专门为 v-bind 的用法绑定 class 和 style 提供了特殊的功能增强,表达式的值支持字符串、对象和数组。 | ||
|
||
## class 类样式绑定 | ||
|
||
`:class`( `v-bind:class` 的缩写) | ||
|
||
### 绑定对象 | ||
|
||
<<< @/../projects/vue-sandbox/src/components/TemplateSyntax/ClassBindObj.vue | ||
|
||
### 绑定数组 | ||
|
||
<<< @/../projects/vue-sandbox/src/components/TemplateSyntax/ClassBindArr.vue | ||
|
||
## style 内联样式绑定 | ||
|
||
`:style`( `v-bind:style` 的缩写) | ||
|
||
### 绑定对象 | ||
|
||
<<< @/../projects/vue-sandbox/src/components/TemplateSyntax/StyleBindObj.vue | ||
|
||
### 绑定数组 | ||
|
||
<<< @/../projects/vue-sandbox/src/components/TemplateSyntax/StyleBindArr.vue |