Skip to content

Releases: dotnetcore/BootstrapBlazor

v6.1.0

09 Dec 02:27
Compare
Choose a tag to compare

发布时间 2021-12-09 V6.1.0

破坏性更新

  • refactor(#I4LPFF): 组件 MenuItem 参数 Component 改为 Template 与其他组件保持一致,数据类型由 BootstrapDynamicComponent 改为 RenderFragment 与微软保持一致

  • feat(#I4KNKK): 原 BlazorLogger 更改为 ErrorLogger
    NET5.0 升级到 NET6.0 集成全局异常捕获与错误日志处理为一体
    参考示例:https://www.blazor.zone/globalexception

  • refactor(#I4K95I): TableColumn 参数 AllowTextWrap 更改为 TextWrap #I4K95I
    移除 Allow 更加简短规范

  • feat(#I4JL1Y): 更新 BootstrapBlazorRoot 组件用法 #I4JC5Q
    BootstrapBlazorRoot 组件更新为容器组件,内置本套组件库中所需要的一些 服务 以及 弹窗组件 所必须的网页元素,方便使用,避免由于 razor 页面中忘记添加 <Dialog /> 这样的标签导致功能不正常时,无法找到原因等问题,新用法推荐如下:

  1. 包裹 App.razor 文件中 Router 节点
<BootstrapBlazorRoot>
    <Router AppAssembly="@typeof(App).Assembly">
        <Found Context="routeData">
            <PageTitle>@AppLocalizer["Title"]</PageTitle>
            <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
            <FocusOnNavigate RouteData="@routeData" Selector="h1" />
        </Found>
        <NotFound>
            <PageTitle>Not found</PageTitle>
            <LayoutView Layout="@typeof(MainLayout)">
                <p>正在玩命开发中 ...</p>
            </LayoutView>
        </NotFound>
    </Router>
</BootstrapBlazorRoot>
  1. 包裹项目模板页(默认项目模板页为 MainLayout
<BootstrapBlazorRoot>
    @Body
</BootstrapBlazorRoot>
特别注意

BootstrapBlazorRoot 组件已经内置了近 8 种组件或者服务所必须的网页标签请务必添加此组件到项目中

  • refactor(#I4JBGE): 组件 BootstrapDynamicComponent 参数类型由原来的 IEnumerable<KeyValuePair<string, object>> 更改为 IDictionary<string, object> 与微软保持一致代码更精简 #I4JBFS

增加功能

  • feat(#I4LE6Q): 组件 Table 内置对 SearchText 模糊查询处理逻辑 #I4LE6Q

  • feat(#I4LCDT): 更新组件层次结构 #I4LCDT
    参考示例:https://www.blazor.zone/layout

  • feat(#I4L3W4): 组件 NumberFilter 兼容 single/double/decimal/short/int/long 数据类型 #I4L3W4

  • feat(#I4L2TO): 组件 Layout 兼容 ErrorLogger #I4L2TO
    使用 Layout 组件开启多标签时设置 IsErrorHandle 开始全局异常捕获功能,默认开启 通过设置 OnErrorHandleAsync 实现自定义异常处理逻辑,异常仅影响当前标签页

  • feat(#I4L2NM): 组件 ErrorLogger 增加 OnErrorHandleAsync 回调方法可实现自定义异常处理逻辑 #I4L2NM
    参考示例:https://www.blazor.zone/globalexception#Swal

  • feat(#I4L2DE): 组件 ListView Table Pagination 分页数据源增加默认值 #I4L2DE

  • feat(#I4KNKK): 增加全局异常捕获与日志组件 ErrorLogger #I4KNKK
    参考示例:https://www.blazor.zone/globalexception

  • feat(#I4KRVZ): 组件 Table 未选中行时禁用工具栏 编辑删除 按钮 #I4KRVZ

  • feat(#I4KO3L): 组件 Table 自定义搜索模型支持 Top 模式 #I4KO3L
    参考示例:https://www.blazor.zone/tables/search#CustomerSearchModel

  • feat(#I4KARU): 组件 Table 增加自定义搜索模型功能 #I4KARU

  • feat(#I4JLYP): 更新弹窗服务类 Show 方法 增加参数用于指定弹窗容器实例 #I4JLYP
    通过此功能可以实现以前版本中遇到的诸多问题:如 无法多开弹窗 弹窗中的弹窗

  • feat(#I4JC5Q): 新增 IDispatchService 消息分发服务 #I4JC5Q
    参考示例:https://www.blazor.zone/dispatchs#Dispatch

  • feat(#I4JBFS): 组件 Toast 增加 ChildContent 参数支持 RendFragment 扩展为支持任意组件 #I4JBFS

  • feat(#I4J2L8): 组件 EditorItem 所有模板上下文 context NET6 框架下支持强类型取代 object 方便使用 #I4J2L8

  • feat(#I4J25D): 组件 Table 所有模板上下文 context NET6 框架下支持强类型取代 object 方便使用 #I4J25D

  • feat(#I4IEW1): 组件 Table 增加 OnClickCellCallback 回调方法用于处理单元格双击事件 #I4IEW1

  • feat(#I4IG9P): 组件 Table 增加 OnColumnCreating 回调委托可用于低代码等框架对模型列进行二次修改 #I4IG9P

  • feat(#I4IC7G): 组件 Tab 支持 [SupplyParameterFromQuery()] 标签特性可以从 url 地址对组件参数进行赋值 #I4IC7G

  • feat(#I4I5DP): 组件 Camera 增加 OnCapture 回调方法 #I4I5DP

  • feat(#I4I5JA): 更新 Table 类型骨架屏 UI #I4I5JA

  • feat(#I4I51B): 增加枚举类型扩展方法 ToDisplayName #I4I51B

[Fact]
public void ToDisplayName_Ok()
{
    var dn = EnumEducation.Middel.ToDisplayName();
    Assert.Equal("中学", dn);

    CultureInfo.CurrentUICulture = new CultureInfo("en-US");
    dn = EnumEducation.Middel.ToDisplayName();
    Assert.Equal(EnumEducation.Middel.ToString(), dn);
}
  • feat(#I4HL0J): 组件 Table 内部移除弹窗类组件统一使用 BootstrapBlazorRoot 功能 #I4HL0J
  • feat(#I4I0PZ): 组件 Table 参数 TableRenderMode 支持全局配置 #I4I0PZ
{
  "BootstrapBlazorOptions": {
    "TableSettings": {
      "CheckboxColumnWidth": 40,
      "TableRenderMode": "Table"
    }
  }
}
  • feat(#I4HVWU): 组件 AutoComplete 增加防抖功能 #I4HVWU
  • feat(#I4HTDJ): 组件 TableFilter 多条件组合时关系符号增加多语言支持 #I4HTDJ

问题修复

  • fix(#I4LLC1): 修复组件 Menu 顶栏模式下不触发 OnClick 回调问题 #I4LLC1
  • fix(#I4LAA3): 修复组件 Table 双向绑定 SelectedRows 选中项不更新问题 #I4LAA3
  • fix(#I4KTJJ): 修复组件 Menu 点击子菜单文字边缘时 Tab 标签页显示英文问题 #I4KTJJ
  • fix(#I4KFOT): 修复组件 Menu 点击时偶尔导致 Tab 组件出现空白标签页问题 #I4KFOT
  • fix(#I4K0R6):修复组件 Collapse 页面刷新时内容丢失问题 #I4K0R6
  • fix(#I4FIVD): 修复组件 InputUpload 验证规则不生效问题 #I4FIVD
  • fix(#I4ID9Y): 修复组件 Collapse 重新设置 ChildContentUI 渲染不正确问题 #I4ID9Y
  • fix(#I4I39P): 修复组件 Table 设置顶栏显示搜索时无法收起问题 #I4I39P
  • fix(#I4HT8V): 修复组件 WebClient 更新到 NET6.0 报错问题 #I4HT8V
  • fix(#I4HT49): 修复组件 Download 更新到 NET6.0 报错问题 #I4HT49

更新文档

  • doc(#I4KCDS): 文档增加代码覆盖率展示小图标 #I4KCDS
  • doc(#I4K0L0): 更新组件一览中下载组件图片链接 #I4K0L0
  • doc(#I4JL5H): 更新 EditorForm 文档增加 IsDisplay 参数说明 #I4JL5H
  • doc(#I4JI71): 更新 Server sideWebAssembly 两种模式使用组件文档 #I4JI71
  • doc(#I4JD6J): 更新 BootstrapAdmin 链接地址 #I4JD6J
  • doc(#I4JC5Q): 新增 IDispatchService 消息分发服务示例 #I4JC5Q
  • doc(#I4JBGV): 演示网站增加推送代码到仓库时自动推送通知功能 #I4HX4C
  • doc(#I4HX4C): 更新组件 Title 文档 NET6.0 中可使用 PageTitle #I4HX4C
  • doc(#I4HTV1): 演示网站使用 NET6.0 模板 #I4HTV1

单元测试

  • test(#I4LPGB): 增加 NullSwitch 单元测试 #I4LPGB
  • test(#I4LPGA): 增加 Switch 单元测试 #I4LPGA
  • test(#I4LPFS): 增加 Tag 单元测试 #I4LPFS
  • test(#I4LPFF): 增加 Menu 单元测试 #I4LPFF
  • test(#I4LPFE): 增加 ColorPicker 单元测试 #I4LPFE
  • test(#I4LJ8J): 增加 QRCode 单元测试 #I4LJ8J
  • test(#I4L86X): 增加 DialogService 单元测试 #I4L86X
  • test(#I4L4S3): 增加 ModalDialog 单元测试 #I4L4S3
  • test(#I4L4PF): 增加 Modal 单元测试 #I4L4PF
  • test(#I4L4IK): 增加 Print 单元测试 #I4L4IK
  • test(#I4L3JS): 增加 ErrorLogger 单元测试 #I4L3JS
  • test(#I4L2HN): 增加 Button 单元测试 #I4L2HN
  • test(#I4K54E): 增加 GoTop 单元测试 #I4K54E
  • test(#I4K52R): 增加 BootstrapInput 单元测试 #I4K52R
  • test(#I4K40V): 增加 ...
Read more

Bootstrap Blazor V5.6.0

12 Aug 06:43
Compare
Choose a tag to compare

2021-8-12 V5.6.0

Features

  • feat: add ActiveTab method on Tab conponent
  • feat: Switch compatible align parameter inside Table
  • feat: new NullSwitch component for Nullable
  • feat: Table compatible inside ValidateForm
  • feat: Table filter function compatible int double decimal
  • feat: Table in EditForm EditInCell mode can set Readonly to readonly when edit and editable in new item
  • feat: Table add OnAfterSaveAsync callback function
  • feat: Search aufo focus after click Search button
  • feat: Table SearchDialog support Inline layout

Fixes

  • fix: EditDialog filter Editable is true items for shown
  • fix: PopconfirmButon flash when second click
  • fix: Table should be clear the checked row after click New button
  • fix: Table can not click New Edit button after click Delete button
  • fix: Table EditDialog will throw exception when property type is Double
  • fix: MultiSelect don't show the arrow when pop up
  • fix: remove dropdown-menu style keep the original style of bootstrap

Bootstrap Blazor V5.5.0

05 Aug 05:18
Compare
Choose a tag to compare

Features

feat: Table in EditForm mode support custom layout and labels alignment
feat: Table support add new row in EditInCell mode
feat: Search add IsAutoFocus IsAutoClearAfterSearch parameter to automatically focus and automatically clear the search box
feat: Table EditDialogItemsPerRow EditDialogRowType EditDialogLabelAlign is used to set the layout of the built-in pop-up window and label alignment
feat: Dialog add Class attribute to customize the style of dialog body
feat: Table add ShowEmpty parameter for display the state of no data
feat: ColorPicker rewrite use the bootstrap component
feat: SearchDalog add LabelAlign parameter for set the alignment of the front label in the input element
feat: EditDialog add the LabelAlign parameter for set the alignment of the front label in the input element
feat: EditorForm add the LabelAlign parameter for set the alignment of the front label in the input element
feat: Spinner supprtss the bs5
feat: Checkbox supports the Inline layout in Row component
feat: Button adds btn-block style compatible with bs4
feat: EditDalog support Inline layout
feat: SearchDalog support Inline layout
feat: EditForm support Inline layout
feat: Row add Inline layout
feat: Table set ShowColumnList="true" the shown dropdown prohibit automatic closing after click column item
feat: Toast set z-index to 1090 when body has class modal-open

Fixes

fix: Markdown not shown the content when use async method get the Value
fix: Tab tabs-body height not 100% when set Alignment="Bottom"
fix: Table not show the Cancel button when set ShowDeleteButton="false"
fix: DateTimePicker can not pick the day that disabled in preveiw Month
fix: DateTimePicker can pick the day out of range that MinValue or MaxValue
fix: NavLink will be set Active in the route / page
fix: Table throw exception when set ShowDetailRow="true" used the Items as data source
fix: Title set to scope service