Skip to content

fix: modal class not work #4188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/modal/ConfirmDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const ConfirmDialog: FunctionalComponent<ConfirmDialogProps> = props => {
const okText = props.okText || (okCancel ? runtimeLocale.okText : runtimeLocale.justOkText);
const cancelText = props.cancelText || runtimeLocale.cancelText;
const autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
const transitionName = props.transitionName || 'zoom';
const maskTransitionName = props.maskTransitionName || 'fade';
const transitionName = props.transitionName || 'ant-zoom';
const maskTransitionName = props.maskTransitionName || 'ant-fade';

const classString = classNames(
contentPrefixCls,
Expand Down
4 changes: 2 additions & 2 deletions components/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export default defineComponent({
inheritAttrs: false,
props: initDefaultProps(modalProps, {
width: 520,
transitionName: 'zoom',
maskTransitionName: 'fade',
transitionName: 'ant-zoom',
maskTransitionName: 'ant-fade',
confirmLoading: false,
visible: false,
okType: 'primary',
Expand Down