fix: alignment issue of the add child record button in the tree table (#6791)

This commit is contained in:
Katherine 2025-04-28 14:16:13 +08:00 committed by GitHub
parent ca182a9cb5
commit 93839acdb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 17 deletions

View File

@ -10,25 +10,9 @@
import { observer } from '@formily/react';
import classnames from 'classnames';
import React from 'react';
import { Space, Tooltip } from 'antd';
import { withDynamicSchemaProps } from '../../../hoc/withDynamicSchemaProps';
import Action from './Action';
import { ComposedAction } from './types';
import { Icon } from '../../../icon';
const WrapperComponent = React.forwardRef(
({ component: Component = 'a', icon, onlyIcon, children, ...restProps }: any, ref) => {
return (
<Component ref={ref} {...restProps}>
<Tooltip title={restProps.title}>
<span style={{ marginRight: 3 }}>{icon && typeof icon === 'string' ? <Icon type={icon} /> : icon}</span>
</Tooltip>
{onlyIcon ? children[1] : children}
</Component>
);
},
);
WrapperComponent.displayName = 'WrapperComponentLink';
export const ActionLink: ComposedAction = withDynamicSchemaProps(
observer((props: any) => {

View File

@ -357,7 +357,7 @@ function FinallyButton({
}}
style={{
...props?.style,
display: !designable && field?.data?.hidden && 'none',
display: !designable && field?.data?.hidden ? 'none' : 'inline-block',
opacity: designable && field?.data?.hidden && 0.1,
...buttonStyle,
}}