refactor: 将 FormItem 接口更改为类型定义,优化代码结构
This commit is contained in:
@@ -95,7 +95,7 @@ export const SelectOptionsComponent = React.memo(function SelectOptionsComponent
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
export interface FormItem {
|
export type FormItem = {
|
||||||
label: string;
|
label: string;
|
||||||
key?: string;
|
key?: string;
|
||||||
type: FlowNodeInputTypeEnum;
|
type: FlowNodeInputTypeEnum;
|
||||||
@@ -110,7 +110,7 @@ export interface FormItem {
|
|||||||
label: string;
|
label: string;
|
||||||
value: string;
|
value: string;
|
||||||
}>;
|
}>;
|
||||||
}
|
};
|
||||||
|
|
||||||
export interface FormInputComponentProps {
|
export interface FormInputComponentProps {
|
||||||
inputForm: FormItem[];
|
inputForm: FormItem[];
|
||||||
|
|||||||
Reference in New Issue
Block a user