!2327 refactor(#I4R9DA): update popover.js javascript

* refactor: 微调 Popover 脚本代码
* revert: 恢复配置
* doc: 格式化代码
This commit is contained in:
Argo 2022-01-18 05:05:27 +00:00
parent 9f3e1ef7df
commit 17b9482304
5 changed files with 8 additions and 10 deletions

View File

@ -91,7 +91,7 @@ csharp_style_var_when_type_is_apparent = true:silent
csharp_style_var_elsewhere = true:silent
csharp_prefer_static_local_function= true:silent
# Expression-bodied members
csharp_style_expression_bodied_methods =true:silent
csharp_style_expression_bodied_methods =false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent

View File

@ -179,8 +179,8 @@ public abstract class ButtonBase : TooltipComponentBase
exception = ex;
}
// 恢复按钮
if (IsAsync && ButtonType == ButtonType.Button)
// 恢复按钮
if (IsAsync && ButtonType == ButtonType.Button)
{
ButtonIcon = Icon;
IsDisabled = false;
@ -189,8 +189,8 @@ public abstract class ButtonBase : TooltipComponentBase
if (exception != null)
{
// 如果有异常发生强制按钮恢复
StateHasChanged();
// 如果有异常发生强制按钮恢复
StateHasChanged();
throw exception;
}
});

View File

@ -34,9 +34,7 @@
}
if (method !== 'dispose') {
var op = { html, sanitize: false, title, content, placement, trigger };
if (instance == null) {
instance = new bootstrap.Popover(ele, op);
}
instance = new bootstrap.Popover(ele, op);
if (method !== '') {
$(ele).popover(method);
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long