From c635d78b479510ebe2556a420948effcd30a0731 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 21 十二月 2024 18:40:43 +0800 Subject: [PATCH] 新建德森项目分支 --- zy-asrs-flow/src/components/HeaderDropdown/index.tsx | 54 +++++++++++++++++++++++++++--------------------------- 1 files changed, 27 insertions(+), 27 deletions(-) diff --git a/zy-asrs-flow/src/components/HeaderDropdown/index.tsx b/zy-asrs-flow/src/components/HeaderDropdown/index.tsx index f89052d..9661912 100644 --- a/zy-asrs-flow/src/components/HeaderDropdown/index.tsx +++ b/zy-asrs-flow/src/components/HeaderDropdown/index.tsx @@ -1,27 +1,27 @@ -import { Dropdown } from 'antd'; -import type { DropDownProps } from 'antd/es/dropdown'; -import React from 'react'; -import { createStyles } from 'antd-style'; -import classNames from 'classnames'; - -const useStyles = createStyles(({ token }) => { - return { - dropdown: { - [`@media screen and (max-width: ${token.screenXS}px)`]: { - width: '100%', - }, - }, - }; -}); - -export type HeaderDropdownProps = { - overlayClassName?: string; - placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight' | 'bottomCenter'; -} & Omit<DropDownProps, 'overlay'>; - -const HeaderDropdown: React.FC<HeaderDropdownProps> = ({ overlayClassName: cls, ...restProps }) => { - const { styles } = useStyles(); - return <Dropdown overlayClassName={classNames(styles.dropdown, cls)} {...restProps} />; -}; - -export default HeaderDropdown; +import { Dropdown } from 'antd'; +import type { DropDownProps } from 'antd/es/dropdown'; +import React from 'react'; +import { createStyles } from 'antd-style'; +import classNames from 'classnames'; + +const useStyles = createStyles(({ token }) => { + return { + dropdown: { + [`@media screen and (max-width: ${token.screenXS}px)`]: { + width: '100%', + }, + }, + }; +}); + +export type HeaderDropdownProps = { + overlayClassName?: string; + placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight' | 'bottomCenter'; +} & Omit<DropDownProps, 'overlay'>; + +const HeaderDropdown: React.FC<HeaderDropdownProps> = ({ overlayClassName: cls, ...restProps }) => { + const { styles } = useStyles(); + return <Dropdown overlayClassName={classNames(styles.dropdown, cls)} {...restProps} />; +}; + +export default HeaderDropdown; -- Gitblit v1.9.1