Commit 3f66233f authored by zjt's avatar zjt
Browse files

perf: 修改变量名

parent 867ad777
Showing with 6 additions and 6 deletions
+6 -6
......@@ -59,20 +59,20 @@ export interface InterfaceOptionsListConfig {
childrenField?: string
}
export interface ISelectFieldOption {
export interface TreeSelectFieldOption {
key: any
value: any
title: ReactNode
children?: Array<ISelectFieldOption>
children?: Array<TreeSelectFieldOption>
}
interface TreeSelectFieldState {
interfaceOptionsData: ISelectFieldOption[]
interfaceOptionsData: TreeSelectFieldOption[]
}
export interface ITreeSelectField {
value?: any,
treeData: Array<ISelectFieldOption>
treeData: Array<TreeSelectFieldOption>
titleColumn?: string
onChange: (value: any) => Promise<void>
}
......@@ -101,10 +101,10 @@ export default class TreeSelectField extends Field<TreeSelectFieldConfig, ITreeS
}
formatTree = (treeList: any, value: string, title: string, children: string) => {
const rsMenu: ISelectFieldOption[] = []
const rsMenu: TreeSelectFieldOption[] = []
treeList.forEach((val: any) => {
const theMenu: ISelectFieldOption = {
const theMenu: TreeSelectFieldOption = {
title: '',
value: null,
key: null
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment