<vue-audio-play :value="value" :audioStyle="costomeStyle">
<!-- Slot -->
</vue-audio-play>
npm install vue-audio-play -S
# or
yarn add vue-audio-play
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
}
}
<span slot="option1">Edit</span>
<span slot="option2">Delete</span>
Parameter | Explain | Type | Required | Default value |
---|---|---|---|---|
value | source url and file name | Object | Yes | - |
audioStyle | audio container style | Object | No | { width: '320px' } |