mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
feat(module: InputNumber): support borderless (#3019)
This commit is contained in:
parent
978ffcb5b0
commit
f94981aa95
@ -77,6 +77,9 @@ namespace AntDesign
|
||||
[Parameter]
|
||||
public string PlaceHolder { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public bool Bordered { get; set; } = true;
|
||||
|
||||
private static readonly Type _surfaceType = typeof(TValue);
|
||||
|
||||
private static readonly Type[] _smallIntegerType = new Type[]
|
||||
@ -297,6 +300,7 @@ namespace AntDesign
|
||||
.If($"{_prefixCls}-sm", () => Size == InputSize.Small)
|
||||
.If($"{_prefixCls}-focused", () => _focused)
|
||||
.If($"{_prefixCls}-disabled", () => this.Disabled)
|
||||
.If($"{_prefixCls}-borderless", () => !Bordered)
|
||||
.If($"{_prefixCls}-status-error", () => ValidationMessages.Length > 0)
|
||||
.If($"{_prefixCls}-rtl", () => RTL);
|
||||
}
|
||||
|
@ -0,0 +1 @@
|
||||
<AntDesign.InputNumber Min="1" Max="10" DefaultValue="3" Bordered="false" />
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
order: 6
|
||||
title:
|
||||
zh-CN: 无边框
|
||||
en-US: Borderless
|
||||
---
|
||||
|
||||
## zh-CN
|
||||
|
||||
没有边框。
|
||||
|
||||
## en-US
|
||||
|
||||
No border.
|
||||
|
Loading…
Reference in New Issue
Block a user