From 1b0327ac98b6e229edb6257fea9a6927e1dda844 Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Thu, 19 Dec 2024 14:57:53 +0800 Subject: [PATCH] refactor: update inner to body --- README.md | 4 ++-- src/Popup.tsx | 6 +++--- src/Tooltip.tsx | 10 +++++----- tests/index.test.tsx | 10 +++++----- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index eb93e11..ae51cdc 100644 --- a/README.md +++ b/README.md @@ -92,8 +92,8 @@ Online demo: | align | object | | align config of tooltip. Please ref demo for usage example | | showArrow | boolean \| object | false | whether to show arrow of tooltip | | zIndex | number | | config popup tooltip zIndex | -| classNames | classNames?: { root?: string; inner?: string;}; | | Semantic DOM class | -| styles | styles?: {root?: React.CSSProperties;inner?: React.CSSProperties;}; | | Semantic DOM styles | +| classNames | classNames?: { root?: string; body?: string;}; | | Semantic DOM class | +| styles | styles?: {root?: React.CSSProperties;body?: React.CSSProperties;}; | | Semantic DOM styles | ## Important Note diff --git a/src/Popup.tsx b/src/Popup.tsx index 7e19976..2ab1184 100644 --- a/src/Popup.tsx +++ b/src/Popup.tsx @@ -8,17 +8,17 @@ export interface ContentProps { overlayInnerStyle?: React.CSSProperties; className?: string; style?: React.CSSProperties; - innerClassName?: string; + bodyClassName?: string; } export default function Popup(props: ContentProps) { - const { children, prefixCls, id, overlayInnerStyle: innerStyle, innerClassName, className, style } = + const { children, prefixCls, id, overlayInnerStyle: innerStyle, bodyClassName, className, style } = props; return (