fix: table isFieldComponent
This commit is contained in:
parent
250dd26df9
commit
716b5e20b4
@ -108,6 +108,7 @@ export function DrawerSelectComponent(props) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<View
|
<View
|
||||||
|
isFieldComponent={true}
|
||||||
__parent={__parent}
|
__parent={__parent}
|
||||||
associatedKey={associatedKey}
|
associatedKey={associatedKey}
|
||||||
multiple={multiple}
|
multiple={multiple}
|
||||||
|
@ -491,7 +491,7 @@ export function Table(props: any) {
|
|||||||
if (!detailsOpenMode || !details.length) {
|
if (!detailsOpenMode || !details.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (detailsOpenMode === 'window') {
|
if (!isFieldComponent && detailsOpenMode === 'window') {
|
||||||
const paths = history.location.pathname.split('/');
|
const paths = history.location.pathname.split('/');
|
||||||
history.push(`/admin/${paths[2]}/${data[rowKey]}/0`);
|
history.push(`/admin/${paths[2]}/${data[rowKey]}/0`);
|
||||||
} else {
|
} else {
|
||||||
|
@ -69,7 +69,7 @@ export function View(props: any) {
|
|||||||
if (wrapper === 'card') {
|
if (wrapper === 'card') {
|
||||||
return (
|
return (
|
||||||
<Card className={`view-type-${type}`} bordered={false}>
|
<Card className={`view-type-${type}`} bordered={false}>
|
||||||
<Component {...restProps} schema={data} />;
|
<Component {...restProps} schema={data} />
|
||||||
</Card>
|
</Card>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user