feat: 🚀 tabs增加滚动条
This commit is contained in:
@@ -14,8 +14,16 @@ class Video extends BlockEmbed {
|
||||
node.setAttribute("webkit-playsinline", "true");
|
||||
node.setAttribute("type", "video/mp4");
|
||||
// poster 属性指定视频下载时显示的图像,或者在用户点击播放按钮前显示的图像。
|
||||
node.setAttribute("poster", value.poster);
|
||||
// console.log(value.url, "= value.poster=");
|
||||
// node.setAttribute("poster", this.sanitize(value.url));
|
||||
node.setAttribute("src", this.sanitize(value.url));
|
||||
node.setAttribute(
|
||||
"style",
|
||||
`
|
||||
width: 600px;
|
||||
height: 300px;
|
||||
`
|
||||
);
|
||||
return node;
|
||||
}
|
||||
|
||||
@@ -35,8 +43,8 @@ class Video extends BlockEmbed {
|
||||
static value(domNode) {
|
||||
// 设置自定义的属性值
|
||||
return {
|
||||
url: domNode.getAttribute("src"),
|
||||
poster: domNode.getAttribute("poster")
|
||||
url: domNode.getAttribute("src")
|
||||
// poster: domNode.getAttribute("src")
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user