fix(module: pagination): Use same Locale for Pagination and PaginationOptions (#2244)

This commit is contained in:
Hao Sun 2022-01-11 16:47:48 +08:00 committed by GitHub
parent 569fa4a344
commit 92a4ed3a24
2 changed files with 3 additions and 1 deletions

View File

@ -310,6 +310,7 @@
</li>
<PaginationOptions
Locale="@Locale"
IsSmall="@IsSmall"
Disabled="@Disabled"
RootPrefixCls="@PrefixCls"

View File

@ -43,7 +43,8 @@ namespace AntDesign
private string _goInputText = string.Empty;
private PaginationLocale Locale = LocaleProvider.CurrentLocale.Pagination;
[Parameter]
public PaginationLocale Locale { get; set; } = LocaleProvider.CurrentLocale.Pagination;
private int GetValidValue()
{