Skip to content

Commit adfa12a

Browse files
SimpleelegantSimpleelegant
authored andcommitted
merge fix-date-picker-pro-tab-type-demo into master
fix(module:date-picker-pro): tab type demo Created-by: xucr11 Commit-by: 锐来锐好 Merged-by: Simpleelegant Description: 【开源共创挑战赛】🐛 [Bug]: 相对时间可以选负数,导致开始时间大于结束时间 https://gitcode.com/DevCloudFE/ng-devui/issues/4 See merge request: DevCloudFE/ng-devui!4
2 parents 45b2473 + 08c3142 commit adfa12a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devui/datepicker-pro/demo/tab-type/datepicker-pro-tab-type.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<d-tab id="3" title="Relative Time">
3838
<div style="padding: 8px 16px">
3939
<span>last:</span>
40-
<d-input-number style="width: 100px; margin: 0 8px" [(ngModel)]="relativeNumber"></d-input-number>
40+
<d-input-number [min]="0" style="width: 100px; margin: 0 8px" [(ngModel)]="relativeNumber"></d-input-number>
4141

4242
<div style="width: 100px; display: inline-block">
4343
<d-select [appendToBody]="true" [options]="options" [(ngModel)]="relativeUnit"></d-select>

0 commit comments

Comments
 (0)