1.0.0-rc.1
Pre-release
Pre-release
Features
- Alert: support for
Title
parameter. - BaiduMap: a map component base on BaiduMap Javascript API GL, thanks to @msnoshain!
- DefaultsProvider: a component allows you to provide specific default prop values to components of your application.
- EnqueuedSnackbars: a stackable snackbars.
- MarkdownIt: a Markdown parser base on markdown-it.
- SyntaxHighlight: use themes from prism or highlight.js to highlight the the source code.
- Gridstack: a component for dashboard layout and creation base on gridstack.js.
- DataTable: dark supports for stripe (#880), closes #269.
- DataTable:
Events
andEventColor
supports (#887), closes #82. - DataTable: supports for click, dbclick and contextmenu on row (#1237), closes #1236.
- DataTable: supports for
ItemClass
with type ofFunc<TItem, string>
(#1250), closes #1245. - DatePicker: Localization enhancement (#1129).
- ECharts: improve the way to update themes (#869), closes #246.
- ECharts: support for handling mouse events.
- ProgressCircular:
BackgroundColor
supports (#804), closes #801. - Slider: support for other numeric types including double (#1050)。
- EllipsisText: the
text-overflow
is alwaysellipsis
, if the content overflows its container, the content would be displayed in the tooltip. - I18n: an I18n component, easy to localization.
- Menu:
Attach
supports. - MonacoEditor: a editor component base on MonacoEditor, thanks to @239573049!
- Theme: support for dynamic theme modification, closes #929, thanks to @LittleFish-233.
Breaking changes
- DataTable: the
Align
type of DataTable header changes to enum (#802), closes #712. - Checkbox/Switch:
TrueValue
andFalseValue
supports, closes #710. - Confirm: PConfirm has now been removed, please use PopupService.Confirm instead.
- Routable: The
Linkage
is renamed toRoutable
, and the affected components are MBreadcrumbs and MList. - Toasts: removed the PToasts component, and use the PEnqueuedSnackbars component instead.
- PopupService: removed
AlertAsync
和ToastAsync
, and useEnqueueSnackbarAsync
instead. - PageTabs: refactor and move PageTabs to presets.
- Tab: Content is no longer capitalized by default, (#1222).
- i18n: Instead of setting the default language in a localized JSON file via $Defaultculture , set it in the
Locale
option of theservices.AddMasaBlazor
(#1229).
For details, please see the Upgrade Guide.
Refactors
- The logic of registration and execution of activator events such as
click
,mouseenter
,mouseleave
,focus
andblur
has been moved to js. The scope of influence includes Tooltip, Menu, Hover, Dialog, BottomSheet, Drawer, Modal, PopupService and so on. - The implementation of outside-click has been moved to OutsideClickJSModule, and the scope of influence includes Dialog, BottomSheet, Drawer, Modal, PopupService, Autocomplete, Select and so on.
Bug fixes
- App: throw when js invoked on pre-rendering, closes #846.
- Autocomplete: The menu content obscures the input box in some cases (#1135), closes #1130.
- Button:
Elevation
doesn't work (#828). - BottomNavigation: crashed when
App
is enable (#799), closes #774. - BottomNavigation: InputValue should update the application's bottom (#997), closes #996.
- ExpansionPanels: components that wrap ExpansionPanel cannot be trigger, closes #843.
- FileInput:
HideInput
doesn't work. - FileInput:
IBrowserFile
does not have an associated TypeConverter that supports conversion from a string (#1109), closes #1092. - Image:
Src
with parenthesis aren't recognized (#1115), closes #1114. - Markdown: custom upload options don't work (#1217), closes #1214.
- PopupService: button position compatibility in confirm and prompt (#879), closes #874, thanks to @Yu-Core!
- ProgressCircular: hex color code doesn't work, closes #910.
- Radio:
OnIcon
andOffIcon
don't work (#1263), closes #1262。 - Select: auto scroll to the active item when open at the 1st time (#1256), closes #1249.
- Slider: get stuck when touchmove event invoked, closes #1041.
- Stepper: the error label has a shadow (#871), closes #265.
- Treeview:
AppendContent
should be exposed as a parameter (masastack/BlazorComponent#265), thanks to @tzm1119. - Treeview: conflict between
ActiveClass
andColor
(#956), closes #954.
Others
- We have updated the document UI and thank all contributors for your help.
- Added MASA Try site, online debugging component, thank you @239573049!
新特性
- Alert:支持
Title
参数。 - BaiduMap:一个基于 BaiduMap Javascript API GL 的地图组件,感谢 @msnoshain!
- DefaultsProvider: 允许您为应用程序的组件提供特定的默认属性值。
- EnqueuedSnackbars: 可堆栈的消息条。
- MarkdownIt:一个基于 markdown-it 的 Markdown 解析器。
- SyntaxHighlight:使用 prism 或 highlight.js 中的主题来高亮源代码。
- GridStack:基于 gridstack.js 的仪表板布局创建组件。
- DataTable:斑马纹支持暗主题 (#880),关闭 #269。
- DataTable:
Events
和EventColor
支持 (#887),关闭 #82。 - DataTable:支持行的点击,双击和右键事件 (#1237), 关闭 #1236。
- DataTable: 支持类型为
Func<TItem, string>
的ItemClass
参数 (#1250), 关闭 #1245. - DatePicker:本地化增强 (#1129)。
- ECharts:改进主题更新方式 (#869),关闭 #246。
- ECharts:支持处理鼠标事件。
- ProgressCircular:
BackgroundColor
支持 (#804),关闭 #801。 - Slider:支持其他数字类型,包括
double
(#1050)。 - EllipsisText:
text-overflow
始终为ellipsis
,如果内容溢出容器,则会在 tooltip 中显示内容。 - I18n:国际化组件,轻松使用本地化。
- Menu:
Attach
支持。 - MonacoEditor:一个基于MonacoEditor封装的编辑器,感谢 @239573049。
- Theme:支持动态切换浅色和深色主题,关闭 #929,感谢 @LittleFish-233。
破坏性更新
- DataTable:DataTable header 的
Align
类型变为枚举 (#802),关闭 #712。 - Checkbox/Switch:
TrueValue
和FalseValue
支持,关闭 #710。 - Confirm:PConfirm 现在已被移除,请改用
PopupService.Confirm
。 - Routable:
Linkage
重命名为Routable
,受影响的组件有 MBreadcrumbs 和 MList。 - Toasts:移除了 PToasts 组件,请使用 PEnqueuedSnackbars 组件代替。
- PopupService:移除了
AlertAsync
和ToastAsync
,请使用EnquueuSnackbarAsync
代替。 - PageTabs: 重构并将它移动到了预置组件类别中。
- Tab:Tab的内容不再默认大写了 (#1222)。
- i18n:删除了在本地化json文件中通过 $DefaultCulture 设置默认语言的方式,改为在
services.AddMasaBlazor
的Locale
选项中设置 (#1229)。
详情请查看升级指南。
重构
click
、mouseenter
、mouseleave
、focus
、blur
等激活器事件的注册和执行逻辑已移至js。影响的范围包括 Tooltip、Menu、Hover、Dialog、BottomSheet、Drawer、Modal、PopupService 等组件。- outside-click 的实现移到了 OutsideClickJSModule,影响的范围包括 Dialog、BottomSheet、Drawer、Modal、PopupService、AutoComplete、Select等组件。
问题修复
- App:在预渲染时调用js时抛出异常,关闭 #846。
- Button:
Elevation
不工作 (#828)。 - Autocomplete: 菜单内容在某些情况下会遮挡输入框 (#1135), 关闭 #1130.
- BottomNavigation:
App
开启时崩溃 (#799),关闭 #774。 - BottomNavigation:
InputValue
应该更新应用程序的Bottom值 (#997), 关闭 #996. - ExpansionPanels:包装ExpansionPanel的组件不能被触发,关闭 #843。
- FileInput:
HideInput
不起作用。 - FileInput:
IBrowserFile
没有支持从string
转换的关联TypeConverter (#1109), 关闭 #1092. - Image:无法识别带括号的
Src
(#1115), 关闭 #1114。 - Markdown: 自定义Upload选项不起作用 (#1217), 关闭 #1214.
- PopupService:确认提示中按钮位置兼容问题(#879),关闭 #874,感谢 @Yu-Core!
- ProgressCircular: 十六进制颜色不起作用, 关闭 #910.
- Radio:
OnIcon
和OffIcon
不起作用 (#1263), 关闭 #1262。 - Select:第一次打开时自动滚动到活动项目 (#1256), 关闭 #1249。
- Slider:调用 touchmove 事件时卡住,关闭 #1041.
- Stepper:错误标签有阴影 (#871),关闭 #265。
- Treeview:
AppendContent
应该公开为参数(masastack/BlazorComponent#265),这要感谢 @tzm1119。 - Treeview: 修复
ActiveClass
与Color
冲突的问题 (#956), 关闭 #954.
其他
- 我们更新了文档UI,并感谢各位贡献者朋友的帮助。
- 添加了 MASA Try 站点,在线调试组件,感谢 @239573049!