0.1.6 • Published 7 years ago
vue-audio-play
Licence
MIT
Version
0.1.6
Deps
8
Size
4.2 MB
Vulns
1
Weekly
0
vue-audio-play
Demo
<vue-audio-play :value="value" :audioStyle="costomeStyle">
<!-- Slot -->
</vue-audio-play>
Install
npm install vue-audio-play -S
# or
yarn add vue-audio-play
Quick Start
import VueAudioPlay from 'vue-audio-play'
import 'vue-audio-play/dist/vue-audio-play.css';
Vue.use(VueAudioPlay)
// or
import VueAudioPlay from 'vue-audio-play'
import 'vue-audio-play/dist/vue-audio-play.css';
export default {
components: {
VueAudioPlay
}
}
Slot (Optional)
<span slot="option1">Edit</span>
<span slot="option2">Delete</span>
Params
| Parameter | Explain | Type | Required | Default value |
|---|---|---|---|---|
| value | source url and file name | Object | Yes | - |
| audioStyle | audio container style | Object | No | { width: '320px' } |