@univerjs/core 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/lib/cjs/index.js +8 -8
- package/lib/es/index.js +2754 -2664
- package/lib/types/common/equal.d.ts +20 -0
- package/lib/types/index.d.ts +10 -1
- package/lib/types/services/lifecycle/lifecycle.d.ts +31 -1
- package/lib/types/services/undoredo/undoredo.service.d.ts +10 -0
- package/lib/types/shared/index.d.ts +1 -0
- package/lib/types/shared/object-matrix-query.d.ts +4 -0
- package/lib/types/shared/object-matrix.d.ts +2 -1
- package/lib/types/shared/tools.d.ts +2 -0
- package/lib/types/sheets/empty-snapshot.d.ts +4 -0
- package/lib/types/sheets/view-model.d.ts +6 -6
- package/lib/types/types/const/const.d.ts +0 -5
- package/lib/types/types/enum/data-validation-error-style.d.ts +20 -0
- package/lib/types/types/enum/data-validation-ime-mode.d.ts +28 -0
- package/lib/types/types/enum/data-validation-operator.d.ts +25 -0
- package/lib/types/types/enum/data-validation-render-mode.d.ts +20 -0
- package/lib/types/types/enum/data-validation-status.d.ts +20 -0
- package/lib/types/types/enum/data-validation-type.d.ts +36 -0
- package/lib/types/types/interfaces/i-cell-custom-render.d.ts +28 -0
- package/lib/types/types/interfaces/i-cell-data.d.ts +16 -0
- package/lib/types/types/interfaces/i-cell-validation-data.d.ts +9 -0
- package/lib/types/types/interfaces/i-data-validation.d.ts +44 -0
- package/lib/umd/index.js +8 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -34,3 +34,25 @@ npm install @univerjs/core
|
|
|
34
34
|
# Using pnpm
|
|
35
35
|
pnpm add @univerjs/core
|
|
36
36
|
```
|
|
37
|
+
|
|
38
|
+
### Configuration
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import { Univer } from '@univerjs/core';
|
|
42
|
+
|
|
43
|
+
new Univer({
|
|
44
|
+
theme: defaultTheme,
|
|
45
|
+
locale: LocaleType.ZH_CN,
|
|
46
|
+
locales,
|
|
47
|
+
logLevel: LogLevel.VERBOSE,
|
|
48
|
+
});
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Options
|
|
52
|
+
|
|
53
|
+
| Name | Type | Default | Description |
|
|
54
|
+
| --- | --- | --- | --- |
|
|
55
|
+
| theme | [Theme](https://univer.ai/api/design/#built-in-themes) | - | The theme of the application, which is used to control the appearance of the application. |
|
|
56
|
+
| locale | [LocaleType](https://univer.ai/api/core/enums/LocaleType.html) | `LocaleType.ZH_CN` | The locale of the application. The default value is `LocaleType.ZH_CN`.
|
|
57
|
+
| locales | [ILocales](https://univer.ai/api/core/interfaces/ILocales.html) | - | The supported locales of the application. By default, the application supports Chinese.
|
|
58
|
+
| logLevel | [LogLevel](https://univer.ai/api/core/enums/LogLevel.html) | `LogLevel.SILENT` | The log level of the application. |
|