From 5894e17c2a086ba4296a28b447795a6733835e97 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Mon, 22 Feb 2016 10:41:35 +0800 Subject: Updates --- examples/disabled.html | 18 +++++++++--------- examples/disabled.js.map | 2 +- examples/hidden.html | 4 ++-- examples/pick-time.html | 4 ++-- examples/value-and-defaultValue.html | 4 ++-- index.html | 4 ++-- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/disabled.html b/examples/disabled.html index 315bcd4..329424d 100644 --- a/examples/disabled.html +++ b/examples/disabled.html @@ -2,7 +2,7 @@ - disabled.js - example - rc-time-picker@1.1.1 + disabled.js - example - rc-time-picker@1.1.3 @@ -257,7 +257,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
-

rc-time-picker@1.1.1

+

rc-time-picker@1.1.3

React TimePicker

@@ -305,12 +305,12 @@ now.setTime(Date.now()); function disabledMinutes(h) { switch (h) { - case 9: - return generateOptions(60, [30]); - case 21: - return generateOptions(60, [0]); - default: - return generateOptions(60, [0, 30]); + case 9: + return generateOptions(60, [30]); + case 21: + return generateOptions(60, [0]); + default: + return generateOptions(60, [0, 30]); } } @@ -326,7 +326,7 @@ ReactDom.render( onChange={onChange} disabledHours={disabledHours} disabledMinutes={disabledMinutes} - disabledSeconds={disabledSeconds} />, + disabledSeconds={disabledSeconds}/>, document.getElementById('__react-content') );
diff --git a/examples/disabled.js.map b/examples/disabled.js.map index 9cdb565..3a4fd18 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,O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AC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;EACrB;;AAED,uBAAS,MAAM,CACb,8DAAY,SAAS,EAAE,SAAU,EAAC,MAAM,yCAAmB;AAC/C,aAAU,EAAE,UAAW;AACvB,eAAY,EAAE,GAAI;AAClB,YAAS,EAAC,KAAK;AACf,WAAQ,EAAE,QAAS;AACnB,gBAAa,EAAE,aAAc;AAC7B,kBAAe,EAAE,eAAgB;AACjC,kBAAe,EAAE,eAAgB,GAAG,EAChD,QAAQ,CAAC,cAAc,CAAC,iBAAiB,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 ,\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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UAAK,EAAE;AACL,cAAO,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC;AACE,cAAO,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAAA,IACvC;EACF;;AAED,UAAS,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE;AAC7B,UAAO,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;EACrB;;AAED,uBAAS,MAAM,CACb,8DAAY,SAAS,EAAE,SAAU,EAAC,MAAM,yCAAmB;AAC/C,aAAU,EAAE,UAAW;AACvB,eAAY,EAAE,GAAI;AAClB,YAAS,EAAC,KAAK;AACf,WAAQ,EAAE,QAAS;AACnB,gBAAa,EAAE,aAAc;AAC7B,kBAAe,EAAE,eAAgB;AACjC,kBAAe,EAAE,eAAgB,GAAE,EAC/C,QAAQ,CAAC,cAAc,CAAC,iBAAiB,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 ,\n document.getElementById('__react-content')\n);\n\n\n\n/** WEBPACK FOOTER **\n ** ./examples/disabled.js\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/examples/hidden.html b/examples/hidden.html index e880e72..2e049dc 100644 --- a/examples/hidden.html +++ b/examples/hidden.html @@ -2,7 +2,7 @@ - hidden.js - example - rc-time-picker@1.1.1 + hidden.js - example - rc-time-picker@1.1.3 @@ -257,7 +257,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
-

rc-time-picker@1.1.1

+

rc-time-picker@1.1.3

React TimePicker

diff --git a/examples/pick-time.html b/examples/pick-time.html index 4150df3..06a2a68 100644 --- a/examples/pick-time.html +++ b/examples/pick-time.html @@ -2,7 +2,7 @@ - pick-time.js - example - rc-time-picker@1.1.1 + pick-time.js - example - rc-time-picker@1.1.3 @@ -257,7 +257,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
-

rc-time-picker@1.1.1

+

rc-time-picker@1.1.3

React TimePicker

diff --git a/examples/value-and-defaultValue.html b/examples/value-and-defaultValue.html index be94e57..6c6f53e 100644 --- a/examples/value-and-defaultValue.html +++ b/examples/value-and-defaultValue.html @@ -2,7 +2,7 @@ - value-and-defaultValue.js - example - rc-time-picker@1.1.1 + value-and-defaultValue.js - example - rc-time-picker@1.1.3 @@ -257,7 +257,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
-

rc-time-picker@1.1.1

+

rc-time-picker@1.1.3

React TimePicker

diff --git a/index.html b/index.html index 723d865..095254c 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ - rc-time-picker@1.1.1 - React TimePicker + rc-time-picker@1.1.3 - React TimePicker