0.0.1 • Published 3 years ago

zl-modal v0.0.1

Weekly downloads
5
License
ISC
Repository
-
Last release
3 years ago

zl-modal

Modal组件展示

使用示例

testInfo = ()=> {
  Modal.info({
      show: true,
      title:'弄啥咧',
      showCancel: true,
      handleConfirm: this.handleConfirm,
      handleClose: this.handleClose
  });
};

render() {
    return (
        <div>
            {/*<div onClick={this.testClick}>控制开关</div>*/}
            {/*<Modal show={this.state.show} title="更多选项" showCancel={true} handleClose={this.handleClose} handleConfirm={this.handleConfirm}>*/}
            {/*    弄啥咧*/}
            {/*</Modal>*/}
            <div onClick={this.testInfo}>测试js调用</div>
        </div>
    );
}