Browse Source

fix: Remove the default value of the empty string (#43481)

pull/43112/merge
thinkasany 1 year ago
committed by GitHub
parent
commit
bbfaa9a9bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/anchor/Anchor.tsx
  2. 2
      components/collapse/CollapsePanel.tsx
  3. 4
      components/input/Group.tsx

2
components/anchor/Anchor.tsx

@ -114,7 +114,7 @@ const AnchorContent: React.FC<InternalAnchorProps> = (props) => {
const {
rootClassName,
anchorPrefixCls: prefixCls,
className = '',
className,
style,
offsetTop,
affix = true,

2
components/collapse/CollapsePanel.tsx

@ -30,7 +30,7 @@ const CollapsePanel = React.forwardRef<HTMLDivElement, CollapsePanelProps>((prop
);
const { getPrefixCls } = React.useContext(ConfigContext);
const { prefixCls: customizePrefixCls, className = '', showArrow = true } = props;
const { prefixCls: customizePrefixCls, className, showArrow = true } = props;
const prefixCls = getPrefixCls('collapse', customizePrefixCls);
const collapsePanelClassName = classNames(
{

4
components/input/Group.tsx

@ -1,10 +1,10 @@
import classNames from 'classnames';
import * as React from 'react';
import { useContext, useMemo } from 'react';
import warning from '../_util/warning';
import { ConfigContext } from '../config-provider';
import type { FormItemStatusContextProps } from '../form/context';
import { FormItemInputContext } from '../form/context';
import warning from '../_util/warning';
import useStyle from './style';
export interface GroupProps {
@ -22,7 +22,7 @@ export interface GroupProps {
const Group: React.FC<GroupProps> = (props) => {
const { getPrefixCls, direction } = useContext(ConfigContext);
const { prefixCls: customizePrefixCls, className = '' } = props;
const { prefixCls: customizePrefixCls, className } = props;
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
const inputPrefixCls = getPrefixCls('input');
const [wrapSSR, hashId] = useStyle(inputPrefixCls);

Loading…
Cancel
Save