Commit 3f22b834 by xiexiaoqin

fix: timepicker add default visibelcount

parent 81c6ae3e
...@@ -11,7 +11,7 @@ function padZero(val) { ...@@ -11,7 +11,7 @@ function padZero(val) {
// 生成分钟 每隔五分钟 // 生成分钟 每隔五分钟
function generateMin(max) { function generateMin(max) {
const time = []; const time = [];
for (let i = 0; i < max; i+=5) { for (let i = 0; i < max; i += 5) {
time.push(padZero(i)) time.push(padZero(i))
} }
return time; return time;
...@@ -167,6 +167,7 @@ Component({ ...@@ -167,6 +167,7 @@ Component({
endDurationPostTime: '' endDurationPostTime: ''
}, },
props: { props: {
visibleItemCount: 3
}, },
didMount() { didMount() {
this.setInitialValue(); this.setInitialValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment