feat(module: InputNumber): support borderless (#3019)

This commit is contained in:
James Yeung 2023-01-17 22:58:16 +08:00 committed by GitHub
parent 978ffcb5b0
commit f94981aa95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View File

@ -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);
}

View File

@ -0,0 +1 @@
<AntDesign.InputNumber Min="1" Max="10" DefaultValue="3" Bordered="false" />

View File

@ -0,0 +1,15 @@
---
order: 6
title:
zh-CN: 无边框
en-US: Borderless
---
## zh-CN
没有边框。
## en-US
No border.