Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions content/guides/sheets/features/core/index.ja-JP.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,27 @@ interface IUniverSheetsCorePresetConfig {
menus?: boolean
// 下部ズームスライダー
zoomSlider?: boolean
/**
* ワークシートバーの「ワークシートを追加」ボタンの設定。
*/
addSheetButtonConfig?: {
/**
* ワークシートバーの「ワークシートを追加」ボタンを表示するかどうか。
* `footer` または `footer.sheetBar` が false の場合、ワークシートバー自体が描画されないため、この設定は無効になります。
* @default true
*/
show?: boolean
/**
* 新しいワークシートのデフォルト行数。
* @default 1000
*/
defaultRowCount?: number
/**
* 新しいワークシートのデフォルト列数。
* @default 20
*/
defaultColumnCount?: number
}
}
// コンテキストメニュー表示有無
contextMenu?: boolean
Expand Down Expand Up @@ -442,6 +463,27 @@ interface IUniverSheetsUIConfig {
menus?: boolean
// ズームスライダー
zoomSlider?: boolean
/**
* ワークシートバーの「ワークシートを追加」ボタンの設定。
*/
addSheetButtonConfig?: {
/**
* ワークシートバーの「ワークシートを追加」ボタンを表示するかどうか。
* `footer` または `footer.sheetBar` が false の場合、ワークシートバー自体が描画されないため、この設定は無効になります。
* @default true
*/
show?: boolean
/**
* 新しいワークシートのデフォルト行数。
* @default 1000
*/
defaultRowCount?: number
/**
* 新しいワークシートのデフォルト列数。
* @default 20
*/
defaultColumnCount?: number
}
}
// 数式バー表示
formulaBar?: boolean
Expand Down
42 changes: 42 additions & 0 deletions content/guides/sheets/features/core/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,27 @@ interface IUniverSheetsCorePresetConfig {
menus?: boolean
// The zoom slider at the bottom.
zoomSlider?: boolean
/**
* The config of the add sheet button in the sheet bar.
*/
addSheetButtonConfig?: {
/**
* Whether to show the add sheet button in the sheet bar.
* When `footer` or `footer.sheetBar` is false, this config will not work because the sheet bar will not be rendered.
* @default true
*/
show?: boolean
/**
* The default row count of the new sheet created by the add sheet button.
* @default 1000
*/
defaultRowCount?: number
/**
* The default column count of the new sheet created by the add sheet button.
* @default 20
*/
defaultColumnCount?: number
}
}
// Whether to show the context menu
contextMenu?: boolean
Expand Down Expand Up @@ -442,6 +463,27 @@ interface IUniverSheetsUIConfig {
menus?: boolean
// The zoom slider at the bottom.
zoomSlider?: boolean
/**
* The config of the add sheet button in the sheet bar.
*/
addSheetButtonConfig?: {
/**
* Whether to show the add sheet button in the sheet bar.
* When `footer` or `footer.sheetBar` is false, this config will not work because the sheet bar will not be rendered.
* @default true
*/
show?: boolean
/**
* The default row count of the new sheet created by the add sheet button.
* @default 1000
*/
defaultRowCount?: number
/**
* The default column count of the new sheet created by the add sheet button.
* @default 20
*/
defaultColumnCount?: number
}
}
// Whether to show the formula bar
formulaBar?: boolean
Expand Down
42 changes: 42 additions & 0 deletions content/guides/sheets/features/core/index.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,27 @@ interface IUniverSheetsCorePresetConfig {
menus?: boolean
// 底部的缩放滑块。
zoomSlider?: boolean
/**
* 工作表栏中“添加工作表”按钮的配置。
*/
addSheetButtonConfig?: {
/**
* 是否显示工作表栏中的“添加工作表”按钮。
* 当 `footer` 或 `footer.sheetBar` 为 false 时,此配置将不起作用,因为工作表栏将不会被渲染。
* @default true
*/
show?: boolean
/**
* 新建工作表的默认行数。
* @default 1000
*/
defaultRowCount?: number
/**
* 新建工作表的默认列数。
* @default 20
*/
defaultColumnCount?: number
}
}
// 是否显示右键菜单
contextMenu?: boolean
Expand Down Expand Up @@ -442,6 +463,27 @@ interface IUniverSheetsUIConfig {
menus?: boolean
// 底部的缩放滑块。
zoomSlider?: boolean
/**
* 工作表栏中“添加工作表”按钮的配置。
*/
addSheetButtonConfig?: {
/**
* 是否显示工作表栏中的“添加工作表”按钮。
* 当 `footer` 或 `footer.sheetBar` 为 false 时,此配置将不起作用,因为工作表栏将不会被渲染。
* @default true
*/
show?: boolean
/**
* 新建工作表的默认行数。
* @default 1000
*/
defaultRowCount?: number
/**
* 新建工作表的默认列数。
* @default 20
*/
defaultColumnCount?: number
}
}
// 是否显示公式栏
formulaBar?: boolean
Expand Down
42 changes: 42 additions & 0 deletions content/guides/sheets/features/core/index.zh-TW.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,27 @@ interface IUniverSheetsCorePresetConfig {
menus?: boolean
// 底部的縮放滑塊。
zoomSlider?: boolean
/**
* 工作表欄中“添加工作表”按鈕的配置。
*/
addSheetButtonConfig?: {
/**
* 是否顯示工作表欄中的“添加工作表”按鈕。
* 當 `footer` 或 `footer.sheetBar` 為 false 時,此配置將不起作用,因為工作表欄將不會被渲染。
* @default true
*/
show?: boolean
/**
* 新建工作表的預設行數。
* @default 1000
*/
defaultRowCount?: number
/**
* 新建工作表的預設列數。
* @default 20
*/
defaultColumnCount?: number
}
}
// 是否顯示右鍵菜單
contextMenu?: boolean
Expand Down Expand Up @@ -442,6 +463,27 @@ interface IUniverSheetsUIConfig {
menus?: boolean
// 底部的縮放滑塊。
zoomSlider?: boolean
/**
* 工作表欄中“添加工作表”按鈕的配置。
*/
addSheetButtonConfig?: {
/**
* 是否顯示工作表欄中的“添加工作表”按鈕。
* 當 `footer` 或 `footer.sheetBar` 為 false 時,此配置將不起作用,因為工作表欄將不會被渲染。
* @default true
*/
show?: boolean
/**
* 新建工作表的預設行數。
* @default 1000
*/
defaultRowCount?: number
/**
* 新建工作表的預設列數。
* @default 20
*/
defaultColumnCount?: number
}
}
// 是否顯示公式欄
formulaBar?: boolean
Expand Down
30 changes: 28 additions & 2 deletions content/guides/sheets/features/images.ja-JP.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,22 @@ UniverSheetsDrawingPreset({
})
```

{/* ### Presets and Configuration */}
### Presets and Configuration

```typescript
interface IUniverSheetsDrawingPresetConfig {
/**
* コラボレーション編集機能を使用するかどうか。
* @default false
*/
collaboration?: boolean
/**
* アップロード画像の最大許容サイズをバイト単位で設定します。
* @default 5 * 1024 * 1024 (5MB)
*/
allowImageSize?: number
}
```

## プラグインモード

Expand Down Expand Up @@ -127,10 +142,21 @@ univer.registerPlugin(UniverSheetsDrawingUIPlugin) // [!code ++]
```typescript
univer.registerPlugin(UniverDrawingPlugin, {
override: [[IImageIoService, null]], // [!code ++]
// allowImageSize: 20 * 1024 * 1024, // アップロード画像の最大許容サイズを 20MB に設定します(任意)
})
```

{/* ### Plugins and Configuration */}
### Plugins and Configuration

```typescript
interface IUniverDrawingConfig {
/**
* アップロード画像の最大許容サイズをバイト単位で設定します。
* @default 5 * 1024 * 1024 (5MB)
*/
allowImageSize?: number
}
```

## Facade API

Expand Down
30 changes: 28 additions & 2 deletions content/guides/sheets/features/images.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,22 @@ UniverSheetsDrawingPreset({
})
```

