docs: uniform color

This commit is contained in:
chenjiahan
2020-11-30 23:00:32 +08:00
committed by neverland
parent aad0559064
commit bb18310f1b
27 changed files with 42 additions and 47 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ Set `show-confirm` to `false` to hide the confirm button. In this case, the `con
Use `color` prop to custom calendar color.
```html
<van-calendar v-model="show" color="#07c160" />
<van-calendar v-model="show" color="#1989fa" />
```
### Custom Date Range
+1 -1
View File
@@ -113,7 +113,7 @@ export default {
通过 `color` 属性可以自定义日历的颜色,对选中日期和底部按钮生效。
```html
<van-calendar v-model="show" color="#07c160" />
<van-calendar v-model="show" color="#1989fa" />
```
### 自定义日期范围
+2 -2
View File
@@ -121,7 +121,7 @@
</template>
<script>
import { GREEN } from '../../utils/constant';
import { BLUE } from '../../utils/constant';
export default {
i18n: {
@@ -235,7 +235,7 @@ export default {
this.showConfirm = false;
break;
case 'customColor':
this.color = GREEN;
this.color = BLUE;
break;
case 'customConfirm':
this.confirmText = this.t('confirmText');