From 672d7c89580b3db2a07153034dab663c85de532f Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 22 Dec 2025 04:05:17 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=A1=A8=E5=A4=B4?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E6=8E=A7=E5=88=B6=E6=93=8D=E4=BD=9C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=98=BE=E7=A4=BA=EF=BC=9B=E4=BC=98=E5=8C=96=E9=93=B6?= =?UTF-8?q?=E8=A1=8C=E5=8D=A1=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.js | 1 + .../advanced/table-header-operation.vue | 21 ++++++++-- src/components/table/table-base.vue | 39 ++++++++++++++---- src/views/user/bankcard/index.vue | 41 +++++++++---------- 4 files changed, 69 insertions(+), 33 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 00537e3..77e5ca4 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -18,6 +18,7 @@ export default defineConfig( ignores: ['/^icon-/'] } ], + 'vue/no-duplicate-attr-inheritance': 'off', 'unocss/order-attributify': 'off' } } diff --git a/src/components/advanced/table-header-operation.vue b/src/components/advanced/table-header-operation.vue index e8bfd10..d1b9590 100644 --- a/src/components/advanced/table-header-operation.vue +++ b/src/components/advanced/table-header-operation.vue @@ -9,6 +9,12 @@ interface Props { itemAlign?: NaiveUI.Align; disabledDelete?: boolean; loading?: boolean; + operations?: { + add?: boolean; + refresh?: boolean; + delete?: boolean; + columns?: boolean; + }; } defineProps(); @@ -43,27 +49,34 @@ function refresh() {
- + {{ $t('common.add') }} - + {{ $t('common.batchDelete') }} - + {{ $t('common.refresh') }} - +
diff --git a/src/components/table/table-base.vue b/src/components/table/table-base.vue index 4a5987a..4c8b2fb 100644 --- a/src/components/table/table-base.vue +++ b/src/components/table/table-base.vue @@ -1,7 +1,8 @@