ant-design-blazor/components/input-number/InputNumber.razor

13 lines
525 B
C#
Raw Normal View History

@namespace AntDesign
2020-03-26 10:45:35 +08:00
@inherits AntInputComponentBase<double>
<div class="@ClassMapper.Class" style="@Style" id="@Id">
2020-03-26 10:45:35 +08:00
<div class="ant-input-number-handler-wrap">
<AntIcon class="@GetIconClass("up")" Type="up" OnClick="Increase" />
<AntIcon class="@GetIconClass("down")" Type="down" OnClick="Decrease" />
2020-03-26 10:45:35 +08:00
</div>
<div class="ant-input-number-input-wrap">
<Input class="ant-input-number-input" @bind-Value="@CurrentValueAsString" Type="number" OnInput="(e)=>OnInput(e)" />
2020-03-26 10:45:35 +08:00
</div>
</div>