aboutsummaryrefslogblamecommitdiffhomepage
path: root/examples/open.js.map
blob: d76e8e657138520d6879a5d2d7740b936c728794 (plain) (tree)
1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
{"version":3,"sources":["webpack:///./examples/open.js"],"names":["App","state","open","setOpen","setState","toggleOpen","React","Component","ReactDom","render","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AAEA;AACA;AACA;;IAEMA,G;;;;;;;;;;;;;;6OACJC,K,GAAQ;AACNC,YAAM;AADA,K,QAGRC,O,GAAU,iBAAc;AAAA,UAAXD,IAAW,SAAXA,IAAW;;AACtB,YAAKE,QAAL,CAAc,EAAEF,UAAF,EAAd;AACD,K,QACDG,U,GAAa,YAAM;AACjB,YAAKD,QAAL,CAAc;AACZF,cAAM,CAAC,MAAKD,KAAL,CAAWC;AADN,OAAd;AAGD,K;;;;;6BACQ;AACP,aACE;AAAA;AAAA;AACE;AAAA;AAAA,YAAQ,SAAS,KAAKG,UAAtB;AAAA;AAAA,SADF;AAEE,oEAAC,+DAAD,IAAY,MAAM,KAAKJ,KAAL,CAAWC,IAA7B,EAAmC,QAAQ,KAAKC,OAAhD,EAAyD,SAAS,KAAKA,OAAvE;AAFF,OADF;AAMD;;;;EAnBe,6CAAAG,CAAMC,S;;AAsBxB,iDAAAC,CAASC,MAAT,CACE,4DAAC,GAAD,OADF,EAEEC,SAASC,cAAT,CAAwB,iBAAxB,CAFF,E","file":"examples/open.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\nimport TimePicker from 'rc-time-picker';\n\nclass App extends React.Component {\n  state = {\n    open: false,\n  };\n  setOpen = ({ open }) => {\n    this.setState({ open });\n  }\n  toggleOpen = () => {\n    this.setState({\n      open: !this.state.open,\n    });\n  }\n  render() {\n    return (\n      <div>\n        <button onClick={this.toggleOpen}>Toggle open</button>\n        <TimePicker open={this.state.open} onOpen={this.setOpen} onClose={this.setOpen} />\n      </div>\n    );\n  }\n}\n\nReactDom.render(\n  <App />,\n  document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/open.js"],"sourceRoot":""}