aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/value-and-defaultValue.js.map
blob: 51cb26253ef4d55cf4e9e0b89f7197d16965ac5c (plain) (blame)
1
{"version":3,"sources":["webpack:///./examples/value-and-defaultValue.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;;;AAEA,KAAM,MAAM,gBAAM,WAAN,CAAkB;AAAA;AAC5B,kBAD4B,6BACV;AAChB,YAAO;AACL,cAAO;AADF,MAAP;AAGD,IAL2B;AAM5B,oBAN4B,6BAMV,KANU,EAMH;AACvB,aAAQ,GAAR,CAAY,SAAS,MAAM,MAAN,CAAa,UAAb,CAArB;AACA,UAAK,QAAL,CAAc,EAAE,YAAF,EAAd;AACD,IAT2B;AAU5B,QAV4B,mBAUpB;AACN,UAAK,QAAL,CAAc;AACZ,cAAO;AADK,MAAd;AAGD,IAd2B;AAe5B,SAf4B,oBAenB;AACP,YACE;AAAA;AAAA;AACE;AACE,uBAAc,KAAK,KAAL,CAAW,KAD3B;AAEE,mBAAU,KAAK;AAFjB,SADF;AAKE;AACE,gBAAO,KAAK,KAAL,CAAW,KADpB;AAEE,mBAAU,KAAK;AAFjB,SALF;AASE;AAAA;AAAA,WAAQ,SAAS,KAAK,KAAtB;AAAA;AAAA;AATF,MADF;AAaD;AA7B2B,EAAlB,CAAZ,C,CATA;;AAyCA,oBAAS,MAAT,CACE,8BAAC,GAAD,OADF,EAEE,SAAS,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\n **/"],"sourceRoot":""}