From 04de55f8a50f58575ccda435ba62edfca1d4a5e4 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Wed, 13 Jul 2016 20:21:06 +0800 Subject: add default prefixCls for panel --- src/TimePicker.jsx | 1 + src/mixin/CommonMixin.js | 1 - src/module/Panel.jsx | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) 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({ getDefaultProps() { return { + prefixCls: 'rc-time-picker', defaultOpen: false, style: {}, 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 { getDefaultProps() { return { - prefixCls: 'rc-time-picker', locale: enUs, }; }, 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({ getDefaultProps() { return { + prefixCls: 'rc-time-picker-panel', onChange: noop, onClear: noop, }; -- cgit v1.2.3