mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
update
This commit is contained in:
1 parent
28d9ad2eaa
commit
af97602cfa
5 files changed
+53
-32
No files matched your search
@@ -2537,24 +2537,22 @@
|
||||
var $item = path.find(function (item) {
|
||||
return hasClass(item, 'art-selector-item');
|
||||
});
|
||||
if (!$item) return;
|
||||
var index = Number($item.dataset.index);
|
||||
var find = option.selector[index] || {};
|
||||
$value.innerText = $item.innerText;
|
||||
|
||||
if ($item) {
|
||||
var index = Number($item.dataset.index);
|
||||
var find = option.selector[index] || {};
|
||||
$value.innerText = $item.innerText;
|
||||
if (option.onSelect) {
|
||||
var result = option.onSelect.call(_this2.art, find, $item);
|
||||
|
||||
if (option.onSelect) {
|
||||
var result = option.onSelect.call(_this2.art, find);
|
||||
|
||||
if (typeof result === 'string') {
|
||||
$value.innerHTML = result;
|
||||
}
|
||||
if (typeof result === 'string') {
|
||||
$value.innerHTML = result;
|
||||
}
|
||||
|
||||
setLeft();
|
||||
|
||||
_this2.art.emit('selector', find);
|
||||
}
|
||||
|
||||
setLeft();
|
||||
|
||||
_this2.art.emit('selector', find, $item);
|
||||
});
|
||||
}
|
||||
}]);
|
||||
|
||||
Reference in new issue
Block a user