From 0989a51808d785e9fccf4b327f5fe56a4694c30e Mon Sep 17 00:00:00 2001 From: PeopleSea Date: Mon, 15 Jul 2024 16:26:53 +0800 Subject: [PATCH] feat(form-select): add select all and clear features for multiple selections Add new functionalities to the form-select component to support selecting all options and clearing the selected options in multiple selection mode. This enhances user interaction with the component by providing convenient batch operations. --- .../components/searchFormItem/form-select.vue | 149 ++++++++++++++++-- 1 file changed, 137 insertions(+), 12 deletions(-) diff --git a/src/components/ma-crud/components/searchFormItem/form-select.vue b/src/components/ma-crud/components/searchFormItem/form-select.vue index 50994e89..3a2eaafd 100644 --- a/src/components/ma-crud/components/searchFormItem/form-select.vue +++ b/src/components/ma-crud/components/searchFormItem/form-select.vue @@ -19,13 +19,59 @@ :max-tag-count="1" :options="dicts[props.component.dataIndex]" :multiple="props.component.multiple || ['transfer', 'checkbox'].includes(props.component.formType)" + :show-extra-options="false" + :fallback-option="handlerFallback" + :loading="loading" @change="handlerChangeeEvent" > - \ No newline at end of file + + \ No newline at end of file