File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ <h3>默认模式</h3>
1414 [(current)] ="currentPage "
1515 [pageSizeOptions] ="[5, 10, 20] "
1616 [searchable] ="true "
17+ [placeholder] ="'搜一搜' "
1718 [showQuickJumper] ="true "
1819 (currentChange) ="getCurrentPage($event) "
1920 (pageSizeChange) ="getPageSize($event) ">
Original file line number Diff line number Diff line change 11< ng-container [ngSwitch] ="mode ">
22 < ng-container *ngSwitchDefault >
3- < jigsaw-input class ="jigsaw-paging-search " *ngIf ="searchable " width ="160 " (valueChange) ="search.emit($event) ">
3+ < jigsaw-input class ="jigsaw-paging-search " *ngIf ="searchable " width ="160 "
4+ [placeholder] ="placeholder " (valueChange) ="search.emit($event) ">
45 < span jigsaw-prefix-icon class ="fa fa-search "> </ span >
56 </ jigsaw-input >
67
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ export class JigsawPagination extends AbstractJigsawComponent implements OnInit,
141141 @Input ( ) public showQuickJumper : boolean = false ; // 是否可以快速跳转至某页
142142
143143 @Input ( ) public mode : 'complex' | 'simple' = 'complex' ; // 当为「small」时,是小尺寸分页
144+ @Input ( ) public placeholder : string = '' ;
144145
145146 @ViewChildren ( forwardRef ( ( ) => JigsawPagingItem ) )
146147 private _pages : QueryList < JigsawPagingItem > = null ;
You can’t perform that action at this time.
0 commit comments