From 934b51dfc615e2cad958cf413a1a077db57bb942 Mon Sep 17 00:00:00 2001 From: Vixalie Date: Tue, 12 Aug 2025 22:34:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor(components):=20=E4=BF=AE=E5=A4=8D=20Se?= =?UTF-8?q?gments=20=E7=BB=84=E4=BB=B6=E7=9A=84=E5=AF=BC=E5=87=BA=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正 Segments 组件的导出语句 - 优化组件定义,使用 const 进行声明 - 删除多余的空行,提高代码可读性 --- src/components/Segments.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Segments.tsx b/src/components/Segments.tsx index 0ce5c50..14f86b1 100644 --- a/src/components/Segments.tsx +++ b/src/components/Segments.tsx @@ -25,7 +25,7 @@ interface SegmentsProps { onChange?: (value: Option['value'] | undefined) => void; } -export const Segmengts: Component = (props) => { +const Segments: Component = (props) => { const mProps = mergeProps( { options: [], @@ -110,3 +110,5 @@ export const Segmengts: Component = (props) => { ); }; + +export default Segments;