1
|
{"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":""}
|