didi / didi/cube-ui

DatePicker的$updateProps方法无法更新columnCount为1的情况

Open
#557 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.1k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

### Version
1.12.27

### Reproduction link
[https://jsfiddle.net/Lfpm9h5g/](https://jsfiddle.net/Lfpm9h5g/)

### Steps to reproduce
1、点击页面文本,第一次可以正常弹窗只有一列年的时间选择器
2、取消选择后重新点击页面文本,可以发现 columnCount 为 2、3 的时候都能使用 $updateProps 更新。
3、当 columnCount 重置回 1 的时候,选择器没有正确显示一列年而是显示三列。

### What is expected?
columnCount 重置为 1 的时候使用 $updateProps 能正确显示列

### What is actually happening?
columnCount 重置为 1 的时候使用 $updateProps 显示了三列

### Dependencies Version
vue: 2.6.9
better-scroll: 1.15.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.