beatle-dialog
v2.0.1
Published
``` // define a dialog in demo_dialog.jsx import BeatleDialog from 'beatle-dialog'; import Modal from 'antd/lib/modal';
Downloads
2
Readme
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'
});