From c28fc4c1ba03292044ecee9f746bf3f36e0e24a0 Mon Sep 17 00:00:00 2001 From: Eiinu Date: Wed, 3 Jan 2024 15:47:07 +0800 Subject: [PATCH] chore(audio): split demo (#2815) --- src/packages/__VUE/audio/demo.vue | 166 --------------------- src/packages/__VUE/audio/demo/basic.vue | 6 + src/packages/__VUE/audio/demo/control.vue | 47 ++++++ src/packages/__VUE/audio/demo/index.vue | 38 +++++ src/packages/__VUE/audio/demo/play.vue | 32 ++++ src/packages/__VUE/audio/demo/progress.vue | 13 ++ src/packages/__VUE/audio/doc.en-US.md | 118 +-------------- src/packages/__VUE/audio/doc.md | 118 +-------------- 8 files changed, 144 insertions(+), 394 deletions(-) delete mode 100644 src/packages/__VUE/audio/demo.vue create mode 100644 src/packages/__VUE/audio/demo/basic.vue create mode 100644 src/packages/__VUE/audio/demo/control.vue create mode 100644 src/packages/__VUE/audio/demo/index.vue create mode 100644 src/packages/__VUE/audio/demo/play.vue create mode 100644 src/packages/__VUE/audio/demo/progress.vue diff --git a/src/packages/__VUE/audio/demo.vue b/src/packages/__VUE/audio/demo.vue deleted file mode 100644 index f984e81046..0000000000 --- a/src/packages/__VUE/audio/demo.vue +++ /dev/null @@ -1,166 +0,0 @@ - - - - diff --git a/src/packages/__VUE/audio/demo/basic.vue b/src/packages/__VUE/audio/demo/basic.vue new file mode 100644 index 0000000000..94a7e8bbeb --- /dev/null +++ b/src/packages/__VUE/audio/demo/basic.vue @@ -0,0 +1,6 @@ + + diff --git a/src/packages/__VUE/audio/demo/control.vue b/src/packages/__VUE/audio/demo/control.vue new file mode 100644 index 0000000000..9c3c785bc6 --- /dev/null +++ b/src/packages/__VUE/audio/demo/control.vue @@ -0,0 +1,47 @@ + + diff --git a/src/packages/__VUE/audio/demo/index.vue b/src/packages/__VUE/audio/demo/index.vue new file mode 100644 index 0000000000..6e1fac3593 --- /dev/null +++ b/src/packages/__VUE/audio/demo/index.vue @@ -0,0 +1,38 @@ + + + diff --git a/src/packages/__VUE/audio/demo/play.vue b/src/packages/__VUE/audio/demo/play.vue new file mode 100644 index 0000000000..2d2a74ece8 --- /dev/null +++ b/src/packages/__VUE/audio/demo/play.vue @@ -0,0 +1,32 @@ + + + diff --git a/src/packages/__VUE/audio/demo/progress.vue b/src/packages/__VUE/audio/demo/progress.vue new file mode 100644 index 0000000000..3ee11c9b48 --- /dev/null +++ b/src/packages/__VUE/audio/demo/progress.vue @@ -0,0 +1,13 @@ + + diff --git a/src/packages/__VUE/audio/doc.en-US.md b/src/packages/__VUE/audio/doc.en-US.md index f24dc12ff6..0f5adea6d2 100644 --- a/src/packages/__VUE/audio/doc.en-US.md +++ b/src/packages/__VUE/audio/doc.en-US.md @@ -16,129 +16,19 @@ app.use(Audio); ### Basic Usage -:::demo - -```vue - -``` - -::: +> demo: audio basic ### Voice Playing -:::demo - -```vue - - - - -``` - -::: +> demo: audio play ### Progress -:::demo - -```vue - -``` - -::: +> demo: audio progress ### Custom Control -:::demo - -```vue - - -``` - -::: +> demo: audio control ## API diff --git a/src/packages/__VUE/audio/doc.md b/src/packages/__VUE/audio/doc.md index 13278988f6..119c348d35 100644 --- a/src/packages/__VUE/audio/doc.md +++ b/src/packages/__VUE/audio/doc.md @@ -16,129 +16,19 @@ app.use(Audio); ### 基础用法 -:::demo - -```vue - -``` - -::: +> demo: audio basic ### 语音播放 -:::demo - -```vue - - - - -``` - -::: +> demo: audio play ### 进度条展示 -:::demo - -```vue - -``` - -::: +> demo: audio progress ### 自定义操作按钮 -:::demo - -```vue - - -``` - -::: +> demo: audio control ## API