From 6184af2397c5d43d6965135b37d4fbd54cbb7bce Mon Sep 17 00:00:00 2001 From: zhouliujun <1096432931@qq.com> Date: Mon, 28 Sep 2020 09:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=92=AD=E6=94=BE=E5=99=A8?= =?UTF-8?q?=E7=9A=84=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=A3=E7=A0=81,?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8C=85=E5=86=85=E7=BB=93=E6=9E=84,?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B1=80=E9=83=A8=E7=BB=84=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E6=96=B9=E5=BC=8F,=E4=B9=9F=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E8=80=81=E7=89=88=E6=9C=AC=E7=9A=84=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E6=96=B9=E5=BC=8F.=E6=96=87=E6=A1=A3=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 ++++++- examples/App.vue | 2 +- lib/vue-aliplayer-v2.common.js | 61 +++++-------------- lib/vue-aliplayer-v2.umd.js | 61 +++++-------------- lib/vue-aliplayer-v2.umd.min.js | 4 +- package.json | 2 +- packages/AliplayerV2/index.js | 7 --- .../AliplayerV2/{src/main.vue => index.vue} | 3 - packages/index.js | 26 ++------ t.sh | 25 +++----- 10 files changed, 71 insertions(+), 143 deletions(-) delete mode 100644 packages/AliplayerV2/index.js rename packages/AliplayerV2/{src/main.vue => index.vue} (99%) diff --git a/README.md b/README.md index 9bbcd68..f87abf5 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,14 @@ Vue.use(VueAliplayerV2); #### 局部注册 App.vue ```javascript + +//推荐第一种(仅v1.2.3)及以上的版本可用 import VueAliplayerV2 from 'vue-aliplayer-v2'; +components:{ VueAliplayerV2 } + +//或者 components:{ VueAliplayerV2: VueAliplayerV2.Player } + ``` ## 2.组件中使用 @@ -65,7 +71,7 @@ components:{ VueAliplayerV2: VueAliplayerV2.Player }