From c2d59dea69e7362223679d08129c2386856a24d9 Mon Sep 17 00:00:00 2001 From: Svend Date: Wed, 30 Oct 2024 21:38:19 +0800 Subject: [PATCH] chore: add vxe-table export example (#4769) --- packages/effects/plugins/src/vxe-table/init.ts | 2 ++ playground/src/views/examples/vxe-table/remote.vue | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/effects/plugins/src/vxe-table/init.ts b/packages/effects/plugins/src/vxe-table/init.ts index bd731e74..4d08f45f 100644 --- a/packages/effects/plugins/src/vxe-table/init.ts +++ b/packages/effects/plugins/src/vxe-table/init.ts @@ -28,6 +28,7 @@ import { VxeSelect, VxeTooltip, VxeUI, + VxeUpload, // VxeSwitch, // VxeTextarea, } from 'vxe-pc-ui'; @@ -92,6 +93,7 @@ export function initVxeTable() { // VxeUI.component(VxeSwitch); // VxeUI.component(VxeTextarea); VxeUI.component(VxeTooltip); + VxeUI.component(VxeUpload); isInit = true; } diff --git a/playground/src/views/examples/vxe-table/remote.vue b/playground/src/views/examples/vxe-table/remote.vue index 87b0661c..7fc98a08 100644 --- a/playground/src/views/examples/vxe-table/remote.vue +++ b/playground/src/views/examples/vxe-table/remote.vue @@ -31,6 +31,7 @@ const gridOptions: VxeGridProps = { { field: 'price', title: 'Price' }, { field: 'releaseDate', formatter: 'formatDateTime', title: 'DateTime' }, ], + exportConfig: {}, height: 'auto', keepSource: true, proxyConfig: { @@ -45,7 +46,7 @@ const gridOptions: VxeGridProps = { }, toolbarConfig: { custom: true, - // export: true, + export: true, // import: true, refresh: true, zoom: true,