0

在 md 文件中,我不希望 react-styleguidist 运行代码块。我只想展示这个代码源。但是现在它发生了错误。

我不希望代码块(const dialog = Modal.show(config);...) 与 react-styleguidist 一起运行。我只想让它运行 ModalExample 代码块。

基本用法

  • 模态显示(配置)
// close dialog
const dialog = Modal.show(config);
dialog.close()
import Button from '@ui/Button/Button'
import Dialog from './Dialog';

class ModalExample extends React.Component {
    constructor(props) {
        super(props);
        this.state = {visible: false}
    }
...

未捕获的 ReferenceError:未定义模态

4

0 回答 0