Skip to content

Commit

Permalink
更新[BoxJs TF]: 修复主屏左滑时与侧栏冲突问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chavyleung committed Aug 22, 2020
1 parent e448a7d commit 8deb741
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
14 changes: 6 additions & 8 deletions box/chavy.boxjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
</v-card>
</v-dialog>
<!-- 侧栏 -->
<v-navigation-drawer app v-model="ui.naviDrawer.show" height="100%" temporary right>
<v-navigation-drawer app v-model="ui.naviDrawer.show" height="100%" temporary right disable-route-watcher>
<v-list dense nav>
<v-list-item dense @click="open(box.syscfgs.chavy.repo)">
<v-list-item-avatar><img :src="box.syscfgs.chavy.icon" /></v-list-item-avatar>
Expand Down Expand Up @@ -1887,15 +1887,13 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
},
setWallpaper() {
let bgimg = ''
if (this.box.usercfgs.bgimg === "跟随系统") {
const hasdark = this.bgimgs.find(bgimg => bgimg.name == "dark")
const haslight = this.bgimgs.find(bgimg => bgimg.name == "light")
if (this.box.usercfgs.bgimg === '跟随系统') {
const hasdark = this.bgimgs.find((bgimg) => bgimg.name == 'dark')
const haslight = this.bgimgs.find((bgimg) => bgimg.name == 'light')
const darkbgimg = hasdark ? hasdark.url : ``
const lightbgimg = haslight ? haslight.url : ``
this.isDarkMode ? bgimg = darkbgimg : bgimg = lightbgimg
const bgStyle = [
`background-image: linear-gradient(to bottom,rgba(0,0,0,.2) 0,transparent 76px), url(${bgimg})`
]
this.isDarkMode ? (bgimg = darkbgimg) : (bgimg = lightbgimg)
const bgStyle = [`background-image: linear-gradient(to bottom,rgba(0,0,0,.2) 0,transparent 76px), url(${bgimg})`]
document.querySelector('#BG').setAttribute('style', bgStyle.join('; '))
} else {
const bgStyle = [
Expand Down
2 changes: 1 addition & 1 deletion box/chavy.boxjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
// 为 eval 准备的上下文环境
const $eval_env = {}

$.version = '0.7.48'
$.version = '0.7.49'
$.versionType = 'beta'

/**
Expand Down
11 changes: 7 additions & 4 deletions box/release/box.release.tf.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"releases": [
{
"version": "0.7.48",
"version": "0.7.49",
"tags": ["beta"],
"author": "@GideonSenku",
"icon": "https://avatars3.githubusercontent.com/u/29748519",
"repo": "https://github.com/chavyleung",
"msg": "更新[BoxJs TF]: 新增壁纸跟随系统适配",
"msg": "更新[BoxJs TF]: 修复主屏左滑时与侧栏冲突问题",
"notes": [
{
"name": "新增",
Expand All @@ -16,10 +16,13 @@
"name": "调整",
"descs": ["背景清单图片默认`无`更改为`跟随系统`"]
},
{
"name": "修复",
"descs": ["主屏左滑时与侧栏冲突问题"]
},
{
"name": "说明",
"descs": ["背景图片清单中设置:跟随系统,跟随系统{换行} light,图片地址{换行} dark,图片地址{换行}",
"如果不设置`跟随系统,跟随系统`,则默认跟随系统为无背景"]
"descs": ["背景图片清单中设置:无{换行} 跟随系统,跟随系统{换行} light,图片地址{换行} dark,图片地址{换行}", "如果不设置`跟随系统,跟随系统`,则默认跟随系统为无背景"]
}
]
},
Expand Down

0 comments on commit 8deb741

Please sign in to comment.