Skip to content
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

[BUG] Toast 全局配置不生效 #2549

Open
1 task done
Nayacco opened this issue Oct 30, 2024 · 0 comments
Open
1 task done

[BUG] Toast 全局配置不生效 #2549

Nayacco opened this issue Oct 30, 2024 · 0 comments
Assignees

Comments

@Nayacco
Copy link
Contributor

Nayacco commented Oct 30, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

Toast

Semi Version

2.68.0

Current Behavior

No response

Expected Behavior

配置位置后,无法生效

Steps To Reproduce

No response

ReproducibleCode

import React from 'react';
import { semiGlobal, Toast, Button } from '@douyinfe/semi-ui';

semiGlobal.config.overrideDefaultProps = {
  Toast: {
    bottom: 200,
  },
}

function Demo() {
    const opts = {
        content: 'Hi, Bytedance dance dance',
        duration: 3,
        stack: true,
    };

    return (
        <div>
            <Button onClick={() => Toast.info(opts)}>Display Toast</Button>
        </div>
    );
}
render(Demo);

Environment

- OS:windows
- browser:chrome

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants