西瓜视频
# 介绍
可以插入 西瓜 视频
# 使用
<Xigua xid="7004391080330428964" />
1
# 参数
以下为默认参数,默认参数可省略
<Xigua
xid="7004391080330428964"
id=""
:autoplay="false"
:sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
:allowfullscreen="allowfullscreen"
width="100%"
:height="[9 / 16, 70]"
/>
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
height 为播放器高度,对应 css 高度计算为: width * height[0] + height[1]
# 配置
主题下插件配置为默认配置,每个 <Xigua />
标签下的设置会覆盖默认配置。
module.exports = {
plugins: [
[
"smplayer",
{
xigua: {
autoplay: !1,
startTime: 0,
allowfullscreen: "allowfullscreen",
sandbox:
"allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups",
width: "100%",
height: [9 / 16, 0],
},
},
],
],
};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
或
module.exports = {
plugins: {
smplayer: {
xigua: {
autoplay: !1,
startTime: 0,
allowfullscreen: "allowfullscreen",
sandbox:
"allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups",
width: "100%",
height: [9 / 16, 0],
},
},
},
};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
上次更新: 10/4/2022, 11:21:17 PM