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
2 changes: 1 addition & 1 deletion app/[lang]/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default async function Page({ params }: IProps) {
dark:bg-neutral-800
dark:hover:bg-neutral-900
`}
href="https://github.com/dream-num/univer/releases/tag/v0.16.1"
href="https://github.com/dream-num/univer/releases/tag/v0.17.0"
>
<span
className={`
Expand Down
6 changes: 3 additions & 3 deletions components/ribbon-style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import { clsx } from '@/lib/clsx'

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

return (
<div>
<Tabs className="mb-2" defaultValue="default" onValueChange={setRibbonType}>
<Tabs className="mb-2" defaultValue="classic" onValueChange={setRibbonType}>
<TabsList>
<TabsTrigger value="default">default</TabsTrigger>
<TabsTrigger value="classic">classic</TabsTrigger>
<TabsTrigger value="collapsed">collapsed</TabsTrigger>
<TabsTrigger value="simple">simple</TabsTrigger>
</TabsList>
</Tabs>
Expand All @@ -32,7 +32,7 @@
>
{Array.from({ length: 12 + (ribbonType === 'simple' ? 8 : 0) }).map((_, index) => (
<li
key={index}

Check warning on line 35 in components/ribbon-style.tsx

View workflow job for this annotation

GitHub Actions / lint

Do not use item index in the array as its key
style={{
animationDelay: `${index * 50}ms`,
}}
Expand Down
2 changes: 1 addition & 1 deletion content/guides/docs/features/core/index.ja-JP.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ interface IUniverDocsCorePresetConfig {
header?: boolean
// ヘッダーツールバーを表示するか
toolbar?: boolean
// ヘッダーツールバーの種別。default: コンパクト; classic: クラシック; simple: 非グループ
// ヘッダーツールバーの種別。'classic': デフォルトのクラシック; 'collapsed': コンパクト; 'simple': 非グループ
ribbonType?: RibbonType
// フッターを表示するか
footer?: boolean
Expand Down
4 changes: 2 additions & 2 deletions content/guides/docs/features/core/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ interface IUniverDocsCorePresetConfig {
header?: boolean
// Whether to show the header toolbar
toolbar?: boolean
// The type of the header toolbar. default: default compact mode; classic: classic mode; simple: ungrouped mode
// The type of the header toolbar. 'classic': default classic mode; 'collapsed': compact mode; 'simple': ungrouped mode
ribbonType?: RibbonType
// Whether to show the footer
footer?: boolean
Expand Down Expand Up @@ -265,7 +265,7 @@ interface IUniverUIConfig {
header?: boolean
// Whether to show the header toolbar
toolbar?: boolean
// The type of the header toolbar. default: default compact mode; classic: classic mode; simple: ungrouped mode
// The type of the header toolbar. 'classic': default classic mode; 'collapsed': compact mode; 'simple': ungrouped mode
ribbonType?: RibbonType
// Whether to show the context menu
contextMenu?: boolean
Expand Down
4 changes: 2 additions & 2 deletions content/guides/docs/features/core/index.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ interface IUniverDocsCorePresetConfig {
header?: boolean
// 是否显示头部工具栏
toolbar?: boolean
// 头部工具栏的类型。default: 默认紧凑模式;classic: 经典模式;simple:不分组模式
// 头部工具栏的类型。'classic': 默认经典模式;'collapsed': 紧凑模式;'simple':不分组模式
ribbonType?: RibbonType
// 是否显示底部。
footer?: boolean
Expand Down Expand Up @@ -265,7 +265,7 @@ interface IUniverUIConfig {
header?: boolean
// 是否显示头部工具栏
toolbar?: boolean
// 头部工具栏的类型。default: 默认紧凑模式;classic: 经典模式;simple:不分组模式
// 头部工具栏的类型。'classic': 默认经典模式;'collapsed': 紧凑模式;'simple':不分组模式
ribbonType?: RibbonType
// 是否显示右键菜单
contextMenu?: boolean
Expand Down
4 changes: 2 additions & 2 deletions content/guides/docs/features/core/index.zh-TW.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ interface IUniverDocsCorePresetConfig {
header?: boolean
// 是否顯示頭部工具欄
toolbar?: boolean
// 頭部工具欄的類型。default: 默認緊湊模式;classic: 經典模式;simple:不分組模式
// 頭部工具欄的類型。'classic': 默認經典模式;'collapsed': 緊湊模式;'simple':不分組模式
ribbonType?: RibbonType
// 是否顯示底部。
footer?: boolean
Expand Down Expand Up @@ -265,7 +265,7 @@ interface IUniverUIConfig {
header?: boolean
// 是否顯示頭部工具欄
toolbar?: boolean
// 頭部工具欄的類型。default: 默認緊湊模式;classic: 經典模式;simple:不分組模式
// 頭部工具欄的類型。'classic': 默認經典模式;'collapsed': 緊湊模式;'simple':不分組模式
ribbonType?: RibbonType
// 是否顯示右鍵菜單
contextMenu?: boolean
Expand Down
8 changes: 4 additions & 4 deletions content/guides/sheets/features/core/index.ja-JP.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ interface IUniverSheetsCorePresetConfig {
header?: boolean
// ヘッダーツールバー表示有無
toolbar?: boolean
// ツールバー種別。default: デフォルトコンパクトモード;classic: クラシックモード;simple: 非グループ化モード
// ツールバー種別。'classic': デフォルトのクラシックモード;'collapsed': コンパクトモード;'simple': 非グループ化モード
ribbonType?: RibbonType
// フッター表示設定
footer?: false | {
Expand Down Expand Up @@ -357,7 +357,7 @@ interface IUniverUIConfig {
header?: boolean
// ヘッダーツールバー表示有無
toolbar?: boolean
// ツールバー種別。default: デフォルトコンパクトモード;classic: クラシックモード;simple: 非グループ化モード
// ツールバー種別。'classic': デフォルトのクラシックモード;'collapsed': コンパクトモード;'simple': 非グループ化モード
ribbonType?: RibbonType
// コンテキストメニュー表示有無
contextMenu?: boolean
Expand Down Expand Up @@ -475,8 +475,8 @@ interface IUniverSheetsUIConfig {

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

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

<RibbonStyle />
Expand Down
8 changes: 4 additions & 4 deletions content/guides/sheets/features/core/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ interface IUniverSheetsCorePresetConfig {
header?: boolean
// Whether to show the header toolbar
toolbar?: boolean
// The type of the header toolbar. default: default compact mode; classic: classic mode; simple: ungrouped mode
// The type of the header toolbar. 'classic': default classic mode; 'collapsed': compact mode; 'simple': ungrouped mode
ribbonType?: RibbonType
// Whether to show the footer
footer?: false | {
Expand Down Expand Up @@ -357,7 +357,7 @@ interface IUniverUIConfig {
header?: boolean
// Whether to show the header toolbar
toolbar?: boolean
// The type of the header toolbar. default: default compact mode; classic: classic mode; simple: ungrouped mode
// The type of the header toolbar. 'classic': default classic mode; 'collapsed': compact mode; 'simple': ungrouped mode
ribbonType?: RibbonType
// Whether to show the context menu
contextMenu?: boolean
Expand Down Expand Up @@ -475,8 +475,8 @@ By configuring the `ribbonType` property in `IUniverSheetsCorePresetConfig` or `

`ribbonType` supports the following three modes:

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

<RibbonStyle />
Expand Down
8 changes: 4 additions & 4 deletions content/guides/sheets/features/core/index.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ interface IUniverSheetsCorePresetConfig {
header?: boolean
// 是否显示头部工具栏
toolbar?: boolean
// 头部工具栏的类型。default: 默认紧凑模式;classic: 经典模式;simple:不分组模式
// 头部工具栏的类型。'classic': 默认经典模式;'collapsed': 紧凑模式;'simple':不分组模式
ribbonType?: RibbonType
// 是否显示底部。
footer?: false | {
Expand Down Expand Up @@ -357,7 +357,7 @@ interface IUniverUIConfig {
header?: boolean
// 是否显示头部工具栏
toolbar?: boolean
// 头部工具栏的类型。default: 默认紧凑模式;classic: 经典模式;simple:不分组模式
// 头部工具栏的类型。'classic': 默认经典模式;'collapsed': 紧凑模式;'simple':不分组模式
ribbonType?: RibbonType
// 是否显示右键菜单
contextMenu?: boolean
Expand Down Expand Up @@ -475,8 +475,8 @@ interface IUniverSheetsUIConfig {

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

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

<RibbonStyle />
Expand Down
8 changes: 4 additions & 4 deletions content/guides/sheets/features/core/index.zh-TW.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ interface IUniverSheetsCorePresetConfig {
header?: boolean
// 是否顯示頭部工具列
toolbar?: boolean
// 頭部工具列的類型。default: 默認緊湊模式;classic: 經典模式;simple:不分組模式
// 頭部工具列的類型。'classic': 默認經典模式;'collapsed': 緊湊模式;'simple':不分組模式
ribbonType?: RibbonType
// 是否顯示底部。
footer?: false | {
Expand Down Expand Up @@ -357,7 +357,7 @@ interface IUniverUIConfig {
header?: boolean
// 是否顯示頭部工具列
toolbar?: boolean
// 頭部工具列的類型。default: 默認緊湊模式;classic: 經典模式;simple:不分組模式
// 頭部工具列的類型。'classic': 默認經典模式;'collapsed': 緊湊模式;'simple':不分組模式
ribbonType?: RibbonType
// 是否顯示右鍵菜單
contextMenu?: boolean
Expand Down Expand Up @@ -475,8 +475,8 @@ interface IUniverSheetsUIConfig {

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

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

<RibbonStyle />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ Univer は各プラグインの UMD ビルドも提供していますが、プ
<script>
const { Univer, LocaleType, mergeLocales, UniverInstanceType } = UniverCore
const { FUniver } = UniverCoreFacade
const { defaultTheme } = UniverDesign
const { UniverRenderEnginePlugin } = UniverEngineRender
const { UniverFormulaEnginePlugin } = UniverEngineFormula
const { UniverUIPlugin } = UniverUi
Expand Down
1 change: 0 additions & 1 deletion content/guides/sheets/getting-started/installation/cdn.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ Univer also provides UMD builds for each plugin, but unlike preset mode, you nee
<script>
const { Univer, LocaleType, mergeLocales, UniverInstanceType } = UniverCore
const { FUniver } = UniverCoreFacade
const { defaultTheme } = UniverDesign
const { UniverRenderEnginePlugin } = UniverEngineRender
const { UniverFormulaEnginePlugin } = UniverEngineFormula
const { UniverUIPlugin } = UniverUi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ Univer 的全局构建(UMD)会在全局对象上暴露一个命名空间,
<script>
const { Univer, LocaleType, mergeLocales, UniverInstanceType } = UniverCore
const { FUniver } = UniverCoreFacade
const { defaultTheme } = UniverDesign
const { UniverRenderEnginePlugin } = UniverEngineRender
const { UniverFormulaEnginePlugin } = UniverEngineFormula
const { UniverUIPlugin } = UniverUi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ Univer 的全域建置(UMD)會在全域物件上曝露一個命名空間,
<script>
const { Univer, LocaleType, mergeLocales, UniverInstanceType } = UniverCore
const { FUniver } = UniverCoreFacade
const { defaultTheme } = UniverDesign
const { UniverRenderEnginePlugin } = UniverEngineRender
const { UniverFormulaEnginePlugin } = UniverEngineFormula
const { UniverUIPlugin } = UniverUi
Expand Down
4 changes: 2 additions & 2 deletions examples/univer-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@angular/compiler": "^21.1.1",
"@angular/core": "^21.1.1",
"@angular/platform-browser": "^21.1.1",
"@univerjs/preset-sheets-core": "^0.16.1",
"@univerjs/presets": "^0.16.1",
"@univerjs/preset-sheets-core": "^0.17.0",
"@univerjs/presets": "^0.17.0",
"rxjs": "^7.8.2",
"tslib": "^2.8.1",
"zone.js": "^0.16.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/univer-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"astro": "astro"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.16.1",
"@univerjs/presets": "^0.16.1",
"@univerjs/preset-sheets-core": "^0.17.0",
"@univerjs/presets": "^0.17.0",
"astro": "^5.16.15"
}
}
4 changes: 2 additions & 2 deletions examples/univer-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"start": "next start"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.16.1",
"@univerjs/presets": "^0.16.1",
"@univerjs/preset-sheets-core": "^0.17.0",
"@univerjs/presets": "^0.17.0",
"next": "16.1.4",
"react": "19.2.3",
"react-dom": "19.2.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/univer-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.16.1",
"@univerjs/presets": "^0.16.1",
"@univerjs/preset-sheets-core": "^0.17.0",
"@univerjs/presets": "^0.17.0",
"react": "^19.2.3",
"react-dom": "^19.2.3"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/univer-vue2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"build": "vue-cli-service build"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.16.1",
"@univerjs/presets": "^0.16.1",
"@univerjs/preset-sheets-core": "^0.17.0",
"@univerjs/presets": "^0.17.0",
"core-js": "^3.48.0",
"vue": "2.7.16"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/univer-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"dependencies": {
"@univerjs/preset-sheets-core": "^0.16.1",
"@univerjs/presets": "^0.16.1",
"@univerjs/preset-sheets-core": "^0.17.0",
"@univerjs/presets": "^0.17.0",
"vue": "^3.5.27"
},
"devDependencies": {
Expand Down
Loading
Loading