docs: uniform color
This commit is contained in:
@@ -99,7 +99,7 @@ export default {
|
||||
### Custom Color
|
||||
|
||||
```html
|
||||
<van-tabbar v-model="active" active-color="#07c160" inactive-color="#000">
|
||||
<van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#000">
|
||||
<van-tabbar-item icon="home-o">Tab</van-tabbar-item>
|
||||
<van-tabbar-item icon="search">Tab</van-tabbar-item>
|
||||
<van-tabbar-item icon="friends-o">Tab</van-tabbar-item>
|
||||
|
||||
@@ -105,7 +105,7 @@ export default {
|
||||
### 自定义颜色
|
||||
|
||||
```html
|
||||
<van-tabbar v-model="active" active-color="#07c160" inactive-color="#000">
|
||||
<van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#000">
|
||||
<van-tabbar-item icon="home-o">标签</van-tabbar-item>
|
||||
<van-tabbar-item icon="search">标签</van-tabbar-item>
|
||||
<van-tabbar-item icon="friends-o">标签</van-tabbar-item>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<demo-block :title="t('customColor')">
|
||||
<van-tabbar
|
||||
v-model="active4"
|
||||
active-color="#07c160"
|
||||
active-color="#ee0a24"
|
||||
inactive-color="#000"
|
||||
>
|
||||
<van-tabbar-item icon="home-o">{{ t('tab') }}</van-tabbar-item>
|
||||
|
||||
@@ -136,7 +136,7 @@ exports[`renders demo correctly 1`] = `
|
||||
</div>
|
||||
<div>
|
||||
<div class="van-hairline--top-bottom van-tabbar van-tabbar--fixed">
|
||||
<div class="van-tabbar-item van-tabbar-item--active" style="color: rgb(7, 193, 96);">
|
||||
<div class="van-tabbar-item van-tabbar-item--active" style="color: rgb(238, 10, 36);">
|
||||
<div class="van-tabbar-item__icon"><i class="van-icon van-icon-home-o">
|
||||
<!----></i>
|
||||
<!---->
|
||||
|
||||
Reference in New Issue
Block a user