migrate transaction tag store to composition API and typescript

This commit is contained in:
MaysWind
2025-01-11 19:53:09 +08:00
parent dc59d3954a
commit ffae9e81a7
17 changed files with 427 additions and 375 deletions
@@ -77,7 +77,9 @@
<script>
import { mapStores } from 'pinia';
import { useTransactionTagsStore } from '@/stores/transactionTag.js';
import { useTransactionTagsStore } from '@/stores/transactionTag.ts';
import { TransactionTag } from '@/models/transaction_tag.ts';
import { copyArrayTo } from '@/lib/common.ts';
import { scrollToSelectedItem } from '@/lib/ui/mobile.ts';
@@ -152,9 +154,7 @@ export default {
}
},
addNewTag() {
this.newTag = {
name: ''
};
this.newTag = TransactionTag.createNewTag();
},
saveNewTag() {
const self = this;