UNPKG

@mijadesign/mjui-react-taro

Version:

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

21 lines (20 loc) 692 B
import React, { FunctionComponent } 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 declare const Video: FunctionComponent<Partial<VideoProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onPause' | 'onPlay'>>;