401401 < v-list-item v-if ="box.usercfgs.isDebugWeb ">
402402 < v-list-item-content >
403403 < v-text-field
404+ clearable
404405 label ="调试页面地址 "
405406 v-model ="box.usercfgs.debugger_web "
406407 hint ="设置页面源码的获取地址 "
415416 </ v-list >
416417 </ v-navigation-drawer >
417418 <!-- 主页 -->
418- < v-main >
419+ < v-main v-scroll =" onScroll " >
419420 < v-snackbar top app v-model ="ui.snackbar.show " v-bind ="ui.snackbar "> {{ui.snackbar.msg}}</ v-snackbar >
420421 <!-- 主页 -->
421- < v-container fluid v-show ="view === '' " v-scroll =" onScroll " >
422+ < v-container fluid v-show ="view === '' ">
422423 < v-row no-gutters >
423424 < v-col cols ="3 " md ="2 " v-for ="(app, appIdx) in favApps " :key ="app.id " class ="d-flex justify-space-around ">
424425 < div class ="ma-2 " @click ="switchAppView(app.id) ">
446447 </ v-row >
447448 </ v-container >
448449 <!-- 应用列表 -->
449- < v-container fluid v-show ="view === 'app' && !curapp " v-scroll =" onScroll " >
450+ < v-container fluid v-show ="view === 'app' && !curapp ">
450451 <!-- 收藏应用 -->
451452 < v-expansion-panels multiple class ="mb-4 " v-if ="favApps.length > 0 " v-model ="box.usercfgs.favapppanel ">
452453 < v-expansion-panel >
547548 </ v-expansion-panels >
548549 </ v-container >
549550 <!-- 代码编辑 -->
550- < v-container fluid class ="fill-height " v-show ="view === 'coding' " v-scroll =" onScroll " >
551+ < v-container fluid class ="fill-height " v-show ="view === 'coding' ">
551552 < v-card flat style ="width: inherit; ">
552553 < v-subheader >
553554 < h2 > 脚本编辑器</ h2 >
@@ -559,7 +560,7 @@ <h2>脚本编辑器</h2>
559560 </ v-card >
560561 </ v-container >
561562 <!-- 应用详情 -->
562- < v-container fluid v-if ="view === 'app' && !!curapp " v-scroll =" onScroll " >
563+ < v-container fluid v-if ="view === 'app' && !!curapp ">
563564 < v-subheader >
564565 < h2 :style ="appTitleStyle "> {{curapp.name}}</ h2 >
565566 < v-spacer > </ v-spacer >
@@ -825,7 +826,7 @@ <h2 :style="appTitleStyle">{{curapp.name}}</h2>
825826 </ v-card >
826827 </ v-container >
827828 <!-- 订阅列表 -->
828- < v-container fluid v-else-if ="view === 'sub' " v-scroll =" onScroll " >
829+ < v-container fluid v-else-if ="view === 'sub' ">
829830 < template v-if ="appSubs.length === 0 ">
830831 < v-btn block class ="primary " @click ="addAppSubDialog = true "> 添加订阅</ v-btn >
831832 < v-btn block class ="primary " @click ="open('https://chavyleung.gitbook.io/boxjs/awesome/subscriptions') ">
@@ -918,7 +919,7 @@ <h2 :style="appTitleStyle">{{curapp.name}}</h2>
918919 </ v-dialog >
919920 </ v-container >
920921 <!-- 我的 -->
921- < v-container fluid v-else-if ="view === 'my' " v-scroll =" onScroll " >
922+ < v-container fluid v-else-if ="view === 'my' ">
922923 < v-card class ="mx-auto ">
923924 < v-card-title class ="headline ">
924925 {{box.usercfgs.name ? box.usercfgs.name : '大侠, 留个名字吧!'}}
@@ -1004,7 +1005,7 @@ <h2 :style="appTitleStyle">{{curapp.name}}</h2>
10041005 </ v-card >
10051006 </ v-container >
10061007 <!-- 备份详情 -->
1007- < v-container fluid v-else-if ="view === 'bak' && !!curbak " v-scroll =" onScroll " >
1008+ < v-container fluid v-else-if ="view === 'bak' && !!curbak ">
10081009 < v-subheader >
10091010 < h2 > {{curbak.name}}</ h2 >
10101011 < v-spacer > </ v-spacer >
@@ -1041,7 +1042,7 @@ <h2>{{curbak.name}}</h2>
10411042 </ v-main >
10421043 <!-- 底部 -->
10431044 < v-bottom-navigation app grow color ="primary " :value ="view ">
1044- < v-progress-linear :active ="isLoading && box.usercfgs.isHidedSearchBar " height ="2 " absolute top indeterminate > </ v-progress-linear >
1045+ < v-progress-linear :active ="isLoading " height ="2 " absolute top indeterminate > </ v-progress-linear >
10451046 < v-btn @click ="switchView('') " value =""> 首页< v-icon > mdi-home</ v-icon > </ v-btn >
10461047 < v-btn @click ="switchView('app') " value ="app "> 应用< v-icon > mdi-application</ v-icon > </ v-btn >
10471048 < v-btn @click ="switchView('sub') " value ="sub "> 订阅< v-icon > mdi-database</ v-icon > </ v-btn >
@@ -1690,6 +1691,7 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
16901691 onScroll ( event ) {
16911692 const currentY = event . currentTarget . scrollY
16921693 const historyY = this . ui . scrollY [ this . path ]
1694+ console . log ( `historyY: ${ historyY } , currentY: ${ currentY } ` )
16931695 this . ui . scrollY [ this . path ] = event . currentTarget . scrollY
16941696 // 下拉显示/隐藏顶栏
16951697 // 回弹时才触发显示与隐藏, 1 秒内不重复触发
0 commit comments