vue-aliplayer-v3
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -18,3 +18,3 @@ { | ||
}, | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": { | ||
@@ -21,0 +21,0 @@ "type": "git", |
@@ -11,21 +11,7 @@ # vue-alipayer-v3 (只支持vue3)- 主要代码来源 https://github.com/langyuxiansheng/vue-aliplayer-v2 | ||
```bash | ||
npm i vue-aliplayer-v2 --save | ||
npm i vue-aliplayer-v3 --save | ||
or | ||
yarn add vue-aliplayer-v2 | ||
yarn add vue-aliplayer-v3 | ||
``` | ||
#### 全局注册 main.js | ||
```javascript | ||
import VueAliplayerV2 from 'vue-aliplayer-v2'; | ||
Vue.use(VueAliplayerV2); | ||
//可选全局配置 | ||
//Vue.use(VueAliplayerV2,{ | ||
// cssLink: 'https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css', | ||
// scriptSrc: 'https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js' | ||
//}); | ||
``` | ||
#### 局部注册 App.vue | ||
@@ -36,8 +22,4 @@ | ||
//推荐第一种(仅v1.2.3)及以上的版本可用 | ||
import VueAliplayerV2 from 'vue-aliplayer-v2'; | ||
components:{ VueAliplayerV2 } | ||
//或者 | ||
components:{ VueAliplayerV2: VueAliplayerV2.Player } | ||
import { AliPlayerV3 } from "vue-aliplayer-v3"; | ||
components:{ AliPlayerV3 } | ||
``` | ||
@@ -44,0 +26,0 @@ |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
26378
3
0
464
1