diff --git a/src/react/AudioPlayer/index.tsx b/src/react/AudioPlayer/index.tsx index 4ffc870..597d8be 100644 --- a/src/react/AudioPlayer/index.tsx +++ b/src/react/AudioPlayer/index.tsx @@ -22,6 +22,7 @@ export interface AudioPlayerProps { audio: AudioProps; buttonActive?: boolean; buttonSize?: ActionIconProps['size']; + buttonStyle?: CSSProperties; className?: string; isLoading?: boolean; onInitPlay?: () => void; @@ -35,6 +36,7 @@ export interface AudioPlayerProps { timeRender?: 'tag' | 'text'; timeStyle?: CSSProperties; timeType?: 'left' | 'current' | 'combine'; + title?: string; } const AudioPlayer = memo( @@ -64,6 +66,8 @@ const AudioPlayer = memo( onInitPlay, onPause, onStop, + title, + buttonStyle, onPlay, }) => { const { isPlaying, play, stop, pause, duration, setTime, currentTime, download } = audio; @@ -118,6 +122,8 @@ const AudioPlayer = memo( loading={isLoading} onClick={isPlaying ? (allowPause ? handlePause : handleStop) : handlePlay} size={buttonSize || { blockSize: 32, fontSize: 16 }} + style={buttonStyle} + title={title} /> {showSlider && (