code refactor

This commit is contained in:
MaysWind
2020-11-02 00:45:17 +08:00
parent 78937d16d2
commit ebd2421d57
5 changed files with 11 additions and 15 deletions
+10 -2
View File
@@ -16,11 +16,19 @@ export default {
name: 'lab', name: 'lab',
id: 'net.mayswind.lab', id: 'net.mayswind.lab',
theme: 'ios', theme: 'ios',
autoDarkTheme: self.$settings.isEnableAutoDarkMode(),
routes: routes, routes: routes,
sheet: {
backdrop: true,
closeOnEscape: true
},
popup: {
swipeToClose: true,
closeOnEscape: true
},
view: { view: {
animate : self.$settings.isEnableAnimate() animate : self.$settings.isEnableAnimate()
}, }
autoDarkTheme: self.$settings.isEnableAutoDarkMode()
} }
} }
} }
+1 -1
View File
@@ -9,7 +9,7 @@
<f7-list-item :title="$t('License')" link="#" popup-open=".license-popup"></f7-list-item> <f7-list-item :title="$t('License')" link="#" popup-open=".license-popup"></f7-list-item>
</f7-list> </f7-list>
<f7-popup class="license-popup" swipe-to-close close-on-escape> <f7-popup class="license-popup">
<f7-page> <f7-page>
<f7-navbar :title="$t('License')"> <f7-navbar :title="$t('License')">
<f7-nav-right> <f7-nav-right>
-2
View File
@@ -53,8 +53,6 @@
<f7-sheet <f7-sheet
style="height:auto; --f7-sheet-bg-color: #fff;" style="height:auto; --f7-sheet-bg-color: #fff;"
backdrop
close-on-escape
:opened="show2faSheet" @sheet:closed="show2faSheet = false" :opened="show2faSheet" @sheet:closed="show2faSheet = false"
> >
<div class="sheet-modal-swipe-step"> <div class="sheet-modal-swipe-step">
-8
View File
@@ -15,8 +15,6 @@
<f7-sheet <f7-sheet
style="height:auto; --f7-sheet-bg-color: #fff;" style="height:auto; --f7-sheet-bg-color: #fff;"
backdrop
close-on-escape
:opened="showInputPasscodeSheetForEnable" @sheet:closed="showInputPasscodeSheetForEnable = false; currentPasscodeForEnable = ''" :opened="showInputPasscodeSheetForEnable" @sheet:closed="showInputPasscodeSheetForEnable = false; currentPasscodeForEnable = ''"
> >
<div class="sheet-modal-swipe-step"> <div class="sheet-modal-swipe-step">
@@ -48,8 +46,6 @@
<f7-sheet <f7-sheet
style="height:auto; --f7-sheet-bg-color: #fff;" style="height:auto; --f7-sheet-bg-color: #fff;"
backdrop
close-on-escape
:opened="showInputPasswordSheetForDisable" @sheet:closed="showInputPasswordSheetForDisable = false; currentPasswordForDisable = ''" :opened="showInputPasswordSheetForDisable" @sheet:closed="showInputPasswordSheetForDisable = false; currentPasswordForDisable = ''"
> >
<div class="sheet-modal-swipe-step"> <div class="sheet-modal-swipe-step">
@@ -78,8 +74,6 @@
<f7-sheet <f7-sheet
style="height:auto; --f7-sheet-bg-color: #fff;" style="height:auto; --f7-sheet-bg-color: #fff;"
backdrop
close-on-escape
:opened="showInputPasswordSheetForRegenerate" @sheet:closed="showInputPasswordSheetForRegenerate = false; currentPasswordForRegenerate= ''" :opened="showInputPasswordSheetForRegenerate" @sheet:closed="showInputPasswordSheetForRegenerate = false; currentPasswordForRegenerate= ''"
> >
<div class="sheet-modal-swipe-step"> <div class="sheet-modal-swipe-step">
@@ -108,8 +102,6 @@
<f7-sheet <f7-sheet
style="height:auto; --f7-sheet-bg-color: #fff;" style="height:auto; --f7-sheet-bg-color: #fff;"
backdrop
close-on-escape
:opened="showBackupCodeSheet" @sheet:closed="showBackupCodeSheet = false; currentBackupCode = ''" :opened="showBackupCodeSheet" @sheet:closed="showBackupCodeSheet = false; currentBackupCode = ''"
> >
<div class="sheet-modal-swipe-step"> <div class="sheet-modal-swipe-step">
-2
View File
@@ -45,8 +45,6 @@
<f7-sheet <f7-sheet
style="height:auto; --f7-sheet-bg-color: #fff;" style="height:auto; --f7-sheet-bg-color: #fff;"
backdrop
close-on-escape
:opened="showInputPasswordSheet" @sheet:closed="showInputPasswordSheet = false" :opened="showInputPasswordSheet" @sheet:closed="showInputPasswordSheet = false"
> >
<div class="sheet-modal-swipe-step"> <div class="sheet-modal-swipe-step">