From 0e7c682f725c2b92f0085b62d5aed2c7366bdac7 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 29 Oct 2024 19:23:29 +0800 Subject: [PATCH] perf: update gather account --- .../Table/TableFormatters/ConfirmOrIgnore.vue | 44 ++++- src/icons/svg/ignore.svg | 5 + src/layout/components/TabPage/index.vue | 4 +- .../AccountDiscover/AccountDiscoverList.vue | 154 +--------------- src/views/accounts/const.js | 173 ++++++++++++++++++ .../components/AccountDiscoverDialog.vue | 81 ++++++++ .../Asset/AssetList/components/BaseList.vue | 17 +- 7 files changed, 321 insertions(+), 157 deletions(-) create mode 100644 src/icons/svg/ignore.svg create mode 100644 src/views/assets/Asset/AssetList/components/AccountDiscoverDialog.vue diff --git a/src/components/Table/TableFormatters/ConfirmOrIgnore.vue b/src/components/Table/TableFormatters/ConfirmOrIgnore.vue index 842590d32..382bd803d 100644 --- a/src/components/Table/TableFormatters/ConfirmOrIgnore.vue +++ b/src/components/Table/TableFormatters/ConfirmOrIgnore.vue @@ -1,14 +1,25 @@ @@ -22,7 +33,12 @@ export default { formatterArgsDefault: { type: Object, default() { - return {} + return { + confirm: ({ row, cellValue }) => { + }, + ignore: ({ row, cellValue }) => { + } + } } } }, @@ -46,17 +62,33 @@ export default { return this.cellValue } } + }, + methods: { + handleConfirm() { + this.formatterArgs.confirm({ row: this.row, cellValue: this.cellValue }) + }, + handleIgnore() { + this.formatterArgs.ignore({ row: this.row, cellValue: this.cellValue }) + } } } -