mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
6ebb1b311a
* fix(module:TextArea): sizing bug for components outside viewport * fix(module:textarea): single js method to get textarea info * fix(module:textArea): clean up unnecessary slice * fix(module:textarea): autosize has proper effect * chore: adjusting the release cycle and versioning * fix(module:textarea): resize on type fix * fix white line Co-authored-by: ElderJames <shunjiey@hotmail.com>
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
@namespace AntDesign
|
|
@inherits Input<string>
|
|
<!--TODO: minheight, maxheight, onResize-->
|
|
|
|
@{
|
|
Dictionary<string, object> attributes =
|
|
new Dictionary<string, object>()
|
|
{
|
|
{ "onchange", CallbackFactory.Create(this, OnChangeAsync) },
|
|
{ "onblur", CallbackFactory.Create(this, OnBlurAsync) },
|
|
{ "oninput", CallbackFactory.Create(this, OnInputAsync) },
|
|
{ "onkeypress", CallbackFactory.Create(this, OnKeyPressAsync) },
|
|
{ "onkeyup", CallbackFactory.Create(this, OnKeyUpAsync) },
|
|
{ "onkeydown", CallbackFactory.Create(this, OnkeyDownAsync) },
|
|
{ "onfocus", CallbackFactory.Create(this, OnFocusAsync) },
|
|
{ "value", CurrentValueAsString },
|
|
{ "placeholder", Placeholder },
|
|
{ "id", Id },
|
|
{ "style", Style },
|
|
{ "class", ClassMapper.Class },
|
|
{ "disabled", Disabled },
|
|
};
|
|
|
|
if (Attributes != null)
|
|
{
|
|
Attributes.Keys.ForEach(key => { attributes[key] = Attributes[key]; });
|
|
}
|
|
}
|
|
|
|
@if (Suffix != null)
|
|
{
|
|
<span class=@($"{PrefixCls}-affix-wrapper {PrefixCls}-affix-wrapper-textarea-with-clear-btn")>
|
|
<textarea @ref="Ref" @attributes="attributes"/>
|
|
@Suffix
|
|
</span>
|
|
}
|
|
else
|
|
{
|
|
<textarea @ref="Ref" @attributes="attributes"/>
|
|
} |