@liujitcn/kratos-admin-core 0.0.67 → 0.0.69
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.
|
@@ -232,7 +232,7 @@ const {
|
|
|
232
232
|
pageable,
|
|
233
233
|
searchParam,
|
|
234
234
|
searchInitParam,
|
|
235
|
-
getTableList,
|
|
235
|
+
getTableList: requestTableList,
|
|
236
236
|
search,
|
|
237
237
|
reset,
|
|
238
238
|
handleSizeChange,
|
|
@@ -242,6 +242,13 @@ const {
|
|
|
242
242
|
// 清空选中数据列表
|
|
243
243
|
const clearSelection = () => tableRef.value!.clearSelection();
|
|
244
244
|
|
|
245
|
+
/** 请求表格数据;未启用跨刷新保留勾选时,同步清空随数据刷新而失效的多选状态。 */
|
|
246
|
+
const getTableList = async () => {
|
|
247
|
+
const result = await requestTableList();
|
|
248
|
+
if (!props.restoreSelectedRowKeys.length) clearSelection();
|
|
249
|
+
return result;
|
|
250
|
+
};
|
|
251
|
+
|
|
245
252
|
/** 返回当前表格分页总数,供父组件读取统计数量。 */
|
|
246
253
|
const getTotal = () => Number(pageable.value.total || 0);
|
|
247
254
|
|