@mijadesign/mjui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
19 lines (18 loc) • 738 B
TypeScript
import React, { FunctionComponent } from 'react';
import type { SyntheticEvent } from 'react';
import { BasicComponent } from '../../utils/typings';
export interface AudioProps extends BasicComponent {
src: string;
muted: boolean;
autoPlay: boolean;
loop: boolean;
preload: string;
type: string;
onBack: (e: HTMLAudioElement) => void;
onForward: (e: HTMLAudioElement) => void;
onPause: (e: SyntheticEvent<HTMLAudioElement>) => void;
onEnd: (e: SyntheticEvent<HTMLAudioElement>) => void;
onMute: (e: HTMLAudioElement) => void;
onCanPlay: (e: SyntheticEvent<HTMLAudioElement>) => void;
}
export declare const Audio: FunctionComponent<Partial<AudioProps> & React.HTMLAttributes<HTMLElement>>;