v0.2.6
版本发布时间: 2024-08-02 16:47:27
dream-num/univer最新发布版本:v0.2.9(2024-08-23 19:56:49)
🎊 Univer@v0.2.6
🚧 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!
🎉 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:
- Added 4 text formulas, 1 math formulas, and 10 find reference formulas. (169/508 formulas supported) #2842
- Support for custom number formats #2888
-
@univerjs-pro/sheets-print
now supports screenshots, with a right-click menu option to copy as an image.
🐞 Bug Fixes
- When destroying a Univer instance, leftover DOM from custom Vue3 components will be cleaned up #2892
- Fix error occurring after input cancellation #2907
💔 Breaking Changes
- Adjustments to the import and export plugin
@univerjs-pro/sheets-exchange-client
introduction
- Install the following packages:
-pnpm add @univerjs-pro/sheets-exchange-client
+pnpm add @univerjs-pro/exchange-client @univerjs-pro/sheets-exchange-client
- Import the plugins:
-import '@univerjs-pro/sheets-exchange-client/lib/index.css';
+import '@univerjs-pro/exchange-client/lib/index.css';
- Add locale resources:
-import SheetsExchangeClientEnUS from '@univerjs-pro/sheets-exchange-client/locale/en-US';
+import ExchangeClientEnUS from '@univerjs-pro/exchange-client/locale/en-US';
const univer = new Univer({
theme: defaultTheme,
locale: LocaleType.EN_US,
locales: {
[LocaleType.EN_US]: Tools.deepMerge(
- SheetsExchangeClientEnUS
+ ExchangeClientEnUS
),
},
});
- Plugin developers should be aware that the Injector parameter in onStarting will be deprecated in upcoming versions. Please transition to using class properties promptly #2903
export class UniverXXXPlugin extends Plugin {
static override type = UniverInstanceType.UNIVER_DOC;
static override pluginName = PLUGIN_NAME;
constructor(
private _config: unknown,
@Inject(Injector) protected override _injector: Injector
) {
super();
}
- override onStarting(injector: Injector): void {
+ override onStarting(): void {
- injector.add(dep);
+ this._injector.add(dep);
}
}
📢 Join the Conversation
We welcome your input and insights as we embark on this exciting journey. Connect with us on:
- :octocat: GitHub Discussions
- 👾 Discord
📝 Changelog
Full changelog (2024-08-02)
Bug Fixes
- doc: list update (#2862) (b045042)
- docs-drawing: formula ts error & docs-drawing load error (#2879) (1182bee)
- drawing: update (#2871) (1880552)
- formula: fix formula parameter assignment (#2905) (8fb9655)
- ref selection should call updateSelection after skelenton change (#2839) (d37f669)
- sheet: fix expand range performance (#2882) (0de3488)
- sheet: parse snapshot string (#2897) (f4fe38d)
- ui: ensure container DOM is removed when destroying Vue 3 components (#2892) (5c38528)
- unitId type error in handle editor invisible (#2907) (5e09017)
- use new selectionData not workbook._worksheetSelections (#2909) (b597194)
Features
- deprecated float-dom.props (#2864) (43220a1)
- docs-ui: debounce doc-hover event (#2865) (ce949fd)
- docs-ui: doc daily optimization (#2869) (f0b6410)
- docs: doc-rename (#2891) (307d1de)
- formula: add some Text/Math/Lookup formulas (#2842) (778e371)
- numfmt: support custom format (#2888) (95314eb)
- sheet-data-valiation: using cell-raw on data-validation (#2878) (935bdba)
- slides: support partial slides function (#2890) (3a90918)