mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
e3d2754b1d
* fix(time-picker): combine dropdownClassName and popupClassName prop * test(time-picker): add test for popupClassName and dropdownClassName prop * chore(time-picker): add demo for popupClassName prop * test(time-picker): remove rc-picker dependency * doc(time-picker): change default prop of popupClassName to undefined * fix(time-picker): remove the use of dropdownClassName * Apply suggestions from code review Co-authored-by: 偏右 <afc163@gmail.com>
645 B
645 B
order | title | debug | ||||
---|---|---|---|---|---|---|
9 |
|
true |
zh-CN
カスタムクラスを TimePicker
ポップアップに渡す
en-US
Passing custom class to TimePicker
popup
import { TimePicker } from 'antd';
import moment from 'moment';
const onChange = (time, timeString) => {
console.log(time, timeString);
};
ReactDOM.render(
<TimePicker
onChange={onChange}
defaultOpenValue={moment('00:00:00', 'HH:mm:ss')}
popupClassName="myCustomClassName"
/>,
mountNode,
);
.myCustomClassName .ant-picker-time-panel-cell-inner {
color: red !important;
}