MyGit

v0.2.7

dream-num/univer

版本发布时间: 2024-08-10 12:23:34

dream-num/univer最新发布版本:v0.2.9(2024-08-23 19:56:49)

🎊 Univer@v0.2.7

Univer Banner

🚧 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:

Univer Sheet Supports Pivot Table(beta)

  1. Install the following packages:
pnpm add @univerjs-pro/pivot-engine @univerjs-pro/sheets-pivot @univerjs-pro/sheets-pivot-ui
  1. Import the plugins:
import '@univerjs-pro/sheets-pivot-ui/lib/index.css';

import { UniverSheetsPivotTablePlugin } from '@univerjs-pro/sheets-pivot'
import { UniverSheetsPivotTableUIPlugin } from '@univerjs-pro/sheets-pivot-ui'
  1. Add locale resources:
import { LocaleType, Tools } from '@univerjs/core'
+ import UniverSheetsPivotEnUs from '@univerjs-pro/sheets-pivot/locale/en-US';
+ import UniverSheetsPivotUiEnUs from '@univerjs-pro/sheets-pivot-ui/locale/en-US';


const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.EN_US,
  locales: {
    [LocaleType.EN_US]: Tools.deepMerge(
+      UniverSheetsPivotEnUs,
+      UniverSheetsPivotUiEnUs
    ),
  },
});
  1. Register the plugin:
// tip: Please note that the configs in the beta version are not stable, and be mindful of future updates.
univer.registerPlugin(UniverSheetsPivotTablePlugin, {
  notExecuteFormula: true,
  isServer: true,
})
univer.registerPlugin(UniverSheetsPivotTableUIPlugin)

Univer Sheet supports restoration from history.

To use this feature, please refer to the documentation and install version 0.2.7 of the Univer server first.

  1. Install the following packages:
pnpm add @univerjs-pro/edit-history-viewer @univerjs-pro/edit-history-loader
  1. Import the plugins:
import '@univerjs-pro/edit-history-viewer/lib/index.css'

import { UniverEditHistoryLoaderPlugin } from '@univerjs-pro/edit-history-loader'
  1. Add locale resources:
import { LocaleType, Tools } from '@univerjs/core'
+ import EditHistoryViewerEnUS from '@univerjs-pro/edit-history-viewer/locale/en-US'


const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.EN_US,
  locales: {
    [LocaleType.EN_US]: Tools.deepMerge(
+      EditHistoryViewerEnUS
    ),
  },
});
  1. Register the plugin:
// need equal to the univer container id, if not set, default is univer-container
const configService = univer.__getInjector().get(IConfigService);
configService.setConfig('UNIVER_CONTAINER_ID', `univer`)
univer.registerPlugin(UniverEditHistoryLoaderPlugin)

Univer Sheet supports comments

  1. Install the following packages:
pnpm add @univerjs/thread-comment-ui @univerjs/sheets-thread-comment
  1. Import the plugins:
import '@univerjs/thread-comment-ui/lib/index.css'

import { UniverSheetsThreadCommentPlugin } from '@univerjs/sheets-thread-comment'
  1. Add locale resources:
import { LocaleType, Tools } from '@univerjs/core'
+ import UniverThreadCommentUiEnUs from '@univerjs/thread-comment-ui/locale/en-US';
+ import UniverSheetsThreadCommentEnUs from '@univerjs/sheets-thread-comment/locale/en-US';

const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.EN_US,
  locales: {
    [LocaleType.EN_US]: Tools.deepMerge(
+      UniverThreadCommentUiEnUs
+      UniverSheetsThreadCommentEnUs
    ),
  },
});
  1. Register the plugin:
univer.registerPlugin(UniverSheetsThreadCommentPlugin);

Univer Doc supports comments

  1. Install the following packages:
pnpm add @univerjs/thread-comment-ui @univerjs/docs-thread-comment-ui
  1. Import the plugins:
import '@univerjs/thread-comment-ui/lib/index.css'

import { UniverDocsThreadCommentUIPlugin } from '@univerjs/docs-thread-comment-ui'
  1. Add locale resources:
import { LocaleType, Tools } from '@univerjs/core'
+ import UniverThreadCommentUiEnUs from '@univerjs/thread-comment-ui/locale/en-US';

const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.EN_US,
  locales: {
    [LocaleType.EN_US]: Tools.deepMerge(
+      UniverThreadCommentUiEnUs
    ),
  },
});
  1. Register the plugin:
univer.registerPlugin(UniverDocsThreadCommentUIPlugin);

For more information, please visit the official website documentation.

🐞 Bug Fixes

🎢 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-08-10)

Bug Fixes

Features

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-08-10发行的版本