Skip to content

✨ [Feature]: Dialog的函数式调用方式给了可以自定义footer的方法,但是没有提供关闭的方法,打开了就关闭不了了。 #800

@li-zhiheng

Description

@li-zhiheng

What is the new or updated feature that you are suggesting?

Dialog.show({
closeable: false,
theme: 'round-button',
message: t('login.loginFailTip'),
footer: (


<div
style={{ borderWidth: 1 }}
className="border-black border-solid rounded-[var(--rv-button-round-border-radius)]"
>
<Button
round
block
className="border-[length:1px_!important] border-black border-solid"
color="linear-gradient( 90deg, #B847FF 0%, #27CDFF 100%)"
onClick={() => {}}
>
OK



),
});

Why should this feature be included?

提供了自定义footer的方法,并且footer定义是ReactNode,并不是函数接受close方法。但是全局又没有提供可以关闭弹窗的api可以调用,导致打开了弹层就关闭不了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions