feat: Add Artplayer.STYLE property to Artplayer class

This commit is contained in:
Harvey Zack committed 2024-06-21 11:44:02 +08:00
1 parent 5a0b80b03e
commit b2796a1f6c
3 files changed
+22

No files matched your search

+2
View File
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
- 新增 `Artplayer.STYLE` 属性,返回播放器样式文本
## [5.1.6] - 2024-6-15
- 优化 `setBar` 事件
@@ -17,6 +17,16 @@ var art = new Artplayer({
});
```
## STYLE
返回播放器样式文本
<div className="run-code">▶ Run Code</div>
```js
console.log(Artplayer.STYLE);
```
## CONTEXTMENU
是否开启右键菜单,默认开启
@@ -17,6 +17,16 @@ var art = new Artplayer({
});
```
## STYLE
Returns the player style text
<div className="run-code">▶ Run Code</div>
```js
console.log(Artplayer.STYLE);
```
## CONTEXTMENU
Whether to enable the right-click context menu, enabled by default.