From 16603f534c39e167269ae371d037ea873008d8f4 Mon Sep 17 00:00:00 2001 From: "X.Mo" Date: Wed, 10 Apr 2024 17:21:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8F=82=E6=95=B0=20quickEdit=EF=BC=8C?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E8=AE=BE=E7=BD=AE=E9=9D=A2=E6=9D=BF=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=98=BE=E9=9A=90=E6=90=9C=E7=B4=A2=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ma-crud/components/column.vue | 38 +++++++++++++------ src/components/ma-crud/components/setting.vue | 10 ++++- src/components/ma-crud/index.vue | 6 ++- 3 files changed, 41 insertions(+), 13 deletions(-) diff --git a/src/components/ma-crud/components/column.vue b/src/components/ma-crud/components/column.vue index 3614c3a4..74190979 100644 --- a/src/components/ma-crud/components/column.vue +++ b/src/components/ma-crud/components/column.vue @@ -119,10 +119,10 @@ @@ -131,10 +131,13 @@ - + + + + @@ -92,6 +95,8 @@ const options = inject('options') const columns = inject('columns') const allowShowColumns = ref([]) +const emit = defineEmits([ 'onChangeSearchHide' ]) + const setShowColumns = () => { allowShowColumns.value = columns.value.filter(item => { return ! (item?.settingHide ?? false) @@ -122,6 +127,9 @@ const changeColumn = (ev, type, name) => { column.sortable = undefined } break + case 'search': + emit('onChangeSearchHide') + break } } diff --git a/src/components/ma-crud/index.vue b/src/components/ma-crud/index.vue index a6507099..ce7bf3c4 100644 --- a/src/components/ma-crud/index.vue +++ b/src/components/ma-crud/index.vue @@ -236,7 +236,11 @@ /> - +