mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-11-29 18:49:08 +08:00
!2327 refactor(#I4R9DA): update popover.js javascript
* refactor: 微调 Popover 脚本代码 * revert: 恢复配置 * doc: 格式化代码
This commit is contained in:
parent
9f3e1ef7df
commit
17b9482304
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user