fix: when the details are empty, the table rows are not clickable
This commit is contained in:
parent
baae04a6dd
commit
53c62e922d
@ -357,7 +357,7 @@ export function Table(props: any) {
|
|||||||
components={{
|
components={{
|
||||||
body: {
|
body: {
|
||||||
row: ({className, ...others}) => {
|
row: ({className, ...others}) => {
|
||||||
if (!detailsOpenMode) {
|
if (!detailsOpenMode || !details.length) {
|
||||||
return <tr className={className} {...others}/>
|
return <tr className={className} {...others}/>
|
||||||
}
|
}
|
||||||
return <tr className={className ? `${className} row-clickable` : 'row-clickable'} {...others}/>
|
return <tr className={className ? `${className} row-clickable` : 'row-clickable'} {...others}/>
|
||||||
@ -384,7 +384,7 @@ export function Table(props: any) {
|
|||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!detailsOpenMode) {
|
if (!detailsOpenMode || !details.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (detailsOpenMode === 'window') {
|
if (detailsOpenMode === 'window') {
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
top: 48px;
|
top: 48px;
|
||||||
left: 200px;
|
left: 200px;
|
||||||
width: calc(100% - 200px);
|
width: calc(100% - 200px);
|
||||||
height: 100%;
|
height: calc(100% - 48px);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user