diff --git a/src/hooks/usePaging.ts b/src/hooks/usePaging.ts index 0d3a56c..9bb5b2b 100644 --- a/src/hooks/usePaging.ts +++ b/src/hooks/usePaging.ts @@ -49,6 +49,8 @@ export function usePaging(options: Options) { lists: [] as any[], extend: {} as Record, calcWidth: ({ column }: Icolumn) => { + if (!pager.lists?.length) return column.label; + let propWidth = column.label.length * 14 + 26; let list = pager.lists.map( (item: Object) => (item as any)[column.property] diff --git a/src/views/InvoicingRequests/index.vue b/src/views/InvoicingRequests/index.vue index 05e562f..0b3d8b5 100644 --- a/src/views/InvoicingRequests/index.vue +++ b/src/views/InvoicingRequests/index.vue @@ -44,15 +44,22 @@ - - - - - - - - - + + + + + + + + +