ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
44 lines (43 loc) • 1.25 kB
HTML
<sf-item-wrap [id]="id" [schema]="schema" [ui]="ui" [showError]="showError" [error]="error" [showTitle]="schema.title">
<nz-mention
[]="data"
[]="i.valueWith"
[]="loading"
[]="i.notFoundContent"
[]="i.placement"
[]="i.prefix"
(nzOnSelect)="_select($event)"
(nzOnSearchChange)="_search($event)"
>
<input
*ngIf="ui.inputStyle !== 'textarea'"
nzMentionTrigger
nz-input
[]="id"
[]="disabled"
[]="disabled"
[]="ui.size"
[]="value"
(ngModelChange)="setValue($event)"
[]="schema.maxLength || null"
[]="ui.placeholder"
autocomplete="off"
/>
<textarea
*ngIf="ui.inputStyle === 'textarea'"
nzMentionTrigger
nz-input
[]="id"
[]="disabled"
[]="disabled"
[]="ui.size"
[]="value"
(ngModelChange)="setValue($event)"
[]="schema.maxLength || null"
[]="ui.placeholder"
[]="i.autosize"
>
</textarea>
</nz-mention>
</sf-item-wrap>