🎉 Release v0.5.2 #4382
Replies: 1 comment
-
🎊 [email protected]🚧 重要提示该项目仍在积极开发中,预计会有重大 API 更改。您的反馈至关重要!请提交 issues 和建议,帮助我们塑造 Univer 的未来。 🚀 快速开始如果您希望了解 Univer,请查看我们的入门文档。 📊 Univer Go Beta 发布!Important Univer Go Beta 版本现已发布! ✨ 有趣的例子
更多模板等你探索,欢迎分享你的模板! 现在可以下载适用于 Windows 的 Beta 版本。欢迎社区成员测试并分享反馈,帮助我们打造更好的产品! 📊 Univer Sheets🎉 新功能
import '@univerjs/sheets/facade';
// get active range list
const activeRangeList = univerAPI.getActiveWorkbook().getActiveRangeList(); import '@univerjs/sheets-ui/facade';
// hide selection
univerAPI.getActiveWorkbook().transparentSelection()
// show selection
univerAPI.getActiveWorkbook().showSelection()
import '@univerjs/sheets-drawing-ui/facade';
const activeSpreadsheet = univerAPI.getActiveWorkbook();
const activeSheet = activeSpreadsheet.getActiveSheet();
// insert image on A1
activeSheet.insertImage('https://avatars.githubusercontent.com/u/61444807?s=48&v=4', 0, 0);
import '@univerjs/network/facade';
univerAPI.getNetwork().get("/api.json")
.then(res => console.log('data', res.body))
.catch(e => console.log('error', e))
univerAPI.getNetwork().post("/api.json", { headers: {}, body: {} })
import '@univerjs/sheets-conditional-format/facade';
const workbook = univerAPI.getActiveWorkbook();
const worksheet = workbook.getActiveSheet();
// set style when cell not empty on A1:A100
const rule = worksheet.createConditionalFormattingRule()
.whenCellNotEmpty()
.setRanges([{ startRow: 0, endRow: 100, startColumn: 0, endColumn: 100 }])
.setItalic(true)
.setBackground('red')
.setFontColor('green')
.build();
worksheet.addConditionalFormattingRule(rule);
import '@univerjs/sheets-sort/facade';
const workbook = univerAPI.getActiveWorkbook();
const worksheet = workbook.getActiveSheet();
const range = worksheet.getRange("A1:B3");
// sort A1:B3 by column B in ascending order
range.sort({column: range.getColumn() + 1 ,ascending:true})
import '@univerjs/ui/facade';
// create a custom menu on ribbon
univerAPI.createMenu({
id: 'custom-menu-id',
title: 'Custom Text',
tooltip:'This tip show on hover.',
action: () => {
console.log('Custom Text');
},
}).appendTo('ribbon.start.others');
// show message
univerAPI.showMessage({ content:"Hello, Univer!" })
import '@univerjs/sheets/facade';
const workbook = univerAPI.getActiveWorkbook();
workbook.insertDefinedName('MyDefinedName', 'Sheet1!A1');
const definedNames = workbook.getDefinedNames(); import '@univerjs/sheets-ui/facade';
// get scroll state
univerAPI.getActiveWorkbook().getActiveSheet().getScrollState();
// scroll Event
univerAPI.getActiveWorkbook().getActiveSheet().onScroll((state) => {
console.log('scroll', state);
});
import '@univerjs/sheets/facade';
const range = univerAPI.getActiveWorkbook().getActiveRange().getA1Notation();
// convert range to A1:B3
range.getA1Notation(); 🐞 Bug 修复
💔 破坏性变更
安装 -pnpm i @univerjs-pro/collaboration @univerjs-pro/collaboration-client
+pnpm i @univerjs-pro/collaboration @univerjs-pro/collaboration-client @univerjs-pro/collaboration-client-ui 使用 import { UniverCollaborationClientPlugin } from '@univerjs-pro/collaboration-client';
+import { UniverCollaborationClientUIPlugin } from '@univerjs-pro/collaboration-client-ui';
-import '@univerjs-pro/collaboration-client-ui/lib/index.css';
+import '@univerjs-pro/collaboration-client/lib/index.css';
univer.registerPlugin(UniverCollaborationClientPlugin, {
...
});
+univer.registerPlugin(UniverCollaborationClientUIPlugin);
-import { CollabrationImageIoService } from '@univerjs-pro/collaboration-client'
+import { CollaborationImageIoService } from '@univerjs-pro/collaboration-client'
interface FWorkSheet {
...
- closePrintDialog(): boolean;
- openPrintDialog(): boolean;
- print(): boolean;
+ closePrintDialog(): void;
+ openPrintDialog(): void;
+ print(): void;
...
} 📢 0.6.0 预告 Important 目前 0.6.0 正在开发中,此版本开始 Univer 将支持与 React@19 的项目进行集成,届时可能会对使用 React@16 和 Univer UMD 制品 的用户造成一定程度的破坏性更新。 📝 Univer Docs修复已知的渲染问题 #4219 🌐 Univer Server修复已知问题,提升服务稳定性 📦 Univer Presets🎉 新功能
🐞 Bug 修复
💔 破坏性变更
-import { HTTPService } from '@univerjs/presets'
+import { HTTPService } from '@univerjs/presets/preset-sheets-advanced'
🎢 特别感谢感谢以下社区用户为本次发布做出的杰出贡献: 📢 加入讨论我们欢迎您的参与和见解,一起踏上这个激动人心的旅程。请通过以下方式与我们联系: 📝 更新日志完整的更新日志 (2024-12-28) |
Beta Was this translation helpful? Give feedback.
-
🎊 [email protected]
🚧 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!
📊 Introducing Univer Go Beta!
Important
Univer Go Beta is now available!
We are excited to announce the release of Univer Go, a new desktop application that enables you to build your own spreadsheet and seamlessly integrate with AI agents, databases, and applications.
✨ Fun Built-in Templates
More templates are waiting for you to explore. Feel free to share your templates with us!
Beta version is now available for both Windows. We welcome community members to test it out and share their feedback to help us improve the platform!
📊 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:
Univer.onDispose
for cleanup work fix(examples): fix external worker not terminated on Univer disposing #4218🐞 Bug Fixes
XLOOKUP
formula function #4277SUMIFS
formula function fix(formula): fix compare of range and criteria in related formulas #4216PRODUCT
formula function fix(formula): fix product formula #4273💔 Breaking Changes
@univerjs-pro/collaboration-client
has been split into three packages:@univerjs-pro/collaboration-client
@univerjs-pro/collaboration-client-node
@univerjs-pro/collaboration-client-ui
📢 0.6.0 Preview
Important
The development of version 0.6.0 is currently underway. Starting with this release, Univer will support integration with projects using React@19 . However, this update may introduce breaking changes for users relying on React@16 or Univer UMD builds.
If you have any questions or concerns, please feel free to share your suggestions and feedback via GitHub Issues.
📝 Univer Docs
Fixed known rendering issues #4219
🌐 Univer Server
Fixed known issues and improved service stability
📦 Univer Presets
🎉 Highlights
🐞 Bug Fixes
💔 Breaking Changes
@univerjs/presets
should now be imported through specific preset entries:@univerjs-pro/thread-comment-datasource
has been removed from presets, requires separate registration if needed.🎢 Special Thanks
Special thanks to the following contributors who have made this release possible:
📢 Join the Conversation
We welcome your input and insights as we embark on this exciting journey. Connect with us on:
📝 Changelog
Full changelog (2024-12-28)
Bug Fixes
DocsDrawingController
dependency (#4203) (5a13fd1)Features
This discussion was created from the release 🎉 Release v0.5.2.
Beta Was this translation helpful? Give feedback.
All reactions