Skip to content

Commit

Permalink
✨ feat(ims-view-pc): update Piano docs
Browse files Browse the repository at this point in the history
  • Loading branch information
eternallycyf committed Sep 7, 2024
1 parent da97613 commit ab000e0
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions packages/ims-view-pc/src/components/Piano/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
---
title: Piano
description: 钢琴
order: 0
group:
title: 其他
order: 9999
toc: content
demo:
cols: 2
---

## Piano 钢琴

一个简单的钢琴组件,可以播放音乐。

## 示例

<code src="./demo/index.tsx">钢琴</code>

## API

### PianoHandle

| 参数 | 说明 | 类型 | 默认值 |
| --------- | ---------------------------------------------------------- | --------------------------------- | ------ |
| playMusic | 音乐数组,每个数组代表一首音乐,数组内每个数字代表一个音符 | `playMusic: number[][]) => void;` | - |
| songs | 内置歌曲 | number[] | - |

0 comments on commit ab000e0

Please sign in to comment.