UNPKG

@nutui/nutui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

25 lines (24 loc) 803 B
import { default as React } from 'react'; import { BasicComponent } from '../../utils/typings'; export interface VideoProps extends BasicComponent { source: { type: string; src: string; }; options: { controls?: boolean; muted?: boolean; autoplay?: boolean; poster?: string; playsinline?: boolean; loop?: boolean; }; onPlay: (element: HTMLVideoElement) => void; onPause: (element: HTMLVideoElement) => void; onPlayEnd: (element: HTMLVideoElement) => void; } export type VideoRef = { pause: () => void; play: () => void; }; export declare const Video: React.ForwardRefExoticComponent<Partial<VideoProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onPause" | "onPlay"> & React.RefAttributes<VideoRef>>;