aboutsummaryrefslogblamecommitdiffhomepage
path: root/examples/pick-time.js.map
blob: 7698ad947fc0b383b5957636da191e54fe2ce297 (plain) (tree)
1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
{"version":3,"sources":["webpack:///./examples/pick-time.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;qBAEO,CAAkC;;kCAEvB,CAAO;;;;qCACJ,GAAW;;;;8CAEF,GAAoB;;;;oDACvB,GAA2B;;;;4DACrC,GAAqC;;;;yCAE/B,GAAgB;;;;uDACV,GAAiC;;;;AAE9D,KAAM,UAAU,GAAG,IAAI,CAAC;AACxB,KAAM,GAAG,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;;AAE9C,KAAM,SAAS,GAAG,yCAAmB,GAAG,CAAC,CAAC;;AAE1C,KAAM,GAAG,GAAG,gFAA2B,CAAC;AACxC,IAAG,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;;AAExB,UAAS,QAAQ,CAAC,KAAK,EAAE;AACvB,UAAO,CAAC,GAAG,CAAC,KAAK,IAAI,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;EAC/C;;AAED,uBAAS,MAAM,CACb,8DAAY,SAAS,EAAE,SAAU,EAAC,MAAM,yCAAmB;AAC/C,QAAK,EAAE,EAAC,KAAK,EAAE,GAAG,EAAE;AACpB,aAAU,EAAE,UAAW;AACvB,eAAY,EAAE,GAAI;AAClB,YAAS,EAAC,KAAK;AACf,WAAQ,EAAE,QAAS,GAAG,EAClC,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAC3C,C","file":"pick-time.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 zhCn from 'gregorian-calendar/lib/locale/zh_CN';\n\nimport TimePicker from 'rc-time-picker';\nimport TimePickerLocale from 'rc-time-picker/src/locale/zh_CN';\n\nconst showSecond = true;\nconst str = showSecond ? 'HH:mm:ss' : 'HH:mm';\n\nconst formatter = new DateTimeFormat(str);\n\nconst now = new GregorianCalendar(zhCn);\nnow.setTime(Date.now());\n\nfunction onChange(value) {\n  console.log(value && formatter.format(value));\n}\n\nReactDom.render(\n  <TimePicker formatter={formatter} locale={TimePickerLocale}\n              style={{width: 100}}\n              showSecond={showSecond}\n              defaultValue={now}\n              className=\"xxx\"\n              onChange={onChange} />,\n  document.getElementById('__react-content')\n);\n\n\n\n/** WEBPACK FOOTER **\n ** ./examples/pick-time.js\n **/"],"sourceRoot":""}