forked from NG-ZORRO/ng-zorro-antd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.ts
18 lines (17 loc) 路 764 Bytes
/
status.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Component, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'nz-demo-mention-status',
encapsulation: ViewEncapsulation.None,
template: `
<nz-mention [nzSuggestions]="suggestions" nzStatus="error" style="margin-bottom: 8px;">
<textarea rows="1" nz-input placeholder="input here" [(ngModel)]="inputValue" nzMentionTrigger></textarea>
</nz-mention>
<nz-mention [nzSuggestions]="suggestions" nzStatus="warning">
<textarea rows="1" nz-input placeholder="input here" [(ngModel)]="inputValue" nzMentionTrigger></textarea>
</nz-mention>
`
})
export class NzDemoMentionStatusComponent {
inputValue: string = '@afc163';
suggestions = ['afc163', 'benjycui', 'yiminghe', 'RaoHai', '涓枃', '銇伝銈撱仈'];
}