style: action style improve (#5018)

* style: action style improve

* style: style improve

* style: style improve
This commit is contained in:
Katherine 2024-08-08 15:31:01 +08:00 committed by GitHub
parent 35a36d28dd
commit 84119e6a06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -133,9 +133,9 @@ export const Action: ComposedAction = withDynamicSchemaProps(
return { return {
...style, ...style,
opacity: designable && (field?.data?.hidden || !aclCtx) && 0.1, opacity: designable && (field?.data?.hidden || !aclCtx) && 0.1,
color: disabled ? 'rgba(0, 0, 0, 0.25)' : null, color: disabled ? 'rgba(0, 0, 0, 0.25)' : style?.color,
}; };
}, [aclCtx, designable, field?.data?.hidden, style, disabled, disabled]); }, [aclCtx, designable, field?.data?.hidden, style, disabled]);
const handleMouseEnter = useCallback( const handleMouseEnter = useCallback(
(e) => { (e) => {

View File

@ -21,7 +21,10 @@ const useStyles = genStyleHook('nb-grid-card', (token) => {
}, },
'.ant-list-pagination': { padding: token.marginLG, background: token.colorBgContainer }, '.ant-list-pagination': { padding: token.marginLG, background: token.colorBgContainer },
}, },
'.ant-formily-item-feedback-layout-loose': { marginBottom: 0 }, '.ant-formily-item-feedback-layout-loose': { marginBottom: 5 },
'.ant-formily-item-feedback-layout-loose .ant-formily-item-label': {
marginBottom: -8,
},
}, },
}; };
}); });