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={{
|
||||
body: {
|
||||
row: ({className, ...others}) => {
|
||||
if (!detailsOpenMode) {
|
||||
if (!detailsOpenMode || !details.length) {
|
||||
return <tr className={className} {...others}/>
|
||||
}
|
||||
return <tr className={className ? `${className} row-clickable` : 'row-clickable'} {...others}/>
|
||||
@ -384,7 +384,7 @@ export function Table(props: any) {
|
||||
) {
|
||||
return;
|
||||
}
|
||||
if (!detailsOpenMode) {
|
||||
if (!detailsOpenMode || !details.length) {
|
||||
return;
|
||||
}
|
||||
if (detailsOpenMode === 'window') {
|
||||
|
@ -54,7 +54,7 @@
|
||||
top: 48px;
|
||||
left: 200px;
|
||||
width: calc(100% - 200px);
|
||||
height: 100%;
|
||||
height: calc(100% - 48px);
|
||||
overflow: auto;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user