!2356 doc(#I4S1KP): add ValidateRules doc of BootstrapInput

* doc: 增加 ValidateRules 文档
* doc: 更新资源文件
This commit is contained in:
知足常乐 2022-01-24 09:22:15 +00:00 committed by Argo-Tianyi
parent 2f10e9b55d
commit 7b02a81683
4 changed files with 110 additions and 100 deletions

View File

@ -1230,7 +1230,8 @@
"Att9": "The user presses the Esc key to call back the delegate",
"Att10": "Whether to disable Fasle by default",
"Att11": "Whether to get the focus automatically Default is fasle",
"IsSelectAllTextOnFocus": "Whether auto select the all text after focus"
"IsSelectAllTextOnFocus": "Whether auto select the all text after focus",
"ValidateRules": "Customer validation collection"
},
"BootstrapBlazor.Shared.Samples.InputNumbers": {
"Title": "InputNumber",

View File

@ -1231,7 +1231,8 @@
"Att9": "用户按下 Esc 键回调委托",
"Att10": "是否禁用",
"Att11": "是否自动获取焦点",
"IsSelectAllTextOnFocus": "获得焦点后自动选择输入框内所有字符串"
"IsSelectAllTextOnFocus": "获得焦点后自动选择输入框内所有字符串",
"ValidateRules": "自定义验证集合"
},
"BootstrapBlazor.Shared.Samples.InputNumbers": {
"Title": "InputNumber 组件",

View File

@ -151,6 +151,14 @@ public partial class Inputs
Type = "bool",
ValueList = "true|false",
DefaultValue = "false"
},
new AttributeItem()
{
Name = nameof(BootstrapInput<string>.ValidateRules),
Description = Localizer[nameof(BootstrapInput<string>.ValidateRules)].Value,
Type = "List<IValidator>",
ValueList = " — ",
DefaultValue = " — "
}
};
}

File diff suppressed because one or more lines are too long