mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 13:56:15 -08:00
feat: Disable hiding default right-click menu when Artplayer.CONTEXTMENU is set to false
This commit is contained in:
1 parent
adff473f71
commit
5655db4b20
3 files changed
+4
-3
No files matched your search
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
|
||||
- 新增 `Artplayer.STYLE` 属性,返回播放器样式文本
|
||||
- `art.screenshot('your-name')` 截图功能支持自定义文件名字
|
||||
- `Artplayer.CONTEXTMENU` 为 `false` 时,不再隐藏默认右键菜单
|
||||
|
||||
## [5.1.6] - 2024-6-15
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"license": "MIT",
|
||||
"name": "artplayer",
|
||||
"version": "5.1.6",
|
||||
"version": "5.1.7",
|
||||
"main": "dist/artplayer.js",
|
||||
"legacy": "dist/artplayer.legacy.js",
|
||||
"types": "types/artplayer.d.ts",
|
||||
@@ -24,4 +24,4 @@
|
||||
"dependencies": {
|
||||
"option-validator": "^2.0.6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,8 +79,8 @@ export default class Contextmenu extends Component {
|
||||
}
|
||||
|
||||
proxy($player, 'contextmenu', (event) => {
|
||||
event.preventDefault();
|
||||
if (!this.art.constructor.CONTEXTMENU) return;
|
||||
event.preventDefault();
|
||||
|
||||
this.show = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user