Skip to content

minuteStep设置为0或者60应不显示分钟选择列 #182

@rainydayDY

Description

@rainydayDY

const minuteLegal = minuteStep > 0 && minuteStep < 60;
var cols = [{ key: 'hours', props: { children: hours } }].concat(minuteLegal ? { key: 'minutes', props: { children: minutes } } : [], use12Hours ? [{
key: 'ampm',
props: { children: [{ value: '0', label: locale.am }, { value: '1', label: locale.pm }] }
}] : []);
return { cols: cols, selMinute: selMinute };
设置为60时初始的分钟列显示有问题,我认为对于非法值应该过滤掉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions