mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
添加更多错误机制
This commit is contained in:
1 parent
eb879d3e2d
commit
f6c236c260
8 files changed
+32
-19
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { errorHandle } from '../utils';
|
||||
|
||||
export default class Thumbnails {
|
||||
constructor(option) {
|
||||
this.option = option;
|
||||
@@ -53,6 +55,7 @@ export default class Thumbnails {
|
||||
|
||||
showThumbnails(event) {
|
||||
const { refs: { $progress }, controls } = this.art;
|
||||
errorHandle(controls.progress, '\'thumbnails\' control dependent on \'progress\' control');
|
||||
const { width: posWidth } = controls.progress.getPosFromEvent(event);
|
||||
const { url, height, width, number, column } = this.art.option.thumbnails;
|
||||
const perWidth = $progress.clientWidth / number;
|
||||
|
||||
Reference in new issue
Block a user