eplayer 1.5.8 → 1.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/eplayer.js +3 -0
- package/docs/index.html +1 -1
- package/package.json +1 -1
package/docs/eplayer.js
CHANGED
|
@@ -36,6 +36,8 @@ class Eplayer extends HTMLElement {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
startMug() {
|
|
39
|
+
if (!this.beatmap) return
|
|
40
|
+
this.$('.mug').innerHTML = '' // 先清空
|
|
39
41
|
this.$('.mug').style.display = 'block'
|
|
40
42
|
this.$('.mug').style.height = this.height + 'px'
|
|
41
43
|
this.$('.mug').style.width = (this.height / 8 * 5) + 'px'
|
|
@@ -229,6 +231,7 @@ class Eplayer extends HTMLElement {
|
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
init() {
|
|
234
|
+
// console.log(this.beatmap)
|
|
232
235
|
let html = `
|
|
233
236
|
<style>
|
|
234
237
|
@import "https://at.alicdn.com/t/font_836948_g9fk6jqpl8l.css";
|
package/docs/index.html
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
setTimeout(() => {
|
|
105
105
|
document.querySelector('e-player').setAttribute('height', '450')
|
|
106
106
|
|
|
107
|
-
document.querySelector('e-player').setAttribute('beatmap', '
|
|
107
|
+
document.querySelector('e-player').setAttribute('beatmap', '')
|
|
108
108
|
}, 1000)
|
|
109
109
|
</script>
|
|
110
110
|
<div class="wrapper">
|