11<template >
2- <div class =" linuxdoscripts-setting-wrap" v-show =" !isShow" >
2+ <div class =" linuxdoscripts-setting-wrap" v-show =" !isShow" :style = " `height:${controlheight}vh` " >
33 <button class =" linuxdoscripts-setting" title =" 设置" type =" button" @click =" setting" >
44 <svg xmlns =" http://www.w3.org/2000/svg" width =" 24" height =" 24" viewBox =" 0 0 24 24" fill =" none" stroke =" currentColor" stroke-width =" 2" stroke-linecap =" round" stroke-linejoin =" round" class =" icon icon-tabler icons-tabler-outline icon-tabler-settings" ><path stroke =" none" d =" M0 0h24v24H0z" fill =" none" /><path d =" M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" /><path d =" M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" /></svg >
55 </button >
8383 <div class =" group-line" >外观设置</div >
8484 <!-- 简洁模式 -->
8585 <MenuSimpleMode :sort =" 1 " v-model =" settingData .checked0 " v-show =" matchesSearch (' 简洁模式' )" />
86+ <!-- 浏览器边缘触发设置按钮的范围 -->
87+ <MenuControlHeight :sort =" 1.0 " v-model =" settingData .checked01 " v-show =" matchesSearch (' 按钮区域触发高度' )" />
8688 <!-- 智能限制楼层高度 -->
8789 <MenuFloorHeight :sort =" 2 " v-model =" settingData .checked10 " v-show =" matchesSearch (' 智能限制楼层高度' )" />
8890 <!-- 中英文混排优化显示 -->
@@ -246,6 +248,7 @@ import settingsManager from "./utilities/settingsManager.js";
246248import packageJson from " ../package.json" ;
247249
248250import MenuSimpleMode from " ./SettingComponents/BasicSettings/MenuSimpleMode.vue" ;
251+ import MenuControlHeight from " ./SettingComponents/BasicSettings/MenuControlHeight.vue" ;
249252import MenuOpenpostblank from " ./SettingComponents/BasicSettings/MenuOpenpostblank.vue" ;
250253import MenuNewtopicreminder from " ./SettingComponents/BasicSettings/MenuNewtopicreminder.vue" ;
251254import MenuAutoexpandreply from " ./SettingComponents/BasicSettings/MenuAutoexpandreply.vue" ;
@@ -355,6 +358,7 @@ export default {
355358 Setting6,
356359 Setting7,
357360 MenuSimpleMode,
361+ MenuControlHeight,
358362 MenuOpenpostblank,
359363 MenuNewtopicreminder,
360364 MenuAutoexpandreply,
@@ -434,6 +438,7 @@ export default {
434438 data () {
435439 return {
436440 isShow: false ,
441+ controlheight: 100 ,
437442
438443 opacity: false ,
439444 showdialog: false ,
@@ -447,6 +452,7 @@ export default {
447452 // 设置数据
448453 settingData: {
449454 checked0: false ,
455+ checked01: 100 ,
450456 checked1: false ,
451457 checked2: false ,
452458 checked3: false ,
@@ -731,6 +737,7 @@ export default {
731737 this .showbookmarkbtn = this .settingData .checked52 ;
732738 this .showbookmarkfolderbtn = this .settingData .checked53 ;
733739 this .showviewhistorylist = this .settingData .checked56 ;
740+ this .controlheight = this .settingData .checked01 ;
734741
735742 } else {
736743 // 如果没有现有数据,保存默认设置
0 commit comments