mirror of
https://github.com/dream-num/univer.git
synced 2026-10-02 04:24:34 +08:00
42 lines
1.3 KiB
Markdown
42 lines
1.3 KiB
Markdown
# @univerjs/sheets-numfmt
|
|
|
|
[](https://npmjs.com/package/@univerjs/sheets-numfmt)
|
|
[](https://npmjs.com/package/@univerjs/sheets-numfmt)
|
|
[](https://npmjs.com/package/@univerjs/sheets-numfmt)
|
|
|
|
`@univerjs/sheets-numfmt` adds core number-format services and commands for Univer Sheets.
|
|
|
|
## Package Overview
|
|
|
|
| Package | UMD global | CSS | Locales | Facade entry |
|
|
| --- | --- | :---: | :---: | :---: |
|
|
| `@univerjs/sheets-numfmt` | `UniverSheetsNumfmt` | No | No | Yes |
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
pnpm add @univerjs/sheets-numfmt
|
|
# or
|
|
npm install @univerjs/sheets-numfmt
|
|
```
|
|
|
|
Keep all `@univerjs/*` packages on the same version.
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';
|
|
|
|
univer.registerPlugin(UniverSheetsNumfmtPlugin);
|
|
```
|
|
|
|
## Integration Notes
|
|
|
|
Use this package with `@univerjs/sheets-numfmt-ui` when users need number-format menus and editors.
|
|
|
|
## Resources
|
|
|
|
- [Documentation](https://docs.univer.ai)
|
|
- [NPM package](https://npmjs.com/package/@univerjs/sheets-numfmt)
|
|
- [GitHub repository](https://github.com/dream-num/univer)
|