aboutsummaryrefslogblamecommitdiffhomepage
path: root/examples/value-and-defaultValue.js.map
blob: 4791ea23524fa002ab4f72729fb164da1fe00aa3 (plain) (tree)
1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
{"version":3,"sources":["webpack:///./examples/value-and-defaultValue.js"],"names":["App","createClass","getInitialState","value","handleValueChange","console","log","format","setState","clear","undefined","render","state","document","getElementById"],"mappings":";;;;;;;;;;;;;;;AAEA;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;;;AAEA,KAAMA,MAAM,gBAAMC,WAAN,CAAkB;AAAA;AAC5BC,kBAD4B,6BACV;AAChB,YAAO;AACLC,cAAO;AADF,MAAP;AAGD,IAL2B;AAM5BC,oBAN4B,6BAMVD,KANU,EAMH;AACvBE,aAAQC,GAAR,CAAYH,SAASA,MAAMI,MAAN,CAAa,UAAb,CAArB;AACA,UAAKC,QAAL,CAAc,EAAEL,YAAF,EAAd;AACD,IAT2B;AAU5BM,QAV4B,mBAUpB;AACN,UAAKD,QAAL,CAAc;AACZL,cAAOO;AADK,MAAd;AAGD,IAd2B;AAe5BC,SAf4B,oBAenB;AACP,YACE;AAAA;AAAA;AACE;AACE,uBAAc,KAAKC,KAAL,CAAWT,KAD3B;AAEE,mBAAU,KAAKC;AAFjB,SADF;AAKE;AACE,gBAAO,KAAKQ,KAAL,CAAWT,KADpB;AAEE,mBAAU,KAAKC;AAFjB,SALF;AASE;AAAA;AAAA,WAAQ,SAAS,KAAKK,KAAtB;AAAA;AAAA;AATF,MADF;AAaD;AA7B2B,EAAlB,CAAZ,C,CATA;;AAyCA,oBAASE,MAAT,CACE,8BAAC,GAAD,OADF,EAEEE,SAASC,cAAT,CAAwB,iBAAxB,CAFF,E","file":"value-and-defaultValue.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 moment from 'moment';\nimport TimePicker from 'rc-time-picker';\n\nconst App = React.createClass({\n  getInitialState() {\n    return {\n      value: moment(),\n    };\n  },\n  handleValueChange(value) {\n    console.log(value && value.format('HH:mm:ss'));\n    this.setState({ value });\n  },\n  clear() {\n    this.setState({\n      value: undefined,\n    });\n  },\n  render() {\n    return (\n      <div>\n        <TimePicker\n          defaultValue={this.state.value}\n          onChange={this.handleValueChange}\n        />\n        <TimePicker\n          value={this.state.value}\n          onChange={this.handleValueChange}\n        />\n        <button onClick={this.clear}>clear</button>\n      </div>\n    );\n  },\n});\n\nReactDom.render(\n  <App />,\n  document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/value-and-defaultValue.js"],"sourceRoot":""}