Merge branch '2.x' into dev
This commit is contained in:
@@ -112,7 +112,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="show" color="#07c160" />
|
||||
<van-calendar v-model:show="show" color="#1989fa" />
|
||||
```
|
||||
|
||||
### Custom Date Range
|
||||
|
||||
@@ -114,7 +114,7 @@ export default {
|
||||
通过 `color` 属性可以自定义日历的颜色,对选中日期和底部按钮生效。
|
||||
|
||||
```html
|
||||
<van-calendar v-model:show="show" color="#07c160" />
|
||||
<van-calendar v-model:show="show" color="#1989fa" />
|
||||
```
|
||||
|
||||
### 自定义日期范围
|
||||
|
||||
@@ -119,8 +119,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { GREEN } from '../../utils/constant';
|
||||
|
||||
export default {
|
||||
i18n: {
|
||||
'zh-CN': {
|
||||
@@ -233,7 +231,7 @@ export default {
|
||||
this.showConfirm = false;
|
||||
break;
|
||||
case 'customColor':
|
||||
this.color = GREEN;
|
||||
this.color = '#1989fa';
|
||||
break;
|
||||
case 'customConfirm':
|
||||
this.confirmText = this.t('confirmText');
|
||||
|
||||
@@ -47,7 +47,7 @@ exports[`color prop when type is range 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="van-calendar__footer"><button type="button" class="van-button van-button--danger van-button--normal van-button--block van-button--round van-calendar__confirm" style="color: rgb(255, 255, 255); background: blue; border-color: blue;">
|
||||
<div class="van-calendar__footer"><button type="button" class="van-button van-button--danger van-button--normal van-button--block van-button--round van-calendar__confirm" style="color: white; background: blue; border-color: blue;">
|
||||
<div class="van-button__content"><span class="van-button__text">确定</span></div>
|
||||
</button></div>
|
||||
</div>
|
||||
@@ -100,7 +100,7 @@ exports[`color prop when type is single 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="van-calendar__footer"><button type="button" class="van-button van-button--danger van-button--normal van-button--block van-button--round van-calendar__confirm" style="color: rgb(255, 255, 255); background: blue; border-color: blue;">
|
||||
<div class="van-calendar__footer"><button type="button" class="van-button van-button--danger van-button--normal van-button--block van-button--round van-calendar__confirm" style="color: white; background: blue; border-color: blue;">
|
||||
<div class="van-button__content"><span class="van-button__text">确定</span></div>
|
||||
</button></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user