mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:31:20 -08:00
提取共用方法
This commit is contained in:
1 parent
48ade99047
commit
7a84c262da
45 files changed
+242
-257
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import { append, clamp, tooltip, setStyle, getStyle } from '../utils';
|
||||
|
||||
export default function volume(controlOption) {
|
||||
export default function volume(option) {
|
||||
return art => ({
|
||||
...controlOption,
|
||||
...option,
|
||||
mounted: $control => {
|
||||
const {
|
||||
events: { proxy },
|
||||
@@ -10,7 +10,7 @@ export default function volume(controlOption) {
|
||||
player,
|
||||
i18n,
|
||||
} = art;
|
||||
|
||||
|
||||
let isDroging = false;
|
||||
const $volume = append($control, icons.volume);
|
||||
const $volumeClose = append($control, icons.volumeClose);
|
||||
|
||||
Reference in new issue
Block a user