2.0.1 • Published 6 years ago

beatle-dialog v2.0.1

Weekly downloads
4
License
ISC
Repository
gitlab
Last release
6 years ago

usage

// define a dialog in demo_dialog.jsx
import BeatleDialog from 'beatle-dialog';
import Modal from 'antd/lib/modal';

const DemoModal = React.createClass({
  render: function () {
    return <Modal {...this.props} >
      { this.props.$value.label }
      { this.props.user.name }
    </Modal>;
  }
});

export default BeatleDialog(['user', 'list'], DemoModal);

// use a dialog
import DemoDialog from './demo_dialog.jsx';

DemoDialog.createDialog({
  label: 'this is title'
});
2.0.1

6 years ago

2.0.0

6 years ago

0.0.1

7 years ago