Commit 3f22b834 by xiexiaoqin

fix: timepicker add default visibelcount

parent 81c6ae3e
......@@ -11,7 +11,7 @@ function padZero(val) {
// 生成分钟 每隔五分钟
function generateMin(max) {
const time = [];
for (let i = 0; i < max; i+=5) {
for (let i = 0; i < max; i += 5) {
time.push(padZero(i))
}
return time;
......@@ -167,6 +167,7 @@ Component({
endDurationPostTime: ''
},
props: {
visibleItemCount: 3
},
didMount() {
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