fix: onlyCover
This commit is contained in:
parent
371fbecfc2
commit
033be4f2d7
3 changed files with 13 additions and 6 deletions
|
|
@ -134,8 +134,10 @@ export function renderMixin (proto) {
|
|||
})
|
||||
}
|
||||
|
||||
proto._renderCover = function (text) {
|
||||
proto._renderCover = function (text, coverOnly) {
|
||||
const el = dom.getNode('.cover')
|
||||
|
||||
dom.toggleClass(dom.getNode('main'), coverOnly ? 'add' : 'remove', 'hidden')
|
||||
if (!text) {
|
||||
dom.toggleClass(el, 'remove', 'show')
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue