From 87869f7fcba42be642f99641a85b7c53e136c84c Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Sat, 14 Dec 2024 12:30:44 +0800 Subject: [PATCH] releases 4.3.31 --- package.json | 2 +- types/components/table.d.ts | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e0b76a2..80c77c6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/types/components/table.d.ts b/types/components/table.d.ts index a74cbad..f9a27f3 100644 --- a/types/components/table.d.ts +++ b/types/components/table.d.ts @@ -3182,6 +3182,12 @@ export interface TableMethods
{ * @param checked 是否选中 */ setCheckboxRow(rows: any | any[], checked: boolean): Promise + /** + * 用于 type=checkbox,设置行为选中状态,第二个参数为选中与否 + * @param keys 指定主键 + * @param checked 是否选中 + */ + setCheckboxRowKey(keys: string | number | (string | number)[] | null | undefined, checked: boolean): Promise /** * 用于 type=checkbox,判断列头复选框是否被选中 */ @@ -3195,11 +3201,21 @@ export interface TableMethods
{ * @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 指定行 @@ -3248,11 +3264,21 @@ export interface TableMethods
{ * @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 + /** + * 用于 type=radio,设置某一行为选中状态 + * @param key 指定主键 + */ + setRadioRowKey(key: string | number | null | undefined): Promise /** * 将指定行设置为取消/标记待删除状态 */