Skip to content

Commit

Permalink
Merge pull request #637 from VisActor/release/0.15.1
Browse files Browse the repository at this point in the history
[Auto release] release 0.15.1
  • Loading branch information
fangsmile authored Nov 28, 2023
2 parents bd72cb7 + 7f09e99 commit a157f8b
Show file tree
Hide file tree
Showing 86 changed files with 2,741 additions and 3,954 deletions.
94 changes: 47 additions & 47 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
[
{
"definitionName": "lockStepVersion",
"policyName": "vtableMain",
"version": "0.15.0",
"mainProject": "@visactor/vtable",
"nextBump": "minor"
}
]
[{"definitionName":"lockStepVersion","policyName":"vtableMain","version":"0.15.1","mainProject":"@visactor/vtable","nextBump":"patch"}]
15 changes: 15 additions & 0 deletions docs/assets/api/en/event/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,19 @@ Parameter types of event callback function:

```
{ col: number; row: number; rawValue: string | number; changedValue: string | number };
```

## CHECKBOX_STATE_CHANGE
Change the checkbox checkbox state. **ListTable table exclusive event**

Parameter types of event callback function:

```
{
col: number;
row: number;
alue: string | number;
dataValue: string | number;
checked: boolean;
};
```
49 changes: 48 additions & 1 deletion docs/assets/api/en/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ tableInstance.columns = newColumns;
```
## updatePagination(Function)

Update page number configuration information
Update page number configuration information, and it will be automatically redrawn after calling

```ts
/**
Expand Down Expand Up @@ -145,6 +145,47 @@ Select one or more cell ranges
selectCells(cellRanges: CellRange[]): void
```

## getSelectedCellInfos(Function)
Get the selected cell information, and the returned result is a two-dimensional array. The first-level array item represents a row, and each item of the second-level array represents a cell information of the row.

```
/**Get details of each cell in the selected area */
getSelectedCellInfos(): CellInfo[][] | null;
```

## getCellValue(Function)

Get cell display value

```
/**
* Get the cell display value
*/
getCellValue(col: number, row: number): FieldData;
```

## getCellOriginValue(Function)

Get the value before the format of the cell display data

```
/**
* Get the value before the format of the cell display data
*/
getCellOriginValue(col: number, row: number): FieldData;
```

## getCellRawValue(Function)

Get the original value of the cell display data source

```
/**
* Get the original value of the cell display data source
*/
getCellRawValue(col: number, row: number): FieldData;
```

## getCellStyle(Function)

Getting the style of a cell
Expand Down Expand Up @@ -342,6 +383,12 @@ Get the selected status of all data in the checkbox under a certain field. The o
getCheckboxState(field?: string | number): Array
```

## getCellCheckboxState(Function)
Get the status of a cell checkbox
```
getCellCheckboxState(col: number, row: number): Array
```

## scrollToCell(Function)

Scroll to a specific cell location
Expand Down
17 changes: 16 additions & 1 deletion docs/assets/api/zh/event/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,19 @@ icon 图标点击事件。

```
{ col: number; row: number; rawValue: string | number; changedValue: string | number };
```
```

## CHECKBOX_STATE_CHANGE
更改checkbox复选框状态。**ListTable表格专有事件**

事件回调函数的参数类型:

```
{
col: number;
row: number;
alue: string | number;
dataValue: string | number;
checked: boolean;
};
```
Loading

0 comments on commit a157f8b

Please sign in to comment.