mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Calendar): color not work in multiple mode (#5786)
This commit is contained in:
parent
09ad95ca68
commit
ab82f42f6a
@ -186,7 +186,12 @@ export default createComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.color) {
|
if (this.color) {
|
||||||
if (type === 'start' || type === 'end') {
|
if (
|
||||||
|
type === 'start' ||
|
||||||
|
type === 'end' ||
|
||||||
|
type === 'multiple-selected' ||
|
||||||
|
type === 'multiple-middle'
|
||||||
|
) {
|
||||||
style.background = this.color;
|
style.background = this.color;
|
||||||
} else if (type === 'middle') {
|
} else if (type === 'middle') {
|
||||||
style.color = this.color;
|
style.color = this.color;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user