(props: PanelBod
isSame(generateConfig, locale, currentDate, date, type),
@@ -142,7 +140,7 @@ export default function PanelBody(props: PanelBod
matchValues(currentDate),
...getCellClassName(currentDate),
})}
- style={styles?.popupItem}
+ style={styles.item}
onClick={() => {
if (!disabled) {
onSelect(currentDate);
@@ -186,14 +184,8 @@ export default function PanelBody(props: PanelBod
// ============================== Render ==============================
return (
-
-
+
+
{headerCells && (
{headerCells}
diff --git a/src/PickerPanel/PanelHeader.tsx b/src/PickerPanel/PanelHeader.tsx
index 28dbb3179..1ff81e07b 100644
--- a/src/PickerPanel/PanelHeader.tsx
+++ b/src/PickerPanel/PanelHeader.tsx
@@ -1,4 +1,4 @@
-import classNames from 'classnames';
+import cls from 'classnames';
import * as React from 'react';
import { isSameOrAfter } from '../utils/dateUtil';
import { PickerHackContext, usePanelContext } from './context';
@@ -33,6 +33,8 @@ function PanelHeader(props: HeaderProps) {
const {
prefixCls,
+ classNames,
+ styles,
// Icons
prevIcon = '\u2039',
@@ -118,17 +120,14 @@ function PanelHeader(props: HeaderProps) {
const superNextBtnCls = `${headerPrefixCls}-super-next-btn`;
return (
-
+
{superOffset && (
|