From 82e4fab55c8aa813226e1d4af46fa6e3fc724842 Mon Sep 17 00:00:00 2001 From: zzlgreat Date: Mon, 22 Dec 2025 15:57:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0Company=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84UI=E4=B8=BAFUI=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SearchFilters/CompactSearchBox.js | 164 +++++++++--------- 1 file changed, 83 insertions(+), 81 deletions(-) diff --git a/src/views/Community/components/SearchFilters/CompactSearchBox.js b/src/views/Community/components/SearchFilters/CompactSearchBox.js index d61ca138..d6b6016b 100644 --- a/src/views/Community/components/SearchFilters/CompactSearchBox.js +++ b/src/views/Community/components/SearchFilters/CompactSearchBox.js @@ -524,90 +524,92 @@ const CompactSearchBox = ({ - {/* 第二行:筛选条件 */} - - {/* 左侧筛选 */} - - {/* 行业筛选 */} - - - {isMobile ? '行业' : '行业筛选'} - - } - changeOnSelect - showSearch={{ - filter: (inputValue, path) => - path.some(option => - option.label.toLowerCase().includes(inputValue.toLowerCase()) - ) - }} - allowClear - expandTrigger="hover" - displayRender={(labels) => labels[labels.length - 1] || (isMobile ? '行业' : '行业筛选')} - disabled={industryLoading} - style={{ minWidth: isMobile ? 70 : 80 }} - suffixIcon={null} - className="transparent-cascader" - /> - - {/* 事件等级 */} - - - {isMobile ? '等级' : '事件等级'} - - } - maxTagCount={0} - maxTagPlaceholder={(omittedValues) => isMobile ? `${omittedValues.length}项` : `已选 ${omittedValues.length} 项`} - className="bracket-select" - > - {IMPORTANCE_OPTIONS.map(opt => ( - - ))} - - - - {/* 右侧排序和重置 */} - - {/* 排序 */} - - {SORT_OPTIONS.map(opt => ( - - ))} - + } + changeOnSelect + showSearch={{ + filter: (inputValue, path) => + path.some(option => + option.label.toLowerCase().includes(inputValue.toLowerCase()) + ) + }} + allowClear + expandTrigger="hover" + displayRender={(labels) => labels[labels.length - 1] || (isMobile ? '行业' : '行业筛选')} + disabled={industryLoading} + style={{ minWidth: isMobile ? 70 : 80 }} + suffixIcon={null} + className="transparent-cascader" + /> - {/* 重置按钮 */} - - - + {/* 事件等级 */} + + + {isMobile ? '等级' : '事件等级'} + + } + maxTagCount={0} + maxTagPlaceholder={(omittedValues) => isMobile ? `${omittedValues.length}项` : `已选 ${omittedValues.length} 项`} + className="bracket-select" + > + {IMPORTANCE_OPTIONS.map(opt => ( + + ))} + + + + {/* 右侧排序和重置 */} + + {/* 排序 */} + + {SORT_OPTIONS.map(opt => ( + + ))} + + + {/* 重置按钮 */} + + + + )} ); };