Skip to content

Commit

Permalink
docs: refix marked tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed Dec 8, 2023
1 parent f63e14a commit 2efb985
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion docs/assets/guide/en/theme_and_style/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ Contains the following configuration items:

### Cell Tag

`mark`: Set whether the cell has a record style
`marked`: Set whether the cell has a record style

![image](https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/guide/cell-marked.jpeg)

### line wrapping

Expand Down
4 changes: 3 additions & 1 deletion docs/assets/guide/zh/theme_and_style/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ style 提供了一系列的单元格配置式,简要介绍如下。

### 单元格标记

`mark`:设置单元格是否有记样式
`marked`:设置单元格是否有记样式

![image](https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/guide/cell-marked.jpeg)

### 自动换行

Expand Down
3 changes: 0 additions & 3 deletions packages/vtable/src/themes/DARK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import type { ITableThemeDefine, StylePropertyFunctionArg } from '../ts-types';

function getBackgroundColor(args: StylePropertyFunctionArg): string {
const { row, table } = args;
// if (row < table.frozenRowCount) {
// return "#FFF";
// }
const index = row - table.frozenRowCount;
if (!(index & 1)) {
return '#2d3137';
Expand Down

0 comments on commit 2efb985

Please sign in to comment.