@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.
@@ -4,6 +4,7 @@
4
4
  ref="formRef"
5
5
  :model="model"
6
6
  :rules="formRules"
7
+ :validate-on-rule-change="false"
7
8
  :label-width="labelWidth"
8
9
  :label-position="labelPosition"
9
10
  v-bind="$attrs"
@@ -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
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@liujitcn/kratos-admin-core",
3
3
  "private": false,
4
- "version": "0.0.67",
4
+ "version": "0.0.69",
5
5
  "type": "module",
6
6
  "description": "kratos-admin frontend runtime and base modules",
7
7
  "author": {