2020-03-23 09:31:08 +08:00
|
|
|
@namespace AntBlazor
|
|
|
|
@inherits AntInput
|
|
|
|
<!--TODO: minheight, maxheight, onResize-->
|
|
|
|
|
2020-03-31 21:23:25 +08:00
|
|
|
<textarea class="@ClassMapper.Class" style="@Style" @attributes="Attributes" id="@Id" placeholder="@placeholder" @bind="Value"
|
2020-03-23 09:31:08 +08:00
|
|
|
@ref="inputEl"
|
|
|
|
@oninput="OnInputAsync"
|
2020-03-31 21:23:25 +08:00
|
|
|
@onkeypress="OnPressEnterAsync" />
|
2020-03-23 09:31:08 +08:00
|
|
|
|
2020-03-31 21:23:25 +08:00
|
|
|
@if (AutoSize)
|
|
|
|
{
|
|
|
|
<textarea class="@ClassMapper.Class" style="position:absolute;z-index:-1; visibility: hidden;height: 0px;overflow-y:hidden; @_hiddenWidth" @ref="_hiddenEle">@Value</textarea>
|
2020-04-16 12:05:59 +08:00
|
|
|
}
|