thinkasany
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
4 deletions
-
components/anchor/Anchor.tsx
-
components/collapse/CollapsePanel.tsx
-
components/input/Group.tsx
|
|
@ -114,7 +114,7 @@ const AnchorContent: React.FC<InternalAnchorProps> = (props) => { |
|
|
|
const { |
|
|
|
rootClassName, |
|
|
|
anchorPrefixCls: prefixCls, |
|
|
|
className = '', |
|
|
|
className, |
|
|
|
style, |
|
|
|
offsetTop, |
|
|
|
affix = true, |
|
|
|
|
|
@ -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( |
|
|
|
{ |
|
|
|
|
|
@ -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); |
|
|
|