mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix(client): revert opensize back (#5656)
This commit is contained in:
parent
1cc88e2edf
commit
dc9435dd24
@ -65,6 +65,7 @@ export const Action: ComposedAction = withDynamicSchemaProps(
|
|||||||
onClick,
|
onClick,
|
||||||
style,
|
style,
|
||||||
loading,
|
loading,
|
||||||
|
openSize: os,
|
||||||
disabled: propsDisabled,
|
disabled: propsDisabled,
|
||||||
actionCallback,
|
actionCallback,
|
||||||
confirm: propsConfirm,
|
confirm: propsConfirm,
|
||||||
@ -198,8 +199,6 @@ interface InternalActionProps {
|
|||||||
setSubmitted: (v: boolean) => void;
|
setSubmitted: (v: boolean) => void;
|
||||||
getAriaLabel: (postfix?: string) => string;
|
getAriaLabel: (postfix?: string) => string;
|
||||||
parentRecordData: any;
|
parentRecordData: any;
|
||||||
openMode?: ActionContextProps['openMode'];
|
|
||||||
openSize?: ActionContextProps['openSize'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const InternalAction: React.FC<InternalActionProps> = observer(function Com(props) {
|
const InternalAction: React.FC<InternalActionProps> = observer(function Com(props) {
|
||||||
@ -232,16 +231,14 @@ const InternalAction: React.FC<InternalActionProps> = observer(function Com(prop
|
|||||||
setSubmitted,
|
setSubmitted,
|
||||||
getAriaLabel,
|
getAriaLabel,
|
||||||
parentRecordData,
|
parentRecordData,
|
||||||
openMode: om,
|
|
||||||
openSize: os,
|
|
||||||
...others
|
...others
|
||||||
} = props;
|
} = props;
|
||||||
const [visible, setVisible] = useState(false);
|
const [visible, setVisible] = useState(false);
|
||||||
const { wrapSSR, componentCls, hashId } = useStyles();
|
const { wrapSSR, componentCls, hashId } = useStyles();
|
||||||
const [formValueChanged, setFormValueChanged] = useState(false);
|
const [formValueChanged, setFormValueChanged] = useState(false);
|
||||||
const designerProps = fieldSchema['x-toolbar-props'] || fieldSchema['x-designer-props'];
|
const designerProps = fieldSchema['x-toolbar-props'] || fieldSchema['x-designer-props'];
|
||||||
const openMode = om ?? fieldSchema?.['x-component-props']?.['openMode'];
|
const openMode = fieldSchema?.['x-component-props']?.['openMode'];
|
||||||
const openSize = os ?? fieldSchema?.['x-component-props']?.['openSize'];
|
const openSize = fieldSchema?.['x-component-props']?.['openSize'];
|
||||||
const refreshDataBlockRequest = fieldSchema?.['x-component-props']?.['refreshDataBlockRequest'];
|
const refreshDataBlockRequest = fieldSchema?.['x-component-props']?.['refreshDataBlockRequest'];
|
||||||
const { modal } = App.useApp();
|
const { modal } = App.useApp();
|
||||||
const form = useForm();
|
const form = useForm();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user