mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-28 20:25:29 +08:00
* feat: export all types related to components fix(tooltip): fix the vertical offset of the arrow * refactor: optimize events of all popup related components * test: append testcases for popup base component * test: add testcase for visible events * test: update snapshots
21 lines
712 B
TypeScript
21 lines
712 B
TypeScript
import Card from './card'
|
|
import CardFooter from './card-footer'
|
|
import CardContent from './card-content'
|
|
|
|
export type CardComponentType = typeof Card & {
|
|
Footer: typeof CardFooter
|
|
Actions: typeof CardFooter
|
|
Content: typeof CardContent
|
|
Body: typeof CardContent
|
|
}
|
|
;(Card as CardComponentType).Footer = CardFooter
|
|
;(Card as CardComponentType).Actions = CardFooter
|
|
;(Card as CardComponentType).Content = CardContent
|
|
;(Card as CardComponentType).Body = CardContent
|
|
|
|
export type { CardProps } from './card'
|
|
export type { CardContentProps } from './card-content'
|
|
export type { CardFooterProps } from './card-footer'
|
|
export type { CardTypes } from '../utils/prop-types'
|
|
export default Card as CardComponentType
|