mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-11-02 21:44:01 +08:00
再次调整resize事件
This commit is contained in:
@@ -870,13 +870,13 @@ export default {
|
||||
this.getSearchHistory()
|
||||
},
|
||||
mounted () {
|
||||
window.addEventListener('resize', () => {
|
||||
addEventListener('resize', () => {
|
||||
setTimeout(() => {
|
||||
this.showTableLastColumn = window.outerWidth >= 1200
|
||||
if (this.$refs.filmWaterfall) this.$refs.filmWaterfall.resize()
|
||||
if (this.$refs.filmSearchWaterfall) this.$refs.filmSearchWaterfall.resize()
|
||||
}, 500)
|
||||
}, true)
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -373,9 +373,9 @@ export default {
|
||||
if (this.setting.historyViewMode === 'table') setTimeout(() => { this.rowDrop() }, 100)
|
||||
addEventListener('keydown', code => { if (code.keyCode === 16) this.shiftDown = true })
|
||||
addEventListener('keyup', code => { if (code.keyCode === 16) this.shiftDown = false })
|
||||
window.addEventListener('resize', () => {
|
||||
addEventListener('resize', () => {
|
||||
setTimeout(() => { if (this.$refs.historyWaterfall) this.$refs.historyWaterfall.resize() }, 500)
|
||||
}, true)
|
||||
})
|
||||
},
|
||||
created () {
|
||||
this.getAllhistory()
|
||||
|
||||
@@ -330,9 +330,9 @@ export default {
|
||||
this.getRecommendations()
|
||||
},
|
||||
mounted () {
|
||||
window.addEventListener('resize', () => {
|
||||
addEventListener('resize', () => {
|
||||
setTimeout(() => { if (this.$refs.recommendataionsWaterfall) this.$refs.recommendataionsWaterfall.resize() }, 500)
|
||||
}, true)
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -517,9 +517,9 @@ export default {
|
||||
if (this.setting.starViewMode === 'table') setTimeout(() => { this.rowDrop() }, 100)
|
||||
addEventListener('keydown', code => { if (code.keyCode === 16) this.shiftDown = true })
|
||||
addEventListener('keyup', code => { if (code.keyCode === 16) this.shiftDown = false })
|
||||
window.addEventListener('resize', () => {
|
||||
addEventListener('resize', () => {
|
||||
setTimeout(() => { if (this.$refs.starWaterfall) this.$refs.starWaterfall.resize() }, 500)
|
||||
}, true)
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user