mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
make the styling consistent across all pages of the mobile version
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" style="height:auto"
|
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" style="height:auto"
|
||||||
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link icon-f7="xmark" :class="{ 'disabled': loading || recognizing }"
|
<f7-link icon-f7="xmark" :class="{ 'disabled': loading || recognizing }"
|
||||||
|
|||||||
@@ -2,12 +2,11 @@
|
|||||||
<f7-sheet swipe-to-close swipe-handler=".swipe-handler"
|
<f7-sheet swipe-to-close swipe-handler=".swipe-handler"
|
||||||
:opened="show"
|
:opened="show"
|
||||||
@sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
@sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="right"></div>
|
|
||||||
</f7-toolbar>
|
</f7-toolbar>
|
||||||
<f7-page-content>
|
<f7-page-content>
|
||||||
<f7-block class="margin-vertical no-padding">
|
<f7-block class="margin-vertical no-padding">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" class="date-selection-sheet" style="height:auto"
|
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" class="date-selection-sheet" style="height:auto"
|
||||||
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link :text="tt('Clear')" @click="clear"></f7-link>
|
<f7-link :text="tt('Clear')" @click="clear"></f7-link>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<f7-button round fill icon-f7="checkmark_alt" @click="confirm"></f7-button>
|
<f7-button round fill icon-f7="checkmark_alt" @click="confirm"></f7-button>
|
||||||
</div>
|
</div>
|
||||||
</f7-toolbar>
|
</f7-toolbar>
|
||||||
<f7-page-content>
|
<f7-page-content class="margin-top">
|
||||||
<div class="block no-margin no-padding">
|
<div class="block no-margin no-padding">
|
||||||
<date-time-picker datetime-picker-class="justify-content-center"
|
<date-time-picker datetime-picker-class="justify-content-center"
|
||||||
:is-dark-mode="isDarkMode"
|
:is-dark-mode="isDarkMode"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" class="date-time-selection-sheet" style="height:auto"
|
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" class="date-time-selection-sheet" style="height:auto"
|
||||||
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link :text="tt('Now')" @click="setCurrentTime"></f7-link>
|
<f7-link :text="tt('Now')" @click="setCurrentTime"></f7-link>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<f7-button round fill icon-f7="checkmark_alt" @click="confirm"></f7-button>
|
<f7-button round fill icon-f7="checkmark_alt" @click="confirm"></f7-button>
|
||||||
</div>
|
</div>
|
||||||
</f7-toolbar>
|
</f7-toolbar>
|
||||||
<f7-page-content class="padding-bottom">
|
<f7-page-content class="margin-top">
|
||||||
<div class="block no-margin no-padding">
|
<div class="block no-margin no-padding">
|
||||||
<date-time-picker ref="datetimepicker"
|
<date-time-picker ref="datetimepicker"
|
||||||
datetime-picker-class="justify-content-center"
|
datetime-picker-class="justify-content-center"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" class="fiscal-year-start-selection-sheet" style="height:auto"
|
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" class="fiscal-year-start-selection-sheet" style="height:auto"
|
||||||
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link :text="tt('Reset')" @click="reset"></f7-link>
|
<f7-link :text="tt('Reset')" @click="reset"></f7-link>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<f7-button round fill icon-f7="checkmark_alt" @click="confirm"></f7-button>
|
<f7-button round fill icon-f7="checkmark_alt" @click="confirm"></f7-button>
|
||||||
</div>
|
</div>
|
||||||
</f7-toolbar>
|
</f7-toolbar>
|
||||||
<f7-page-content>
|
<f7-page-content class="margin-top">
|
||||||
<div class="block no-margin no-padding">
|
<div class="block no-margin no-padding">
|
||||||
<date-time-picker datetime-picker-class="justify-content-center"
|
<date-time-picker datetime-picker-class="justify-content-center"
|
||||||
:is-dark-mode="isDarkMode"
|
:is-dark-mode="isDarkMode"
|
||||||
|
|||||||
@@ -2,12 +2,11 @@
|
|||||||
<f7-sheet swipe-to-close swipe-handler=".swipe-handler"
|
<f7-sheet swipe-to-close swipe-handler=".swipe-handler"
|
||||||
:class="heightClass" :opened="show"
|
:class="heightClass" :opened="show"
|
||||||
@sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
@sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="right"></div>
|
|
||||||
</f7-toolbar>
|
</f7-toolbar>
|
||||||
<f7-page-content>
|
<f7-page-content>
|
||||||
<f7-block class="margin-vertical no-padding">
|
<f7-block class="margin-vertical no-padding">
|
||||||
|
|||||||
@@ -5,7 +5,21 @@
|
|||||||
<f7-nav-left>
|
<f7-nav-left>
|
||||||
<f7-link popup-close icon-f7="xmark"></f7-link>
|
<f7-link popup-close icon-f7="xmark"></f7-link>
|
||||||
</f7-nav-left>
|
</f7-nav-left>
|
||||||
<f7-nav-title :title="title" v-if="title"></f7-nav-title>
|
|
||||||
|
<f7-searchbar ref="searchbar" custom-searchs
|
||||||
|
:value="filterContent"
|
||||||
|
:placeholder="filterPlaceholder"
|
||||||
|
:disable-button="false"
|
||||||
|
@input="filterContent = $event.target.value"
|
||||||
|
@click:clear="filterContent = ''; showSearchbar = false"
|
||||||
|
v-if="enableFilter && showSearchbar">
|
||||||
|
</f7-searchbar>
|
||||||
|
|
||||||
|
<f7-nav-title :title="title" v-if="title && !showSearchbar"></f7-nav-title>
|
||||||
|
|
||||||
|
<f7-nav-right v-if="enableFilter && !showSearchbar">
|
||||||
|
<f7-link icon-f7="search" @click="showSearchbar = true"></f7-link>
|
||||||
|
</f7-nav-right>
|
||||||
</f7-navbar>
|
</f7-navbar>
|
||||||
|
|
||||||
<f7-block class="no-margin no-padding">
|
<f7-block class="no-margin no-padding">
|
||||||
@@ -32,16 +46,6 @@
|
|||||||
:title="filterNoItemsText"></f7-list-item>
|
:title="filterNoItemsText"></f7-list-item>
|
||||||
</f7-list>
|
</f7-list>
|
||||||
</f7-block>
|
</f7-block>
|
||||||
|
|
||||||
<f7-toolbar bottom>
|
|
||||||
<f7-searchbar ref="searchbar" custom-searchs
|
|
||||||
:value="filterContent"
|
|
||||||
:placeholder="filterPlaceholder"
|
|
||||||
:disable-button="false"
|
|
||||||
v-if="enableFilter"
|
|
||||||
@input="filterContent = $event.target.value">
|
|
||||||
</f7-searchbar>
|
|
||||||
</f7-toolbar>
|
|
||||||
</f7-page>
|
</f7-page>
|
||||||
</f7-popup>
|
</f7-popup>
|
||||||
</template>
|
</template>
|
||||||
@@ -86,6 +90,7 @@ const searchbar = useTemplateRef<Searchbar.Searchbar>('searchbar');
|
|||||||
|
|
||||||
const currentValue = ref<unknown>(props.modelValue);
|
const currentValue = ref<unknown>(props.modelValue);
|
||||||
const filterContent = ref<string>('');
|
const filterContent = ref<string>('');
|
||||||
|
const showSearchbar = ref<boolean>(false);
|
||||||
|
|
||||||
const filteredItems = computed<unknown[]>(() => {
|
const filteredItems = computed<unknown[]>(() => {
|
||||||
const finalItems: unknown[] = [];
|
const finalItems: unknown[] = [];
|
||||||
@@ -181,12 +186,13 @@ function onItemClicked(item: unknown, index: number): void {
|
|||||||
|
|
||||||
function onPopupOpen(event: { $el: Framework7Dom }): void {
|
function onPopupOpen(event: { $el: Framework7Dom }): void {
|
||||||
currentValue.value = props.modelValue;
|
currentValue.value = props.modelValue;
|
||||||
scrollToSelectedItem(event.$el, '.page-content', 'li.list-item-selected', true);
|
scrollToSelectedItem(event.$el, '.page-content', 'li.list-item-selected', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPopupClosed(): void {
|
function onPopupClosed(): void {
|
||||||
close();
|
close();
|
||||||
filterContent.value = '';
|
filterContent.value = '';
|
||||||
|
showSearchbar.value = false;
|
||||||
searchbar.value?.clear();
|
searchbar.value?.clear();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -2,14 +2,13 @@
|
|||||||
<f7-sheet swipe-to-close swipe-handler=".swipe-handler"
|
<f7-sheet swipe-to-close swipe-handler=".swipe-handler"
|
||||||
:class="heightClass" :opened="show"
|
:class="heightClass" :opened="show"
|
||||||
@sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
@sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="right"></div>
|
|
||||||
</f7-toolbar>
|
</f7-toolbar>
|
||||||
<f7-page-content>
|
<f7-page-content class="margin-top">
|
||||||
<f7-list dividers class="no-margin-vertical">
|
<f7-list dividers class="no-margin-vertical">
|
||||||
<f7-list-item link="#" no-chevron
|
<f7-list-item link="#" no-chevron
|
||||||
:title="ti((titleField ? (item as Record<string, unknown>)[titleField] : item) as string, !!titleI18n)"
|
:title="ti((titleField ? (item as Record<string, unknown>)[titleField] : item) as string, !!titleI18n)"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" class="map-sheet" style="height:auto"
|
<f7-sheet swipe-to-close swipe-handler=".swipe-handler" class="map-sheet" style="height:auto"
|
||||||
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
:opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link icon-f7="minus" :class="{ 'disabled': !map?.allowZoomOut() }" @click="map?.zoomOut()"></f7-link>
|
<f7-link icon-f7="minus" :class="{ 'disabled': !map?.allowZoomOut() }" @click="map?.zoomOut()"></f7-link>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<f7-sheet swipe-to-close swipe-handler=".swipe-handler"
|
<f7-sheet swipe-to-close swipe-handler=".swipe-handler"
|
||||||
style="height: auto" :opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
style="height: auto" :opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<f7-button round fill icon-f7="checkmark_alt" @click="save"></f7-button>
|
<f7-button round fill icon-f7="checkmark_alt" @click="save"></f7-button>
|
||||||
</div>
|
</div>
|
||||||
</f7-toolbar>
|
</f7-toolbar>
|
||||||
<f7-page-content>
|
<f7-page-content class="margin-top">
|
||||||
<div class="grid grid-cols-2 grid-gap">
|
<div class="grid grid-cols-2 grid-gap">
|
||||||
<div>
|
<div>
|
||||||
<div class="schedule-frequency-type-container">
|
<div class="schedule-frequency-type-container">
|
||||||
|
|||||||
@@ -2,19 +2,11 @@
|
|||||||
<f7-sheet ref="sheet" swipe-to-close swipe-handler=".swipe-handler"
|
<f7-sheet ref="sheet" swipe-to-close swipe-handler=".swipe-handler"
|
||||||
style="height: auto" :opened="show"
|
style="height: auto" :opened="show"
|
||||||
@sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
@sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
|
||||||
<f7-button round fill icon-f7="checkmark_alt" @click="save"
|
|
||||||
v-if="allTags && allTags.length && !noAvailableTag"></f7-button>
|
|
||||||
<f7-link icon-f7="plus" :class="{'disabled': newTag}" @click="addNewTag"
|
|
||||||
v-if="!allTags || !allTags.length || noAvailableTag"></f7-link>
|
|
||||||
</div>
|
|
||||||
</f7-toolbar>
|
|
||||||
<f7-page-content :class="heightClass">
|
|
||||||
<f7-searchbar ref="searchbar" custom-searchs
|
<f7-searchbar ref="searchbar" custom-searchs
|
||||||
:value="filterContent"
|
:value="filterContent"
|
||||||
:placeholder="tt('Find tag')"
|
:placeholder="tt('Find tag')"
|
||||||
@@ -23,6 +15,14 @@
|
|||||||
@input="filterContent = $event.target.value"
|
@input="filterContent = $event.target.value"
|
||||||
@focus="onSearchBarFocus">
|
@focus="onSearchBarFocus">
|
||||||
</f7-searchbar>
|
</f7-searchbar>
|
||||||
|
<div class="right">
|
||||||
|
<f7-button round fill icon-f7="checkmark_alt" @click="save"
|
||||||
|
v-if="allTags && allTags.length && !noAvailableTag"></f7-button>
|
||||||
|
<f7-link icon-f7="plus" :class="{'disabled': newTag}" @click="addNewTag"
|
||||||
|
v-if="!allTags || !allTags.length || noAvailableTag"></f7-link>
|
||||||
|
</div>
|
||||||
|
</f7-toolbar>
|
||||||
|
<f7-page-content :class="'margin-top ' + heightClass">
|
||||||
<f7-list class="no-margin-top no-margin-bottom" v-if="(!allTags || !allTags.length || noAvailableTag) && !newTag">
|
<f7-list class="no-margin-top no-margin-bottom" v-if="(!allTags || !allTags.length || noAvailableTag) && !newTag">
|
||||||
<f7-list-item :title="tt('No available tag')"></f7-list-item>
|
<f7-list-item :title="tt('No available tag')"></f7-list-item>
|
||||||
</f7-list>
|
</f7-list>
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<f7-sheet ref="sheet" swipe-to-close swipe-handler=".swipe-handler"
|
<f7-sheet ref="sheet" swipe-to-close swipe-handler=".swipe-handler"
|
||||||
style="height: auto" :opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
style="height: auto" :opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<f7-searchbar ref="searchbar" class="margin-top" custom-searchs
|
<div class="left">
|
||||||
|
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
||||||
|
</div>
|
||||||
|
<f7-searchbar ref="searchbar" custom-searchs
|
||||||
:value="filterContent"
|
:value="filterContent"
|
||||||
:placeholder="filterPlaceholder"
|
:placeholder="filterPlaceholder"
|
||||||
:disable-button="false"
|
:disable-button="false"
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<f7-sheet ref="sheet" swipe-to-close swipe-handler=".swipe-handler"
|
<f7-sheet ref="sheet" swipe-to-close swipe-handler=".swipe-handler"
|
||||||
style="height: auto" :opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
style="height: auto" :opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
|
||||||
<f7-toolbar>
|
<f7-toolbar class="toolbar-with-swipe-handler">
|
||||||
<div class="swipe-handler"></div>
|
<div class="swipe-handler"></div>
|
||||||
<f7-searchbar ref="searchbar" class="margin-top" custom-searchs
|
<div class="left">
|
||||||
|
<f7-link sheet-close icon-f7="xmark"></f7-link>
|
||||||
|
</div>
|
||||||
|
<f7-searchbar ref="searchbar" custom-searchs
|
||||||
:value="filterContent"
|
:value="filterContent"
|
||||||
:placeholder="filterPlaceholder"
|
:placeholder="filterPlaceholder"
|
||||||
:disable-button="false"
|
:disable-button="false"
|
||||||
|
|||||||
@@ -621,6 +621,14 @@ html[dir="rtl"] .icon.las .badge.right-bottom-icon {
|
|||||||
background: #666
|
background: #666
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.toolbar-with-swipe-handler > .toolbar-inner {
|
||||||
|
> div.left,
|
||||||
|
> div.right,
|
||||||
|
> form.searchbar {
|
||||||
|
margin-top: var(--f7-typography-margin) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** list-item-with-multi-item for framework7 **/
|
/** list-item-with-multi-item for framework7 **/
|
||||||
.list-item-with-multi-item .item-content,
|
.list-item-with-multi-item .item-content,
|
||||||
.list-item-with-multi-item .item-inner {
|
.list-item-with-multi-item .item-inner {
|
||||||
|
|||||||
Reference in New Issue
Block a user