We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 089041b commit f0aa112Copy full SHA for f0aa112
packages/react-vant/src/components/cell/Cell.tsx
@@ -54,7 +54,7 @@ const Cell: React.FC<CellProps> = props => {
54
const renderLeftIcon = () => {
55
if (props.icon) {
56
return React.cloneElement(props.icon as React.ReactElement, {
57
- className: clsx(bem('left-icon')),
+ className: clsx(props.icon?.props?.className ?? '', bem('left-icon')),
58
})
59
}
60
return null
0 commit comments