@liujitcn/kratos-admin-core 0.0.73 → 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -62,7 +62,7 @@ declare const __VLS_base: import("vue").DefineComponent<ProTableProps, {
|
|
|
62
62
|
reset: () => void;
|
|
63
63
|
handleSizeChange: (val: number) => void;
|
|
64
64
|
handleCurrentChange: (val: number) => void;
|
|
65
|
-
clearSelection: () => void;
|
|
65
|
+
clearSelection: () => void | undefined;
|
|
66
66
|
getTotal: () => number;
|
|
67
67
|
enumMap: globalThis.Ref<Map<string, {
|
|
68
68
|
[key: string]: any;
|
|
@@ -239,8 +239,8 @@ const {
|
|
|
239
239
|
handleCurrentChange
|
|
240
240
|
} = useTable(props.requestApi, props.initParam, props.pagination, props.dataCallback, props.requestError);
|
|
241
241
|
|
|
242
|
-
//
|
|
243
|
-
const clearSelection = () => tableRef.value
|
|
242
|
+
// 清空选中数据列表;表格卸载或未挂载完成时引用为空,跳过清空避免报错
|
|
243
|
+
const clearSelection = () => tableRef.value?.clearSelection();
|
|
244
244
|
|
|
245
245
|
/** 请求表格数据;未启用跨刷新保留勾选时,同步清空随数据刷新而失效的多选状态。 */
|
|
246
246
|
const getTableList = async () => {
|