增加控制樱花特效开启按钮,待解决首次进入页面需要点击两次才能控制的问题

This commit is contained in:
2025-08-17 16:13:00 +08:00
parent fb69d04f92
commit 75593a32c0
7 changed files with 74 additions and 56 deletions
@@ -29,14 +29,14 @@ mixin rightsideItem(array)
if commentsJsLoad
a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment"))
i.fas.fa-comments
when 'xxxx'
button#xxxx(type="button" title="测试按钮")
i.fas.fa-xxxx
when 'sakura'
button#toggle_sakura_btn(type="button" title=_p("rightside.toggle_sakura"))
i.fas.fa-seedling
#rightside
- const { enable, hide, show } = theme.rightside_item_order
- const hideArray = enable ? hide && hide.split(',') : ['readmode','translate','darkmode','hideAside', 'xxxx']
- const showArray = enable ? show && show.split(',') : ['toc','chat','comment']
- const hideArray = enable ? hide && hide.split(',') : ['readmode','translate','darkmode','hideAside']
- const showArray = enable ? show && show.split(',') : ['toc','chat','comment','sakura']
#rightside-config-hide