vue3-components-plus 3.0.30 → 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.
- package/dist/ComponentDemo/DialogDemo.vue +2 -2
- package/dist/ComponentDemo/NsTableDemo/NsTableDemoReadme.md +677 -0
- package/dist/ComponentDemo/NsTableDemo/index.vue +3 -4
- package/dist/ComponentDemo/NsTableDemo/mockData.js +117 -650
- package/dist/ComponentDemo/PdfDemo.vue +8 -35
- package/dist/vue3-components-plus.css +1 -1
- package/dist/vue3-components-plus.js +1169 -1174
- package/dist/vue3-components-plus.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/ComponentDemo/PdfDemo copy.vue +0 -234
- package/dist/ComponentDemo/pdfReade copy.vue +0 -369
- package/dist/ComponentDemo/pdfReade.vue +0 -590
- package/dist/favicon.ico +0 -0
|
@@ -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,
|
|
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[
|
|
523
|
+
searchItems.value[3].children = options
|
|
525
524
|
|
|
526
525
|
// 异步获取部门选项(模拟接口请求,延迟2秒)
|
|
527
526
|
const departmentOptions = await fetchDepartmentOptions()
|
|
528
|
-
searchItems.value[
|
|
527
|
+
searchItems.value[4].children = departmentOptions
|
|
529
528
|
|
|
530
529
|
// 搜索条件准备好后,调用 initSearchAndLoad 初始化搜索参数并加载数据
|
|
531
530
|
// 这会自动获取 PageSearch 的初始表单数据(包含默认值和外部参数)
|