vue3-components-plus 3.0.25 → 3.0.32

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.
@@ -21,7 +21,6 @@
21
21
  rowKey: 'id',
22
22
  showPagination: true,
23
23
  }"
24
- :load-data="loadData"
25
24
  @search="handleSearch"
26
25
  @reset="handleReset"
27
26
  @add="handleAdd"
@@ -78,7 +77,7 @@
78
77
  <div class="selection-actions">
79
78
  <el-button @click="getSelectedRows">获取选中行</el-button>
80
79
  <el-button @click="getSelectedKeys">获取选中ID</el-button>
81
- <el-button @click="selectRows([1, 5, 21])">选中ID为1, 5, 21的行</el-button>
80
+ <el-button @click="selectRows([1, 2, 3])">选中ID为1, 2, 3的行</el-button>
82
81
  <el-button @click="clearSelection">清空选择</el-button>
83
82
  <el-button @click="selectAll">全选</el-button>
84
83
  <el-button @click="checkSelection">检查选择状态</el-button>
@@ -521,11 +520,11 @@ const handleDelete = (row) => {
521
520
  onMounted(async () => {
522
521
  // 异步获取状态选项(模拟接口请求,延迟2秒)
523
522
  const options = await fetchStatusOptions()
524
- searchItems.value[2].children = options
523
+ searchItems.value[3].children = options
525
524
 
526
525
  // 异步获取部门选项(模拟接口请求,延迟2秒)
527
526
  const departmentOptions = await fetchDepartmentOptions()
528
- searchItems.value[3].children = departmentOptions
527
+ searchItems.value[4].children = departmentOptions
529
528
 
530
529
  // 搜索条件准备好后,调用 initSearchAndLoad 初始化搜索参数并加载数据
531
530
  // 这会自动获取 PageSearch 的初始表单数据(包含默认值和外部参数)