/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/taro-components-library-react/src/react-component-lib/interfaces.ts
38 строк
1020 B
Zakary
feat(h5): 补充框架适配器运行时
29 мар 2023, 06:15
29 мар 2023, 06:15
e2200ea
Код
Авторство
О чём код?
/** * Modify from https://github.com/ionic-team/stencil-ds-output-targets/blob/main/packages/react-output-target/react-component-lib/interfaces.ts * MIT License https://github.com/ionic-team/stencil-ds-output-targets/blob/main/LICENSE */ // General types important to applications using stencil built components export interface EventEmitter<T = any> { emit: (data?: T) => CustomEvent<T> } export interface StyleReactProps { class?: string className?: string style?: { [key: string]: any } } export interface OverlayEventDetail<T = any> { data?: T role?: string } export interface OverlayInterface { el: HTMLElement animated: boolean keyboardClose: boolean overlayIndex: number presented: boolean enterAnimation?: any leaveAnimation?: any didPresent: EventEmitter<void> willPresent: EventEmitter<void> willDismiss: EventEmitter<OverlayEventDetail> didDismiss: EventEmitter<OverlayEventDetail> present(): Promise<void> dismiss(data?: any, role?: string): Promise<boolean> }