-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,12 @@ export type ButtonProps = AntButtonProps; | |
|
||
const Button = React.forwardRef<HTMLButtonElement | HTMLAnchorElement, ButtonProps>( | ||
({ prefixCls: customizePrefixCls, className, ...restProps }, ref) => { | ||
const { getPrefixCls } = useContext(ConfigProvider.ConfigContext); | ||
const { theme, getPrefixCls } = useContext(ConfigProvider.ConfigContext); | ||
const prefixCls = getPrefixCls('btn', customizePrefixCls); | ||
const { wrapSSR } = useStyle(prefixCls); | ||
const buttonCls = classNames(className); | ||
const buttonCls = classNames(className, { | ||
[`${prefixCls}-aliyun`]: theme.isAliyun, | ||
Check failure on line 18 in packages/design/src/button/index.tsx GitHub Actions / test (16.x, ubuntu-latest)src/drawer/__tests__/index.test.tsx > Drawer > render with default footer
Check failure on line 18 in packages/design/src/button/index.tsx GitHub Actions / test (16.x, ubuntu-latest)src/drawer/__tests__/index.test.tsx > Drawer > render with onOk
Check failure on line 18 in packages/design/src/button/index.tsx GitHub Actions / test (16.x, ubuntu-latest)src/drawer/__tests__/index.test.tsx > Drawer > render with okText and cancenText
Check failure on line 18 in packages/design/src/button/index.tsx GitHub Actions / test (16.x, ubuntu-latest)src/drawer/__tests__/index.test.tsx > Drawer > render with confirmLoading and okButtonProps
Check failure on line 18 in packages/design/src/button/index.tsx GitHub Actions / test (16.x, ubuntu-latest)src/drawer/__tests__/index.test.tsx > Drawer > render with footerExtra and default footer
Check failure on line 18 in packages/design/src/button/index.tsx GitHub Actions / test (16.x, ubuntu-latest)node_modules/@oceanbase/design/src/drawer/__tests__/index.test.tsx > Drawer > render with default footer
Check failure on line 18 in packages/design/src/button/index.tsx GitHub Actions / test (16.x, ubuntu-latest)node_modules/@oceanbase/design/src/drawer/__tests__/index.test.tsx > Drawer > render with onOk
Check failure on line 18 in packages/design/src/button/index.tsx GitHub Actions / test (16.x, ubuntu-latest)node_modules/@oceanbase/design/src/drawer/__tests__/index.test.tsx > Drawer > render with okText and cancenText
|
||
}); | ||
return wrapSSR( | ||
<AntButton ref={ref} prefixCls={customizePrefixCls} className={buttonCls} {...restProps} /> | ||
); | ||
|