Browse Source

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

pull/4771/head
Svend 1 year ago
committed by GitHub
parent
commit
c2d59dea69
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/effects/plugins/src/vxe-table/init.ts
  2. 3
      playground/src/views/examples/vxe-table/remote.vue

2
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;
}

3
playground/src/views/examples/vxe-table/remote.vue

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

Loading…
Cancel
Save