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 @@ /> - +