{/* ### Presets and Configuration */}
### Presets and Configuration

```typescript
interface IUniverSheetsDrawingPresetConfig {
/**
* Whether use the collaboration feature.
* @default false
*/
collaboration?: boolean
/**
* The maximum allowed size of uploaded images in bytes.
* @default 5 * 1024 * 1024 (5MB)
*/
allowImageSize?: number
}
```

## Plugin Mode

Expand Down Expand Up @@ -127,10 +142,21 @@ If you are using the [collaboration](/guides/docs/features/collaboration) featur
```typescript
univer.registerPlugin(UniverDrawingPlugin, {
override: [[IImageIoService, null]], // [!code ++]
// allowImageSize: 20 * 1024 * 1024, // set the maximum allowed size of uploaded images to 20MB, optional
})
```

{/* ### Plugins and Configuration */}
### Plugins and Configuration

```typescript
interface IUniverDrawingConfig {
/**
* The maximum allowed size of uploaded images in bytes.
* @default 5 * 1024 * 1024 (5MB)
*/
allowImageSize?: number
}
```

## Facade API

Expand Down
30 changes: 28 additions & 2 deletions content/guides/sheets/features/images.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,22 @@ UniverSheetsDrawingPreset({
})
```

{/* ### 预设与配置 */}
### 预设与配置

```typescript
interface IUniverSheetsDrawingPresetConfig {
/**
* 是否使用了协同编辑功能。
* @default false
*/
collaboration?: boolean
/**
* 设置上传图片的最大允许大小,以字节为单位。
* @default 5 * 1024 * 1024 (5MB)
*/
allowImageSize?: number
}
```

## 插件模式

Expand Down Expand Up @@ -127,10 +142,21 @@ univer.registerPlugin(UniverSheetsDrawingUIPlugin) // [!code ++]
```typescript
univer.registerPlugin(UniverDrawingPlugin, {
override: [[IImageIoService, null]], // [!code ++]
// allowImageSize: 20 * 1024 * 1024, // 设置上传图片的最大允许大小为 20MB,非必需
})
```

{/* ### 插件与配置 */}
### 插件与配置

```typescript
interface IUniverDrawingConfig {
/**
* 设置上传图片的最大允许大小,以字节为单位。
* @default 5 * 1024 * 1024 (5MB)
*/
allowImageSize?: number
}
```

## Facade API

Expand Down
Loading
Loading