Skip to content

Commit

Permalink
releases 4.3.31
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Dec 14, 2024
1 parent df1939e commit 87869f7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-pc-ui",
"version": "4.3.30",
"version": "4.3.31",
"description": "A vue based PC component library",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
26 changes: 26 additions & 0 deletions types/components/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3182,6 +3182,12 @@ export interface TableMethods<DT = any> {
* @param checked 是否选中
*/
setCheckboxRow(rows: any | any[], checked: boolean): Promise<any>
/**
* 用于 type=checkbox,设置行为选中状态,第二个参数为选中与否
* @param keys 指定主键
* @param checked 是否选中
*/
setCheckboxRowKey(keys: string | number | (string | number)[] | null | undefined, checked: boolean): Promise<any>
/**
* 用于 type=checkbox,判断列头复选框是否被选中
*/
Expand All @@ -3195,11 +3201,21 @@ export interface TableMethods<DT = any> {
* @param row 指定行
*/
isCheckedByCheckboxRow(row: any): boolean
/**
* 用于 type=checkbox,判断复选行数据是否勾选
* @param key 指定主键
*/
isCheckedByCheckboxRowKey(key: string | number | null | undefined): boolean
/**
* 用于 type=checkbox,判断复选行数据是否半选
* @param row 指定行
*/
isIndeterminateByCheckboxRow(row: any): boolean
/**
* 用于 type=checkbox,判断复选行数据是否半选
* @param key 指定主键
*/
isIndeterminateByCheckboxRowKey(key: string | number | null | undefined): boolean
/**
* 用于 type=checkbox,切换某一行的选中状态
* @param row 指定行
Expand Down Expand Up @@ -3248,11 +3264,21 @@ export interface TableMethods<DT = any> {
* @param row 指定行
*/
isCheckedByRadioRow(row: any | null): boolean
/**
* 用于 type=radio,判断单选行数据是否勾选
* @param key 指定主键
*/
isCheckedByRadioRowKey(key: string | number | null | undefined): boolean
/**
* 用于 type=radio,设置某一行为选中状态
* @param row 指定行
*/
setRadioRow(row: any): Promise<any>
/**
* 用于 type=radio,设置某一行为选中状态
* @param key 指定主键
*/
setRadioRowKey(key: string | number | null | undefined): Promise<any>
/**
* 将指定行设置为取消/标记待删除状态
*/
Expand Down

0 comments on commit 87869f7

Please sign in to comment.