|
@@ -76,8 +76,8 @@ export function useTableScroll({
|
|
|
|
|
|
|
|
if (!dataSource?.length) {
|
|
if (!dataSource?.length) {
|
|
|
// TODO:针对无数据的情况下,特别设置tboody
|
|
// TODO:针对无数据的情况下,特别设置tboody
|
|
|
- tableContainerEl!.style.marginBottom = '16px'
|
|
|
|
|
- tableContainerEl!.style.paddingBottom = '16px'
|
|
|
|
|
|
|
+ tableContainerEl!.style.marginBottom = '32px'
|
|
|
|
|
+ // tableContainerEl!.style.paddingBottom = '16px'
|
|
|
const tbodyEl: HTMLElement = tableContainerEl?.querySelector('tbody.ant-table-tbody')
|
|
const tbodyEl: HTMLElement = tableContainerEl?.querySelector('tbody.ant-table-tbody')
|
|
|
const el = tableContainerEl?.querySelector('table')
|
|
const el = tableContainerEl?.querySelector('table')
|
|
|
let hasScrollBar = el?.style.width !== '100%'
|
|
let hasScrollBar = el?.style.width !== '100%'
|