diff options
author | yiminghe <yiminghe@gmail.com> | 2016-07-13 20:21:06 +0800 |
---|---|---|
committer | yiminghe <yiminghe@gmail.com> | 2016-07-13 20:24:29 +0800 |
commit | 04de55f8a50f58575ccda435ba62edfca1d4a5e4 (patch) | |
tree | 6ca09123f190068fc7a43393dd8bd668b911f19a /src | |
parent | 840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056 (diff) | |
download | time-picker-04de55f8a50f58575ccda435ba62edfca1d4a5e4.tar.gz time-picker-04de55f8a50f58575ccda435ba62edfca1d4a5e4.tar.zst time-picker-04de55f8a50f58575ccda435ba62edfca1d4a5e4.zip |
add default prefixCls for panel
Diffstat (limited to 'src')
-rw-r--r-- | src/TimePicker.jsx | 1 | ||||
-rw-r--r-- | src/mixin/CommonMixin.js | 1 | ||||
-rw-r--r-- | src/module/Panel.jsx | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index 350eeb2..86faa71 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -45,6 +45,7 @@ const Picker = React.createClass({ | |||
45 | 45 | ||
46 | getDefaultProps() { | 46 | getDefaultProps() { |
47 | return { | 47 | return { |
48 | prefixCls: 'rc-time-picker', | ||
48 | defaultOpen: false, | 49 | defaultOpen: false, |
49 | style: {}, | 50 | style: {}, |
50 | className: '', | 51 | className: '', |
diff --git a/src/mixin/CommonMixin.js b/src/mixin/CommonMixin.js index a6893b8..be080fd 100644 --- a/src/mixin/CommonMixin.js +++ b/src/mixin/CommonMixin.js | |||
@@ -9,7 +9,6 @@ export default { | |||
9 | 9 | ||
10 | getDefaultProps() { | 10 | getDefaultProps() { |
11 | return { | 11 | return { |
12 | prefixCls: 'rc-time-picker', | ||
13 | locale: enUs, | 12 | locale: enUs, |
14 | }; | 13 | }; |
15 | }, | 14 | }, |
diff --git a/src/module/Panel.jsx b/src/module/Panel.jsx index 4c3d071..137ec2f 100644 --- a/src/module/Panel.jsx +++ b/src/module/Panel.jsx | |||
@@ -40,6 +40,7 @@ const Panel = React.createClass({ | |||
40 | 40 | ||
41 | getDefaultProps() { | 41 | getDefaultProps() { |
42 | return { | 42 | return { |
43 | prefixCls: 'rc-time-picker-panel', | ||
43 | onChange: noop, | 44 | onChange: noop, |
44 | onClear: noop, | 45 | onClear: noop, |
45 | }; | 46 | }; |