feat: 添加字段浮窗定位优化 (#1034)

This commit is contained in:
katherinehhh 2022-11-04 15:28:53 +08:00 committed by GitHub
parent af3fbeb99b
commit 3e06e575f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ export const AddCollectionField = (props) => {
};
export const AddFieldAction = (props) => {
const { scope, getContainer, item: record, children,trigger } = props;
const { scope, getContainer, item: record, children,trigger ,align} = props;
const { getInterface } = useCollectionManager();
const [visible, setVisible] = useState(false);
const [schema, setSchema] = useState({});
@ -155,6 +155,7 @@ export const AddFieldAction = (props) => {
<Dropdown
getPopupContainer={getContainer}
trigger={trigger}
align={align}
overlay={
<Menu
style={{