Skip to content

Commit

Permalink
fix(module:select): fix multiple select placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-nest-moon committed Oct 19, 2023
1 parent 2bf4205 commit 892d335
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/ng-nest/ui/select/select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export class XSelectComponent extends XSelectProperty implements OnInit, OnChang
this.setSubject();
if (this.multiple) {
this.valueTpl = this.multipleValueTpl;
this.inputPadding = 0.125;
}
if (this.portalWidth) {
if (this.placement === 'bottom') {
Expand Down
1 change: 1 addition & 0 deletions lib/ng-nest/ui/select/style/mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
flex-wrap: wrap;
width: initial;
height: initial !important;
left: 0.125rem !important;
> x-tag {
display: inline-flex;
margin-left: 0.0625rem;
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export const environment = {
production: false,
layout: 'test',
defaultPage: 'message-box',
defaultPage: 'select',
static: 'http://localhost:9494'
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<x-row>
<x-col>
<x-select [data]="data1" [(ngModel)]="model1" (ngModelChange)="change(model1)" multiple></x-select>
<x-select [data]="data1" [(ngModel)]="model1" (ngModelChange)="change(model1)" multiple placeholder="请选择"></x-select>
</x-col>
</x-row>
<x-row>
Expand Down
4 changes: 2 additions & 2 deletions src/main/test/modules/select/select.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ex-default></ex-default>
<!-- <ex-multiple></ex-multiple> -->
<!-- <ex-default></ex-default> -->
<ex-multiple></ex-multiple>
<!-- <ex-search></ex-search> -->
<!-- <ex-size></ex-size> -->
<!-- <ex-scroll></ex-scroll> -->

0 comments on commit 892d335

Please sign in to comment.