mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 12:41:20 -08:00
add tooltip
This commit is contained in:
1 parent
8a88fb3043
commit
9aa2bf1588
11 files changed
+64
-25
No files matched your search
@@ -100,3 +100,8 @@ export function getType(val) {
|
||||
const type = toString.call(val).slice(8, -1).toLowerCase().replace(/\s/g, '');
|
||||
return type;
|
||||
}
|
||||
|
||||
export function tooltip(target, msg, pos = 'up') {
|
||||
target.setAttribute('data-balloon', msg);
|
||||
target.setAttribute('data-balloon-pos', pos);
|
||||
}
|
||||
Reference in new issue
Block a user