diff --git a/src/components/PageContent/index.vue b/src/components/PageContent/index.vue
index 8db642bb..a79b9648 100644
--- a/src/components/PageContent/index.vue
+++ b/src/components/PageContent/index.vue
@@ -57,51 +57,73 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -339,9 +361,9 @@
:disabled="selectionData.length <= 0"
/>
@@ -447,7 +469,18 @@ export interface IContentConfig {
}
>;
// 表格工具栏右侧图标
- defaultToolbar?: ("refresh" | "filter" | "exports" | "search")[];
+ defaultToolbar?: Array<
+ | "refresh"
+ | "filter"
+ | "exports"
+ | "search"
+ | {
+ name: string;
+ icon: string;
+ title?: string;
+ auth?: string;
+ }
+ >;
// table组件列属性(额外的属性templet,operat,slotName)
cols: Array<{
type?: "default" | "selection" | "index" | "expand";
diff --git a/src/views/demo/curd/config/content.ts b/src/views/demo/curd/config/content.ts
index 6800f9c6..a1579ad0 100644
--- a/src/views/demo/curd/config/content.ts
+++ b/src/views/demo/curd/config/content.ts
@@ -26,6 +26,11 @@ const contentConfig: IContentConfig = {
},
deleteAction: UserAPI.deleteByIds,
exportAction: UserAPI.export,
+ exportsAction: async function (params) {
+ // 模拟获取全量数据
+ const res = await UserAPI.getPage(params);
+ return res.list;
+ },
pk: "id",
toolbar: [
"add",