From aa92180dfbced298047d5fc04ee6921bfa30f33a Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 6 Feb 2021 22:53:08 +0800 Subject: [PATCH] optimize transaction tag ui in transaction edit page --- .../mobile/TransactionTagSelectionSheet.vue | 117 ++++++++++++++++++ src/mobile-main.js | 2 + src/views/mobile/transactions/Edit.vue | 20 +-- 3 files changed, 131 insertions(+), 8 deletions(-) create mode 100644 src/components/mobile/TransactionTagSelectionSheet.vue diff --git a/src/components/mobile/TransactionTagSelectionSheet.vue b/src/components/mobile/TransactionTagSelectionSheet.vue new file mode 100644 index 00000000..f5912e04 --- /dev/null +++ b/src/components/mobile/TransactionTagSelectionSheet.vue @@ -0,0 +1,117 @@ + + + + + +self diff --git a/src/mobile-main.js b/src/mobile-main.js index 2677d4f4..aa134075 100644 --- a/src/mobile-main.js +++ b/src/mobile-main.js @@ -93,6 +93,7 @@ import IconSelectionSheet from "./components/mobile/IconSelectionSheet.vue"; import ColorSelectionSheet from "./components/mobile/ColorSelectionSheet.vue"; import InformationSheet from "./components/mobile/InformationSheet.vue"; import NumberPadSheet from "./components/mobile/NumberPadSheet.vue"; +import TransactionTagSelectionSheet from "./components/mobile/TransactionTagSelectionSheet.vue"; import App from './Mobile.vue'; @@ -145,6 +146,7 @@ Vue.component('IconSelectionSheet', IconSelectionSheet); Vue.component('ColorSelectionSheet', ColorSelectionSheet); Vue.component('InformationSheet', InformationSheet); Vue.component('NumberPadSheet', NumberPadSheet); +Vue.component('TransactionTagSelectionSheet', TransactionTagSelectionSheet); Vue.filter('localized', (value, options) => localizedFilter({ i18n }, value, options)); Vue.filter('percent', (value, precision, lowPrecisionValue) => percentFilter(value, precision, lowPrecisionValue)); diff --git a/src/views/mobile/transactions/Edit.vue b/src/views/mobile/transactions/Edit.vue index a85572cc..53215245 100644 --- a/src/views/mobile/transactions/Edit.vue +++ b/src/views/mobile/transactions/Edit.vue @@ -201,13 +201,16 @@ > - - + + + +