Some checks failed
📦 Build / build (push) Has been cancelled
🧪 CI Test / test shard (1/4) (push) Has been cancelled
🧪 CI Test / test shard (2/4) (push) Has been cancelled
🧪 CI Test / test shard (3/4) (push) Has been cancelled
🧪 CI Test / test shard (4/4) (push) Has been cancelled
🧪 CI Test / test (push) Has been cancelled
🧪 CI Test / eslint (push) Has been cancelled
🧪 CI Test / typecheck (push) Has been cancelled
🔫 Sync to Pro / dispatch-sync (push) Has been cancelled
🔮 Sync Mirror / sync (push) Has been cancelled
47 lines
1.5 KiB
Markdown
47 lines
1.5 KiB
Markdown
# @univerjs/sheets-ui
|
|
|
|
[](https://npmjs.com/package/@univerjs/sheets-ui)
|
|
[](https://npmjs.com/package/@univerjs/sheets-ui)
|
|
[](https://npmjs.com/package/@univerjs/sheets-ui)
|
|
|
|
`@univerjs/sheets-ui` provides the main spreadsheet UI layer for Univer Sheets, including selection, menus, clipboard, formula bar integration, and rendering interaction services.
|
|
|
|
## Package Overview
|
|
|
|
| Package | UMD global | CSS | Locales | Facade entry |
|
|
| --- | --- | :---: | :---: | :---: |
|
|
| `@univerjs/sheets-ui` | `UniverSheetsUi` | Yes | Yes | Yes |
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
pnpm add @univerjs/sheets-ui
|
|
# or
|
|
npm install @univerjs/sheets-ui
|
|
```
|
|
|
|
Keep all `@univerjs/*` packages on the same version.
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
import '@univerjs/sheets-ui/lib/index.css';
|
|
import EnUS from '@univerjs/sheets-ui/locale/en-US';
|
|
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';
|
|
|
|
univer.registerPlugin(UniverSheetsUIPlugin);
|
|
|
|
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
```
|
|
|
|
Exported plugin classes:
|
|
|
|
- `UniverSheetsUIPlugin`
|
|
- `UniverSheetsMobileUIPlugin`
|
|
|
|
## Resources
|
|
|
|
- [Documentation](https://docs.univer.ai)
|
|
- [NPM package](https://npmjs.com/package/@univerjs/sheets-ui)
|
|
- [GitHub repository](https://github.com/dream-num/univer)
|