Skip to content

Commit

Permalink
feat(docs): refine audio source
Browse files Browse the repository at this point in the history
  • Loading branch information
hankliu62 committed Apr 22, 2024
1 parent 4da271d commit d2b4916
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 deletions components/audio-player/demo/attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ title: 支持属性

支持属性

````jsx
```jsx
import { AudioPlayer } from '@hankliu/hankliu-ui';
import audio from './audio/flower-dance.mp3';

class Card extends React.Component{

class Card extends React.Component {
state = {
source: 'https://github.com/hankliu62/hankliu62.github.com/assets/8088864/d5612b11-1fec-49c1-b802-d5a5bf3a8de2',
}
source: audio,
};

render() {
let { source } = this.state;
Expand All @@ -25,4 +25,4 @@ class Card extends React.Component{
}

ReactDOM.render(<Card />, mountNode);
````
```
Binary file not shown.
Binary file added components/audio-player/demo/audio/youcaihong.mp3
Binary file not shown.
12 changes: 6 additions & 6 deletions components/audio-player/demo/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ title: 基本

基本用法。

````jsx
```jsx
import { AudioPlayer } from '@hankliu/hankliu-ui';
import audio from './audio/youcaihong.mp3';

class Card extends React.Component{

class Card extends React.Component {
state = {
source: 'https://ws.stream.qqmusic.qq.com/C400001RZl5x2xQw6C.m4a?guid=2220211&vkey=17C7398CCC576748859419CFDD13EAC8DB04A64DAF2DAE7262F2E4399B0719DC1D68AFC2479DF983D7FD06D3C2FE4B5EA3E89335C65A6F3D&uin=626567678&fromtag=103032'
}
source: audio,
};

render() {
let { source } = this.state;
Expand All @@ -25,4 +25,4 @@ class Card extends React.Component{
}

ReactDOM.render(<Card />, mountNode);
````
```
14 changes: 7 additions & 7 deletions components/audio-player/demo/error.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ title: 加载错误事件

加载错误事件

````jsx
```jsx
import { AudioPlayer } from '@hankliu/hankliu-ui';

class Card extends React.Component{

class Card extends React.Component {
state = {
source: 'https://ws.stream.qqmusic.qq.com/C400001RZl5x2xQw6C.m4a?guid=2220211&vkey=17C7398CCC576748859419CFDD13EAC8DB04A64DAF2DAE7262F2E4399B0719DC1D68AFC2479DF983D7FD06D3C2FE4B5EA3E89335C65A6F3D&uin=626567678&fromtag=103032'
}
source:
'https://ws.stream.qqmusic.qq.com/C400001RZl5x2xQw6C.m4a?guid=2220211&vkey=17C7398CCC576748859419CFDD13EAC8DB04A64DAF2DAE7262F2E4399B0719DC1D68AFC2479DF983D7FD06D3C2FE4B5EA3E89335C65A6F3D&uin=626567678&fromtag=103032',
};

handleError = (e) => {
console.log(e);
}
};

render() {
let { source } = this.state;
Expand All @@ -29,4 +29,4 @@ class Card extends React.Component{
}

ReactDOM.render(<Card />, mountNode);
````
```
12 changes: 6 additions & 6 deletions components/audio-player/demo/size.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ title: 可配置宽高

可配置宽高

````jsx
```jsx
import { AudioPlayer } from '@hankliu/hankliu-ui';
import audio from './audio/flower-dance.mp3';

class Card extends React.Component{

class Card extends React.Component {
state = {
source: 'https://ws.stream.qqmusic.qq.com/C400001RZl5x2xQw6C.m4a?guid=2220211&vkey=17C7398CCC576748859419CFDD13EAC8DB04A64DAF2DAE7262F2E4399B0719DC1D68AFC2479DF983D7FD06D3C2FE4B5EA3E89335C65A6F3D&uin=626567678&fromtag=103032',
}
source: audio,
};

render() {
let { source } = this.state;
Expand All @@ -25,4 +25,4 @@ class Card extends React.Component{
}

ReactDOM.render(<Card />, mountNode);
````
```

0 comments on commit d2b4916

Please sign in to comment.