cube-ui
Version:
A fantastic mobile ui lib implement by Vue
24 lines (21 loc) • 577 B
text/typescript
import { GetPropsAddString, GetTransformFnKeys } from './common'
/** Popup type */
export interface PopupProps {
visible?: boolean
type?: string
mask?: boolean
content?: string
center?: boolean
position?: string
maskClosable?: boolean
zIndex?: number
}
interface EventsProps {
'mask-click': (e: MouseEvent) => void
}
type TransfromEventsProps = GetTransformFnKeys<EventsProps>
type AddStringProps = GetPropsAddString<PopupProps>
export interface IPopup extends PopupProps, TransfromEventsProps {
$props?: AddStringProps
$events?: Partial<EventsProps>
}