diff options
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 8b708bc..51cb262 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":[],"mappings":";;;;;;;;;;;;;;;;;;;qBAEO,CAAkC;;kCAEvB,CAAO;;;;qCACJ,GAAW;;;;8CAEF,GAAoB;;;;oDACvB,GAA2B;;;;yCAC/B,GAAgB;;;;uDACV,GAAiC;;;;AAE9D,KAAM,SAAS,GAAG,yCAAmB,UAAU,CAAC,CAAC;;AAEjD,KAAM,GAAG,GAAG,mCAAsB,wCAAiB,QAAQ,CAAC,CAAC;AAC7D,IAAG,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;;AAExB,KAAM,GAAG,GAAG,mBAAM,WAAW,CAAC;;;AAC5B,kBAAe,6BAAG;AAChB,YAAO;AACL,YAAK,EAAE,GAAG;MACX,CAAC;IACH;AACD,oBAAiB,6BAAC,KAAK,EAAE;AACvB,YAAO,CAAC,GAAG,CAAC,KAAK,IAAI,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAC9C,SAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAL,KAAK,EAAE,CAAC,CAAC;IAC1B;AACD,QAAK,mBAAG;AACN,SAAI,CAAC,QAAQ,CAAC;AACZ,YAAK,EAAE,SAAS;MACjB,CAAC,CAAC;IACJ;AACD,SAAM,oBAAG;AACP,YACE;;;OACE,8DAAY,SAAS,EAAE,SAAU,EAAC,MAAM,yCAAmB;AACrD,qBAAY,EAAE,GAAI,GAAG;OAC3B,8DAAY,SAAS,EAAE,SAAU,EAAC,MAAM,yCAAmB;AACrD,cAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAM;AACxB,iBAAQ,EAAE,IAAI,CAAC,iBAAkB,GAAE;OACzC;;WAAQ,OAAO,EAAE,IAAI,CAAC,KAAM;;QAAe;MACvC,CACN;IACH;EACF,CAAC,CAAC;;AAEH,uBAAS,MAAM,CACb,iCAAC,GAAG,OAAG,EACP,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAC3C,C","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';\n\nimport GregorianCalendar from 'gregorian-calendar';\nimport DateTimeFormat from 'gregorian-calendar-format';\nimport TimePicker from 'rc-time-picker';\nimport TimePickerLocale from 'rc-time-picker/src/locale/zh_CN';\n\nconst formatter = new DateTimeFormat('HH:mm:ss');\n\nconst now = new GregorianCalendar(TimePickerLocale.calendar);\nnow.setTime(Date.now());\n\nconst App = React.createClass({\n getInitialState() {\n return {\n value: now,\n };\n },\n handleValueChange(value) {\n console.log(value && formatter.format(value));\n this.setState({ value });\n },\n clear() {\n this.setState({\n value: undefined,\n });\n },\n render() {\n return (\n <div>\n <TimePicker formatter={formatter} locale={TimePickerLocale}\n defaultValue={now} />\n <TimePicker formatter={formatter} locale={TimePickerLocale}\n value={this.state.value}\n onChange={this.handleValueChange}/>\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":""} \ No newline at end of file | {"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":""} \ No newline at end of file | ||