From 9e0909ab35607ea78d4e4790f0de44e3f9c3b227 Mon Sep 17 00:00:00 2001 From: Jande Jang Date: Wed, 29 Apr 2026 18:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=A7=84=E5=88=99=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E4=BA=A4=E4=BA=92=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/ui/FilterPanel.tsx | 9 ++-- app/routes/rulesTest.detail.tsx | 90 ++++++++++++++++++++++--------- app/routes/rulesTest.list.tsx | 44 +++++++++------ app/styles/pages/rules_test.css | 89 +++++++++++++++++++++++++++++- app/utils/rules-config-editor.ts | 18 ++++--- 5 files changed, 195 insertions(+), 55 deletions(-) diff --git a/app/components/ui/FilterPanel.tsx b/app/components/ui/FilterPanel.tsx index f190bcc..6ef0181 100644 --- a/app/components/ui/FilterPanel.tsx +++ b/app/components/ui/FilterPanel.tsx @@ -13,12 +13,14 @@ interface FilterSelectProps { options: FilterOption[]; onChange: (e: React.ChangeEvent) => void; className?: string; + disabled?: boolean; + placeholder?: string; } /** * 筛选下拉选择框组件 */ -const FilterSelect = ({ label, name, value, options, onChange, className = '' }: FilterSelectProps) => ( +const FilterSelect = ({ label, name, value, options, onChange, className = '', disabled = false, placeholder = '全部' }: FilterSelectProps) => (