Skip to content

Commit d018f17

Browse files
authored
chore: update sdk to 0.17.0 (#91)
1 parent 448b520 commit d018f17

22 files changed

Lines changed: 1125 additions & 1312 deletions

File tree

app/[lang]/(home)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default async function Page({ params }: IProps) {
8585
dark:bg-neutral-800
8686
dark:hover:bg-neutral-900
8787
`}
88-
href="https://github.com/dream-num/univer/releases/tag/v0.16.1"
88+
href="https://github.com/dream-num/univer/releases/tag/v0.17.0"
8989
>
9090
<span
9191
className={`

components/ribbon-style.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs'
55
import { clsx } from '@/lib/clsx'
66

77
export default function RibbonStyle() {
8-
const [ribbonType, setRibbonType] = useState<string>('default')
8+
const [ribbonType, setRibbonType] = useState<string>('classic')
99

1010
return (
1111
<div>
12-
<Tabs className="mb-2" defaultValue="default" onValueChange={setRibbonType}>
12+
<Tabs className="mb-2" defaultValue="classic" onValueChange={setRibbonType}>
1313
<TabsList>
14-
<TabsTrigger value="default">default</TabsTrigger>
1514
<TabsTrigger value="classic">classic</TabsTrigger>
15+
<TabsTrigger value="collapsed">collapsed</TabsTrigger>
1616
<TabsTrigger value="simple">simple</TabsTrigger>
1717
</TabsList>
1818
</Tabs>

content/guides/docs/features/core/index.ja-JP.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ interface IUniverDocsCorePresetConfig {
124124
header?: boolean
125125
// ヘッダーツールバーを表示するか
126126
toolbar?: boolean
127-
// ヘッダーツールバーの種別。default: コンパクト; classic: クラシック; simple: 非グループ
127+
// ヘッダーツールバーの種別。'classic': デフォルトのクラシック; 'collapsed': コンパクト; 'simple': 非グループ
128128
ribbonType?: RibbonType
129129
// フッターを表示するか
130130
footer?: boolean

content/guides/docs/features/core/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ interface IUniverDocsCorePresetConfig {
124124
header?: boolean
125125
// Whether to show the header toolbar
126126
toolbar?: boolean
127-
// The type of the header toolbar. default: default compact mode; classic: classic mode; simple: ungrouped mode
127+
// The type of the header toolbar. 'classic': default classic mode; 'collapsed': compact mode; 'simple': ungrouped mode
128128
ribbonType?: RibbonType
129129
// Whether to show the footer
130130
footer?: boolean
@@ -265,7 +265,7 @@ interface IUniverUIConfig {
265265
header?: boolean
266266
// Whether to show the header toolbar
267267
toolbar?: boolean
268-
// The type of the header toolbar. default: default compact mode; classic: classic mode; simple: ungrouped mode
268+
// The type of the header toolbar. 'classic': default classic mode; 'collapsed': compact mode; 'simple': ungrouped mode
269269
ribbonType?: RibbonType
270270
// Whether to show the context menu
271271
contextMenu?: boolean

content/guides/docs/features/core/index.zh-CN.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ interface IUniverDocsCorePresetConfig {
124124
header?: boolean
125125
// 是否显示头部工具栏
126126
toolbar?: boolean
127-
// 头部工具栏的类型。default: 默认紧凑模式;classic: 经典模式;simple:不分组模式
127+
// 头部工具栏的类型。'classic': 默认经典模式;'collapsed': 紧凑模式;'simple':不分组模式
128128
ribbonType?: RibbonType
129129
// 是否显示底部。
130130
footer?: boolean
@@ -265,7 +265,7 @@ interface IUniverUIConfig {
265265
header?: boolean
266266
// 是否显示头部工具栏
267267
toolbar?: boolean
268-
// 头部工具栏的类型。default: 默认紧凑模式;classic: 经典模式;simple:不分组模式
268+
// 头部工具栏的类型。'classic': 默认经典模式;'collapsed': 紧凑模式;'simple':不分组模式
269269
ribbonType?: RibbonType
270270
// 是否显示右键菜单
271271
contextMenu?: boolean

content/guides/docs/features/core/index.zh-TW.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ interface IUniverDocsCorePresetConfig {
124124
header?: boolean
125125
// 是否顯示頭部工具欄
126126
toolbar?: boolean
127-
// 頭部工具欄的類型。default: 默認緊湊模式;classic: 經典模式;simple:不分組模式
127+
// 頭部工具欄的類型。'classic': 默認經典模式;'collapsed': 緊湊模式;'simple':不分組模式
128128
ribbonType?: RibbonType
129129
// 是否顯示底部。
130130
footer?: boolean
@@ -265,7 +265,7 @@ interface IUniverUIConfig {
265265
header?: boolean
266266
// 是否顯示頭部工具欄
267267
toolbar?: boolean
268-
// 頭部工具欄的類型。default: 默認緊湊模式;classic: 經典模式;simple:不分組模式
268+
// 頭部工具欄的類型。'classic': 默認經典模式;'collapsed': 緊湊模式;'simple':不分組模式
269269
ribbonType?: RibbonType
270270
// 是否顯示右鍵菜單
271271
contextMenu?: boolean

content/guides/sheets/features/core/index.ja-JP.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ interface IUniverSheetsCorePresetConfig {
148148
header?: boolean
149149
// ヘッダーツールバー表示有無
150150
toolbar?: boolean
151-
// ツールバー種別。default: デフォルトコンパクトモード;classic: クラシックモード;simple: 非グループ化モード
151+
// ツールバー種別。'classic': デフォルトのクラシックモード;'collapsed': コンパクトモード;'simple': 非グループ化モード
152152
ribbonType?: RibbonType
153153
// フッター表示設定
154154
footer?: false | {
@@ -357,7 +357,7 @@ interface IUniverUIConfig {
357357
header?: boolean
358358
// ヘッダーツールバー表示有無
359359
toolbar?: boolean
360-
// ツールバー種別。default: デフォルトコンパクトモード;classic: クラシックモード;simple: 非グループ化モード
360+
// ツールバー種別。'classic': デフォルトのクラシックモード;'collapsed': コンパクトモード;'simple': 非グループ化モード
361361
ribbonType?: RibbonType
362362
// コンテキストメニュー表示有無
363363
contextMenu?: boolean
@@ -475,8 +475,8 @@ interface IUniverSheetsUIConfig {
475475

476476
`ribbonType` は以下の三つのモードをサポートします:
477477

478-
- `default`:デフォルトのコンパクトモード。グループとツールバーが同じ行に並び、垂直スペースが限られたシナリオに適しています
479-
- `classic`:クラシックモード。グループが上部、ツールバーが下部に配置され、従来のレイアウトに慣れたユーザーに適しています
478+
- `classic`:デフォルトのクラシックモード。グループが上部、ツールバーが下部に配置され、従来のレイアウトに慣れたユーザーに適しています
479+
- `collapsed`:コンパクトモード。グループとツールバーが同じ行に並び、垂直スペースが限られたシナリオに適しています
480480
- `simple`:非グループ化モード。 すべてのツールが一つのリストに並び、ツールバーの機能に精通したユーザーに適しています。
481481

482482
<RibbonStyle />

content/guides/sheets/features/core/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ interface IUniverSheetsCorePresetConfig {
148148
header?: boolean
149149
// Whether to show the header toolbar
150150
toolbar?: boolean
151-
// The type of the header toolbar. default: default compact mode; classic: classic mode; simple: ungrouped mode
151+
// The type of the header toolbar. 'classic': default classic mode; 'collapsed': compact mode; 'simple': ungrouped mode
152152
ribbonType?: RibbonType
153153
// Whether to show the footer
154154
footer?: false | {
@@ -357,7 +357,7 @@ interface IUniverUIConfig {
357357
header?: boolean
358358
// Whether to show the header toolbar
359359
toolbar?: boolean
360-
// The type of the header toolbar. default: default compact mode; classic: classic mode; simple: ungrouped mode
360+
// The type of the header toolbar. 'classic': default classic mode; 'collapsed': compact mode; 'simple': ungrouped mode
361361
ribbonType?: RibbonType
362362
// Whether to show the context menu
363363
contextMenu?: boolean
@@ -475,8 +475,8 @@ By configuring the `ribbonType` property in `IUniverSheetsCorePresetConfig` or `
475475

476476
`ribbonType` supports the following three modes:
477477

478-
- `default`: Default compact mode, where groups and the toolbar are laid out in the same row, suitable for scenarios with limited vertical screen space.
479-
- `classic`: Classic mode, with groups on top and the toolbar laid out below, suitable for users accustomed to traditional layouts.
478+
- `classic`: Default classic mode, with groups on top and the toolbar laid out below, suitable for users accustomed to traditional layouts.
479+
- `collapsed`: Compact mode, where groups and the toolbar are laid out in the same row, suitable for scenarios with limited vertical screen space.
480480
- `simple`: Ungrouped mode, where all tools are placed in a flat list, suitable for users familiar with toolbar functions.
481481

482482
<RibbonStyle />

content/guides/sheets/features/core/index.zh-CN.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ interface IUniverSheetsCorePresetConfig {
148148
header?: boolean
149149
// 是否显示头部工具栏
150150
toolbar?: boolean
151-
// 头部工具栏的类型。default: 默认紧凑模式;classic: 经典模式;simple:不分组模式
151+
// 头部工具栏的类型。'classic': 默认经典模式;'collapsed': 紧凑模式;'simple':不分组模式
152152
ribbonType?: RibbonType
153153
// 是否显示底部。
154154
footer?: false | {
@@ -357,7 +357,7 @@ interface IUniverUIConfig {
357357
header?: boolean
358358
// 是否显示头部工具栏
359359
toolbar?: boolean
360-
// 头部工具栏的类型。default: 默认紧凑模式;classic: 经典模式;simple:不分组模式
360+
// 头部工具栏的类型。'classic': 默认经典模式;'collapsed': 紧凑模式;'simple':不分组模式
361361
ribbonType?: RibbonType
362362
// 是否显示右键菜单
363363
contextMenu?: boolean
@@ -475,8 +475,8 @@ interface IUniverSheetsUIConfig {
475475

476476
`ribbonType` 支持设置为以下三种模式:
477477

478-
- `default`:默认紧凑模式,分组与工具栏平铺在同一行,适合垂直屏幕空间有限的场景
479-
- `classic`:经典模式,分组在上方,工具栏平铺在下方,适合习惯传统布局的用户
478+
- `classic`:默认经典模式,分组在上方,工具栏平铺在下方,适合习惯传统布局的用户
479+
- `collapsed`:紧凑模式,分组与工具栏平铺在同一行,适合垂直屏幕空间有限的场景
480480
- `simple`:不分组模式,将所有工具放在一个平铺的列表中,适合熟悉工具栏功能的用户。
481481

482482
<RibbonStyle />

content/guides/sheets/features/core/index.zh-TW.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ interface IUniverSheetsCorePresetConfig {
148148
header?: boolean
149149
// 是否顯示頭部工具列
150150
toolbar?: boolean
151-
// 頭部工具列的類型。default: 默認緊湊模式;classic: 經典模式;simple:不分組模式
151+
// 頭部工具列的類型。'classic': 默認經典模式;'collapsed': 緊湊模式;'simple':不分組模式
152152
ribbonType?: RibbonType
153153
// 是否顯示底部。
154154
footer?: false | {
@@ -357,7 +357,7 @@ interface IUniverUIConfig {
357357
header?: boolean
358358
// 是否顯示頭部工具列
359359
toolbar?: boolean
360-
// 頭部工具列的類型。default: 默認緊湊模式;classic: 經典模式;simple:不分組模式
360+
// 頭部工具列的類型。'classic': 默認經典模式;'collapsed': 緊湊模式;'simple':不分組模式
361361
ribbonType?: RibbonType
362362
// 是否顯示右鍵菜單
363363
contextMenu?: boolean
@@ -475,8 +475,8 @@ interface IUniverSheetsUIConfig {
475475

476476
`ribbonType` 支援設置為以下三種模式:
477477

478-
- `default`:默認緊湊模式,分組與工具列平鋪在同一行,適合垂直屏幕空間有限的場景
479-
- `classic`:經典模式,分組在上方,工具列平鋪在下方,適合習慣傳統佈局的用戶
478+
- `classic`:默認經典模式,分組在上方,工具列平鋪在下方,適合習慣傳統佈局的用戶
479+
- `collapsed`:緊湊模式,分組與工具列平鋪在同一行,適合垂直屏幕空間有限的場景
480480
- `simple`:不分組模式,將所有工具放在一個平鋪的列表中,適合熟悉工具列功能的用戶。
481481

482482
<RibbonStyle />

0 commit comments

Comments
 (0)