0.4.7 • Published 4 years ago

vue-music-js v0.4.7

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

vue-music-js

Todo

  • can login by netEaseMusic
  • animation
  • Movable

Installation

npm install --save vue-music-js

# or Yarn
yarn add vue-music-js

Usage

// In main.js
// ...
import Music from 'vue-music-js'

Vue.use(Music)
// ...
// In component
// ...
import { Music } from 'vue-music-js'

export default {
  components: {
    Music,
  }
}
// ...
 <music 
 :musicserve="'http://39.105.168.171:3000/'"
 :playlistapi="'playlist/detail?id=2801005211'"
 :color="'cyan'" 
 :mColor="'red'"
 :size='40'
 />

// on Nuxt.js

// in nuxt.config.js
plugins: [
  {
    src: '~/plugins/vue-music.js', ssr: false
  }
],

// in ~/plugins/vue-music.js
import Vue from 'vue'
import Music from 'vue-music-js'

Vue.use(Music)

// in your page
<music />

npm.io

props:

  • musicserve:string; webserve providing music services
  • playlistapi:string; playlist id
  • color:sting; change icon color
  • mColor:sting; change musicIcon color
  • size:string ; change icon size

How to Contribute?

  1. fork this project.
  2. edit code.
  3. PR

OR

  1. Just submit a issue!

Contributors

0.4.7

4 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.3

4 years ago

0.4.0

4 years ago