diff options
author | afc163 <afc163@gmail.com> | 2017-04-14 17:22:58 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2017-04-14 17:22:58 +0800 |
commit | 5b1086548164afd65cf4a5cbb7ec1f92cd5e2b9e (patch) | |
tree | d5c8b096944cd0648b04983cdf0630ade3a94151 /examples/value-and-defaultValue.js.map | |
parent | bc74c14f3cb8ea2d2b242563dbe9963b6491ade4 (diff) | |
download | time-picker-5b1086548164afd65cf4a5cbb7ec1f92cd5e2b9e.tar.gz time-picker-5b1086548164afd65cf4a5cbb7ec1f92cd5e2b9e.tar.zst time-picker-5b1086548164afd65cf4a5cbb7ec1f92cd5e2b9e.zip |
Updates
Diffstat (limited to 'examples/value-and-defaultValue.js.map')
-rw-r--r-- | examples/value-and-defaultValue.js.map | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/value-and-defaultValue.js.map b/examples/value-and-defaultValue.js.map index 4791ea2..d69efbc 100644 --- a/examples/value-and-defaultValue.js.map +++ b/examples/value-and-defaultValue.js.map | |||
@@ -1 +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":""} \ No newline at end of file | {"version":3,"sources":["webpack:///./examples/value-and-defaultValue.js"],"names":["App","state","value","handleValueChange","console","log","format","setState","clear","undefined","render","Component","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAEA;;;;AACA;;;;AACA;;;;AACA;;;;;;KAEMA,G;;;;;;;;;;;;uKACJC,K,GAAQ;AACNC,cAAO;AADD,M,QAGRC,iB,GAAoB,UAACD,KAAD,EAAW;AAC7BE,eAAQC,GAAR,CAAYH,SAASA,MAAMI,MAAN,CAAa,UAAb,CAArB;AACA,aAAKC,QAAL,CAAc,EAAEL,YAAF,EAAd;AACD,M,QACDM,K,GAAQ,YAAM;AACZ,aAAKD,QAAL,CAAc;AACZL,gBAAOO;AADK,QAAd;AAGD,M;;;iBACDC,M,qBAAS;AACP,YACE;AAAA;AAAA;AACE;AACE,uBAAc,KAAKT,KAAL,CAAWC,KAD3B;AAEE,mBAAU,KAAKC;AAFjB,SADF;AAKE;AACE,gBAAO,KAAKF,KAAL,CAAWC,KADpB;AAEE,mBAAU,KAAKC;AAFjB,SALF;AASE;AAAA;AAAA,WAAQ,SAAS,KAAKK,KAAtB;AAAA;AAAA;AATF,MADF;AAaD,I;;;GA3Be,gBAAMG,S,GATxB;;AAuCA,oBAASD,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\nclass App extends React.Component {\n state = {\n value: moment(),\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":""} \ No newline at end of file | ||