generated from egoist/ts-lib-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from birdgg/feat/list-max-height
feat: add listMaxHeight prop
- Loading branch information
Showing
3 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
## Props | ||
|
||
| Prop | Default | Description | | ||
| ------------ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------ | | ||
| audio | | Songs' information. Could be a single object or an array of objects | | ||
| audio.name | `"Audio name"` | Title of the song | | ||
| audio.artist | `"Audio artist"` | Artist name of the song | | ||
| audio.url | | Url of the media source to play | | ||
| audio.cover | | Url of the album cover image | | ||
| audio.lrc | | Lyrics of the song in raw LRC format | | ||
| audio.theme | | Override theme color for this song. See `theme` prop for theme color explanation | | ||
| theme | `"#ebd0c2"` | Theme color of the player that applies to progress bar, volume control bar and playlist marker. | | ||
| autoPlay | | [See `autoplay` attribute of `<audio>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-autoplay) | | ||
| volume | `0.7` | Initial volume of the player. | | ||
| initialLoop | `"all"` | Initial loop mode of the player | | ||
| initialOrder | `"list"` | Initial playlist order of the player | | ||
| Prop | Default | Description | | ||
| ------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------ | | ||
| audio | | Songs' information. Could be a single object or an array of objects | | ||
| audio.name | `"Audio name"` | Title of the song | | ||
| audio.artist | `"Audio artist"` | Artist name of the song | | ||
| audio.url | | Url of the media source to play | | ||
| audio.cover | | Url of the album cover image | | ||
| audio.lrc | | Lyrics of the song in raw LRC format | | ||
| audio.theme | | Override theme color for this song. See `theme` prop for theme color explanation | | ||
| theme | `"#ebd0c2"` | Theme color of the player that applies to progress bar, volume control bar and playlist marker. | | ||
| autoPlay | | [See `autoplay` attribute of `<audio>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-autoplay) | | ||
| volume | `0.7` | Initial volume of the player. | | ||
| initialLoop | `"all"` | Initial loop mode of the player | | ||
| initialOrder | `"list"` | Initial playlist order of the player | | ||
| listMaxHeight | `250` | Playerlist max height | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f771240
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
aplayer-react – ./
aplayer-react-leishenghao.vercel.app
aplayer-react.js.org
aplayer-react.vercel.app
aplayer-react-git-master-leishenghao.vercel.app