moefyit / vuepress-plugin-meting Goto Github PK
View Code? Open in Web Editor NEW:cake: A simple plugin connect APlayer, Meting and VuePress.
Home Page: https://moefyit.github.io/moefy-vuepress/
License: MIT License
:cake: A simple plugin connect APlayer, Meting and VuePress.
Home Page: https://moefyit.github.io/moefy-vuepress/
License: MIT License
复现步骤:
[
'meting',
{
meting: {
auto: "https://music.163.com/#/playlist?id=6590270162"
},
aplayer: {
autoplay: true,
audio: [
{
name: '강남역 4번 출구',
artist: '生活好悲伤,雨中拉肖邦',
url: 'https://assets.smallsunnyfox.com/music/2.mp3',
cover: 'https://assets.smallsunnyfox.com/music/2.jpg'
},
{
name: '用胳膊当枕头',
artist: '生活好悲伤,雨中拉肖邦',
url: 'https://assets.smallsunnyfox.com/music/3.mp3',
cover: 'https://assets.smallsunnyfox.com/music/3.jpg'
}
]
}
}
]
看了下代码是直接赋值给了audio,没有考虑到我可以通过aplayer赋值的情况,可以concat下
比如可全局调用的切换,播放,暂停音乐的API
装了插件后,页面就只显示音乐插件了,其他内容都没了,咋回事尼?
rt
It is recommended to add a function that has no audio pictures to customize.
[
"meting", {
meting: {
auto: "https://music.163.com/#/playlist?id=5156784198"
},
aplayer: {
lrcType: 0
},
mobile: {
cover: false,
lrc: false
}
}
],
我的酷狗音乐歌单链接:https://t1.kugou.com/song.html?id=uf7AcfzAV3
请问它如何才能使用。
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/prettify-code.yml
actions/checkout v4
creyD/prettier_action v4.3
package.json
@moefe/vue-aplayer 2.0.0-beta.5
[Vue warn]: Error in nextTick: "TypeError: Cannot read properties of undefined (reading '$stable')"
version: 0.3.2
MetingGlobal.vue 第54行,__MOBILE_OPTIONS少了个下划线后缀
function hide_mini_player() {
if (!__MOBILE_OPTIONS.cover) {
body.childNodes.forEach((child) => {
child.style.display = 'none'
})
body.style.background = 'transparent'
btn.style.display = 'block'
btn.style.right = 'auto'
}
if (!__MOBILE_OPTIONS__.lrc) {
lrc.style.display = 'none'
}
isShow = false
}
// 音乐插件
['meting', {
//metingApi: "https://meting.sigure.xyz/api/music",
meting: {
// 网易
auto: "http://music.163.com/#/song?id=29572578",
},
// 不配置该项的话不会出现全局播放器
aplayer: {
// 吸底模式
fixed: true,
mini: true,
// 自动播放
autoplay: true,
// 歌曲栏折叠
listFolded:true,
// 颜色
theme: '#f9bcdd',
// 播放顺序为随机
order: 'random',
// 初始音量
volume: 0.5,
// 关闭歌词显示
lrcType: 0
},
mobile :{
// 手机端去掉cover图
cover: false,
}
}]
el 怎么用这个插件啊,试了好多次还是不行
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.