refactor(components): 修复 Segments 组件的导出并优化代码结构
- 修正 Segments 组件的导出语句 - 优化组件定义,使用 const 进行声明 - 删除多余的空行,提高代码可读性
This commit is contained in:
@@ -25,7 +25,7 @@ interface SegmentsProps {
|
||||
onChange?: (value: Option['value'] | undefined) => void;
|
||||
}
|
||||
|
||||
export const Segmengts: Component<SegmentsProps> = (props) => {
|
||||
const Segments: Component<SegmentsProps> = (props) => {
|
||||
const mProps = mergeProps<SegmentsProps[]>(
|
||||
{
|
||||
options: [],
|
||||
@@ -110,3 +110,5 @@ export const Segmengts: Component<SegmentsProps> = (props) => {
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Segments;
|
||||
|
Reference in New Issue
Block a user