chore: add vxe-table export example (#4769)

pull/48/MERGE
Svend 2024-10-30 21:38:19 +08:00 committed by GitHub
parent e600d78cb9
commit c2d59dea69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import {
VxeSelect, VxeSelect,
VxeTooltip, VxeTooltip,
VxeUI, VxeUI,
VxeUpload,
// VxeSwitch, // VxeSwitch,
// VxeTextarea, // VxeTextarea,
} from 'vxe-pc-ui'; } from 'vxe-pc-ui';
@ -92,6 +93,7 @@ export function initVxeTable() {
// VxeUI.component(VxeSwitch); // VxeUI.component(VxeSwitch);
// VxeUI.component(VxeTextarea); // VxeUI.component(VxeTextarea);
VxeUI.component(VxeTooltip); VxeUI.component(VxeTooltip);
VxeUI.component(VxeUpload);
isInit = true; isInit = true;
} }

View File

@ -31,6 +31,7 @@ const gridOptions: VxeGridProps<RowType> = {
{ field: 'price', title: 'Price' }, { field: 'price', title: 'Price' },
{ field: 'releaseDate', formatter: 'formatDateTime', title: 'DateTime' }, { field: 'releaseDate', formatter: 'formatDateTime', title: 'DateTime' },
], ],
exportConfig: {},
height: 'auto', height: 'auto',
keepSource: true, keepSource: true,
proxyConfig: { proxyConfig: {
@ -45,7 +46,7 @@ const gridOptions: VxeGridProps<RowType> = {
}, },
toolbarConfig: { toolbarConfig: {
custom: true, custom: true,
// export: true, export: true,
// import: true, // import: true,
refresh: true, refresh: true,
zoom: true, zoom: true,