Skip to content

Commit

Permalink
fix: multi select option
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtianze committed Jul 31, 2024
1 parent fb87f73 commit 6b23fa4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/autocomplete/autocomplete.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export class AutoCompleteDirective
}

@Input('auiAutocompleteFilterFn')
@Input()
get filterFn() {
return this._filterFn;
}
Expand Down
4 changes: 3 additions & 1 deletion src/autocomplete/suggestion/suggestion.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
[class.isFocused]="focused"
(click)="onClick()"
>
<ng-content></ng-content>
<div [class]="bem.element('content')">
<ng-content></ng-content>
</div>
</div>
8 changes: 6 additions & 2 deletions src/select/option/option-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@

@mixin option($block) {
.#{$block} {
display: flex;
align-items: center;
color: use-text-color(main);
font-weight: use-var(font-weight-normal);
@include text-overflow;

cursor: pointer;

&__content {
@include text-overflow;
}

&--large {
padding: calc(
(#{use-var(inline-height-l)} - #{use-var(line-height-l)}) / 2
Expand Down
6 changes: 4 additions & 2 deletions src/select/option/option.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
>
<i
*ngIf="isMulti"
class="aui-option__pointer"
[class]="bem.element('pointer')"
>
<aui-icon
[hidden]="!(selected$ | async)"
icon="check"
></aui-icon>
</i>
<ng-content></ng-content>
<div [class]="bem.element('content')">
<ng-content></ng-content>
</div>
</div>

0 comments on commit 6b23fa4

Please sign in to comment.