chore: list models query

This commit is contained in:
jialin
2024-08-09 10:26:46 +08:00
parent ab8483fc42
commit 8490e32ef1
14 changed files with 669 additions and 114 deletions
+5 -1
View File
@@ -9,8 +9,10 @@ type ModalFooterProps = {
htmlType?: 'button' | 'submit';
okBtnProps?: any;
cancelBtnProps?: any;
align?: 'start' | 'end' | 'center' | 'baseline';
form?: any;
loading?: boolean;
style?: React.CSSProperties;
};
const ModalFooter: React.FC<ModalFooterProps> = ({
onOk,
@@ -21,11 +23,13 @@ const ModalFooter: React.FC<ModalFooterProps> = ({
cancelBtnProps,
loading,
htmlType = 'button',
align = 'end',
style,
form
}) => {
const intl = useIntl();
return (
<Space size={20}>
<Space size={20} style={{ ...style }}>
<Button onClick={onCancel} style={{ width: '88px' }} {...cancelBtnProps}>
{cancelText || intl.formatMessage({ id: 'common.button.cancel' })}
</Button>