🎉 Release v0.2.12 #3371
Closed
hexf00
announced in
Announcements | 公告
Replies: 1 comment
-
🎊 Univer@v0.2.12🚧 重要提示该项目仍在积极开发中,预计会有重大 API 更改。您的反馈至关重要!请提交 issues 和建议,帮助我们塑造 Univer 的未来。 🚀 快速开始如果您希望了解 Univer,请查看我们的入门文档。 📊 Univer Sheets🎉 新功能
🐞 Bug 修复
💔 破坏性变更新的自定义菜单方式 重构了菜单服务和配置服务 (#3246)。目的是为了无法指定菜单排序以及为了之后提供简化注册菜单和提供更多自定义配置能力做准备。 此变更显著改变了菜单项的注册和配置方式。主要差异如下:
- @IMenuService private readonly _menuService: IMenuService,
+ @IMenuManagerService private readonly _menuMangerService: IMenuManagerService,
- this.disposeWithMe(this._menuService.addMenuItem(this._injector.invoke(MenuItemFactory), {}));
+ this._menuMangerService.mergeMenu({
+ [RibbonStartGroup.OTHERS]: {
+ [MenuItemId]: {
+ order: 10,
+ menuItemFactory: MenuItemFactory
+ },
+ // ... other menu items
+ },
+ // ... other menu groups
+ });
return {
id: MENU_ITEM_ID,
type: MenuItemType.BUTTON,
icon: 'IconName',
tooltip: 'tooltipKey',
title: 'titleKey',
- group: MenuGroup.TOOLBAR_FORMULAS_INSERT,
- positions: [MenuPosition.TOOLBAR_START, MenuPosition.CONTEXT_MENU],
}; 这些变更提供了更集中和结构化的菜单管理方法。Univer 插件开发者需要更新菜单注册代码以适应新结构。 📝 Univer Docs
📢 加入讨论我们欢迎您的参与和见解,一起踏上这个激动人心的旅程。请通过以下方式与我们联系: 📝 更新日志完整的更新日志 (2024-09-07) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🎊 Univer@v0.2.12
🚧 Important Note
This project is still in heavy development, and major API changes are expected. Your feedback is crucial! Please submit issues and suggestions to help us shape the future of Univer.
🚀 Getting Started
If you're eager to explore Univer, check out our getting started documentation.
Dive into the world of collaborative document, spreadsheet, and presentation editing powered by Univer!
📊 Univer Sheets
🎉 Highlights
In this release, we are excited to introduce a new set of features and improvements to enhance your Univer experience. Here are the highlights:
allowTransform
tofalse
when adding them to a worksheet. feat(sheets-drawing-ui): support disable transform on float dom #3342ISFORMULA
,N
, andNA
. feat(formula): isformula/n/na #3304FRange.getValues
), simplified merge operations, clipboard functionality, and selection management. feat(facade): add FRange.getValues api #3344 feat(facade): add merge facade api #3289 feat(facade): add clipboard hooks and selection api #3216🐞 Bug Fixes
💔 Breaking Changes
A new way to customize the menu
Refactored the menu service and configuration service (#3246).
The purpose is to prepare for the inability to specify menu sorting and to provide simplified registration of menus and more customization capabilities in the future.
Key differences:
IMenuService
for menu managementIMenuManagerService
IMenuService
will provide several versions of fallback compatibility for developers to migrate.addMenuItem
mergeMenu
method to define the entire menu structurepositions
andgroup
properties in menu item definitionsmergeMenu
method, rather than in the menu item definition itselfThese changes provide a more centralized and structured approach to menu management. Univer plugin developers will need to update their menu registration code to align with this new structure.
📝 Univer Docs
📢 Join the Conversation
We welcome your input and insights as we embark on this exciting journey. Connect with us on:
📝 Changelog
Full changelog (2024-09-07)
Bug Fixes
Features
This discussion was created from the release 🎉 Release v0.2.12.
Beta Was this translation helpful? Give feedback.
All reactions