aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/disabled.js.map
diff options
context:
space:
mode:
authoryiminghe <yiminghe@gmail.com>2016-08-04 19:54:59 +0800
committeryiminghe <yiminghe@gmail.com>2016-08-04 19:54:59 +0800
commit40e6f165fecf11a01159ff3e1ddd9e37af3cb492 (patch)
tree7dcc572302d0f49a5e6499024f402836a8d8ae84 /examples/disabled.js.map
parent6cadbb3ade01969826b676b91182b3862f9c4d19 (diff)
downloadtime-picker-40e6f165fecf11a01159ff3e1ddd9e37af3cb492.tar.gz
time-picker-40e6f165fecf11a01159ff3e1ddd9e37af3cb492.tar.zst
time-picker-40e6f165fecf11a01159ff3e1ddd9e37af3cb492.zip
Updates
Diffstat (limited to 'examples/disabled.js.map')
-rw-r--r--examples/disabled.js.map2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/disabled.js.map b/examples/disabled.js.map
index 3a4fd18..b4569dd 100644
--- a/examples/disabled.js.map
+++ b/examples/disabled.js.map
@@ -1 +1 @@
{"version":3,"sources":["webpack:///./examples/disabled.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;qBAEO,CAAkC;;kCAEvB,CAAO;;;;qCACJ,GAAW;;;;8CAEF,GAAoB;;;;oDACvB,GAA2B;;;;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,mCAAsB,wCAAiB,QAAQ,CAAC,CAAC;AAC7D,IAAG,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;;AAExB,UAAS,eAAe,CAAC,MAAM,EAAE,eAAe,EAAE;AAChD,OAAM,GAAG,GAAG,EAAE,CAAC;AACf,QAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,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,CAAC,CAC3C,C","file":"disabled.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';\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(TimePickerLocale.calendar);\nnow.setTime(Date.now());\n\nfunction generateOptions(length, excludedOptions) {\n const arr = [];\n for (let value = 0; value < length; value++) {\n if (excludedOptions.indexOf(value) < 0) {\n arr.push(value);\n }\n }\n return arr;\n}\n\nfunction onChange(value) {\n console.log(value && formatter.format(value));\n}\n\nfunction disabledHours() {\n return [0, 1, 2, 3, 4, 5, 6, 7, 8, 22, 23];\n}\n\nfunction disabledMinutes(h) {\n switch (h) {\n case 9:\n return generateOptions(60, [30]);\n case 21:\n return generateOptions(60, [0]);\n default:\n return generateOptions(60, [0, 30]);\n }\n}\n\nfunction disabledSeconds(h, m) {\n return [h + m % 60];\n}\n\nReactDom.render(\n <TimePicker formatter={formatter} locale={TimePickerLocale}\n showSecond={showSecond}\n defaultValue={now}\n className=\"xxx\"\n onChange={onChange}\n disabledHours={disabledHours}\n disabledMinutes={disabledMinutes}\n disabledSeconds={disabledSeconds}/>,\n document.getElementById('__react-content')\n);\n\n\n\n/** WEBPACK FOOTER **\n ** ./examples/disabled.js\n **/"],"sourceRoot":""} \ No newline at end of file {"version":3,"sources":["webpack:///./examples/disabled.js"],"names":[],"mappings":";;;;;;;;;;;;;AAEA;;AAEA;;;;AACA;;;;AAEA;;;;AAEA;;;;;;AAEA,KAAM,aAAa,IAAnB,C,CAXA;;AAYA,KAAM,MAAM,aAAa,UAAb,GAA0B,OAAtC;;AAEA,KAAM,MAAM,wBAAS,IAAT,CA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","file":"disabled.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 moment from 'moment';\n\nimport TimePicker from 'rc-time-picker';\n\nconst showSecond = true;\nconst str = showSecond ? 'HH:mm:ss' : 'HH:mm';\n\nconst now = moment().hour(14).minute(30);\n\nfunction generateOptions(length, excludedOptions) {\n const arr = [];\n for (let value = 0; value < length; value++) {\n if (excludedOptions.indexOf(value) < 0) {\n arr.push(value);\n }\n }\n return arr;\n}\n\nfunction onChange(value) {\n console.log(value && value.format(str));\n}\n\nfunction disabledHours() {\n return [0, 1, 2, 3, 4, 5, 6, 7, 8, 22, 23];\n}\n\nfunction disabledMinutes(h) {\n switch (h) {\n case 9:\n return generateOptions(60, [30]);\n case 21:\n return generateOptions(60, [0]);\n default:\n return generateOptions(60, [0, 30]);\n }\n}\n\nfunction disabledSeconds(h, m) {\n return [h + m % 60];\n}\n\nReactDom.render(\n <TimePicker\n showSecond={showSecond}\n defaultValue={now}\n className=\"xxx\"\n onChange={onChange}\n disabledHours={disabledHours}\n disabledMinutes={disabledMinutes}\n disabledSeconds={disabledSeconds}\n />,\n document.getElementById('__react-content')\n);\n\n\n\n/** WEBPACK FOOTER **\n ** ./examples/disabled.js\n **/"],"sourceRoot":""} \ No newline at end of file