refactor: 将 FormItem 接口更改为类型定义,优化代码结构

This commit is contained in:
sd0ric4
2025-03-27 13:29:17 +08:00
parent 071b058da0
commit 8246a4ac17

View File

@@ -95,7 +95,7 @@ export const SelectOptionsComponent = React.memo(function SelectOptionsComponent
);
});
export interface FormItem {
export type FormItem = {
label: string;
key?: string;
type: FlowNodeInputTypeEnum;
@@ -110,7 +110,7 @@ export interface FormItem {
label: string;
value: string;
}>;
}
};
export interface FormInputComponentProps {
inputForm: FormItem[];