cc icon indicating copy to clipboard operation
cc copied to clipboard

datePicker 实现文本框中弹出日期范围选择

Open leeguiman opened this issue 7 years ago • 2 comments

大神,datePicker 怎么实现popup的Range select;看api半天没有什么头绪, <ng-template #t let-date="date" let-focused="focused"> <span class="custom-day" [class.focused]="focused" [class.range]="isFrom(date) || isTo(date) || isInside(date) || isHovered(date)" [class.faded]="isHovered(date) || isInside(date)" (mouseenter)="hoveredDate = date" (mouseleave)="hoveredDate = null"> {{ date.day }} 这个代码块不知道该怎么处理,求指导,拜谢!!!

leeguiman avatar Aug 28 '17 03:08 leeguiman

补充一下,就是用一个文本框实现的那种,而不是两个文本框(开始日期和结束日期)实现,两个文本框很容易,但是想求教能不能实现的更理想一些

leeguiman avatar Aug 28 '17 03:08 leeguiman

@Leeguiman 现在这个我是用ng-bootstrap的,我自己也没有研究

myopenresources avatar Aug 28 '17 05:08 myopenresources