fix: double arrow (#41578)

* fix: double arrow

* chore: fix test
This commit is contained in:
acyza 2023-04-01 01:20:47 +08:00 committed by GitHub
parent f53618ddaa
commit 4792b879ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 23 deletions

View File

@ -83,9 +83,6 @@ Array [
<div
class="ant-tour-content"
>
<div
class="ant-tour-arrow"
/>
<div
class="ant-tour-inner"
>
@ -249,9 +246,6 @@ Array [
<div
class="ant-tour-content"
>
<div
class="ant-tour-arrow"
/>
<div
class="ant-tour-inner"
>
@ -401,9 +395,6 @@ Array [
<div
class="ant-tour-content"
>
<div
class="ant-tour-arrow"
/>
<div
class="ant-tour-inner"
>
@ -567,9 +558,6 @@ Array [
<div
class="ant-tour-primary ant-tour-content"
>
<div
class="ant-tour-arrow"
/>
<div
class="ant-tour-inner"
>

View File

@ -20,9 +20,6 @@ exports[`Tour Primary 1`] = `
<div
class="ant-tour-primary ant-tour-content"
>
<div
class="ant-tour-arrow"
/>
<div
class="ant-tour-inner"
>
@ -305,9 +302,6 @@ exports[`Tour single 1`] = `
<div
class="ant-tour-content"
>
<div
class="ant-tour-arrow"
/>
<div
class="ant-tour-inner"
>
@ -467,9 +461,6 @@ exports[`Tour step support Primary 1`] = `
<div
class="ant-tour-primary ant-tour-content"
>
<div
class="ant-tour-arrow"
/>
<div
class="ant-tour-inner"
>

View File

@ -33,7 +33,6 @@ const TourPanel: React.FC<TourPanelProps> = ({ stepProps, current, type, indicat
nextButtonProps,
prevButtonProps,
type: stepType,
arrow,
className,
} = stepProps;
@ -102,7 +101,6 @@ const TourPanel: React.FC<TourPanelProps> = ({ stepProps, current, type, indicat
`${prefixCls}-content`,
)}
>
{arrow && <div className={`${prefixCls}-arrow`} key="arrow" />}
<div className={`${prefixCls}-inner`}>
<CloseOutlined className={`${prefixCls}-close`} onClick={onClose} />
{coverNode}