aboutsummaryrefslogblamecommitdiffhomepage
path: root/examples/open.js.map
blob: d790d5b7bd095d6d538881b293e9c631dce7ded8 (plain) (tree)
1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
{"version":3,"sources":["webpack:///./examples/open.js"],"names":["App","state","open","setOpen","setState","toggleOpen","render","Component","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAEA;;;;AACA;;;;AACA;;;;;;AANA;;KAQMA,G;;;;;;;;;;;;uKACJC,K,GAAQ;AACNC,aAAM;AADA,M,QAGRC,O,GAAU,gBAAc;AAAA,WAAXD,IAAW,QAAXA,IAAW;;AACtB,aAAKE,QAAL,CAAc,EAAEF,UAAF,EAAd;AACD,M,QACDG,U,GAAa,YAAM;AACjB,aAAKD,QAAL,CAAc;AACZF,eAAM,CAAC,MAAKD,KAAL,CAAWC;AADN,QAAd;AAGD,M;;;iBACDI,M,qBAAS;AACP,YACE;AAAA;AAAA;AACE;AAAA;AAAA,WAAQ,SAAS,KAAKD,UAAtB;AAAA;AAAA,QADF;AAEE,+DAAY,MAAM,KAAKJ,KAAL,CAAWC,IAA7B,EAAmC,QAAQ,KAAKC,OAAhD,EAAyD,SAAS,KAAKA,OAAvE;AAFF,MADF;AAMD,I;;;GAnBe,gBAAMI,S;;AAsBxB,oBAASD,MAAT,CACE,8BAAC,GAAD,OADF,EAEEE,SAASC,cAAT,CAAwB,iBAAxB,CAFF,E","file":"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":""}