UNPKG

zent

Version:

一套前端设计语言和基于React的实现

29 lines (21 loc) 700 B
/// <reference types="react" /> declare module 'zent/lib/portal' { interface IPortalProps { children: React.ReactChild selector?: string | HTMLElement visible?: boolean className?: string css?: React.CSSProperties prefix?: string } class Portal extends React.Component<IPortalProps, any> { } namespace Portal { interface IEscPortalProps extends IPortalProps { onClose: () => void } function withESCToClose(component: Portal): React.Component<IEscPortalProps, any> type INonScrollablePortalProps = IPortalProps function withNonScrollable(component: Portal): React.Component<INonScrollablePortalProps, any> } export default Portal }