mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
add createElement
This commit is contained in:
1 parent
326a292e27
commit
8c9db3f302
10 files changed
+50
-42
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { secondToTime, download, def } from '../utils';
|
||||
import { secondToTime, download, def, createElement } from '../utils';
|
||||
|
||||
export default function screenshotMix(art) {
|
||||
const {
|
||||
@@ -7,7 +7,7 @@ export default function screenshotMix(art) {
|
||||
template: { $video },
|
||||
} = art;
|
||||
|
||||
const $canvas = document.createElement('canvas');
|
||||
const $canvas = createElement('canvas');
|
||||
|
||||
def(art, 'getDataURL', {
|
||||
value: () =>
|
||||
|
||||
Reference in new issue
Block a user