Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaojuan huang
Ccms
Commits
3f66233f
Commit
3f66233f
authored
3 years ago
by
zjt
Browse files
Options
Download
Email Patches
Plain Diff
perf: 修改变量名
parent
867ad777
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/formFields/treeSelect/index.tsx
+6
-6
src/components/formFields/treeSelect/index.tsx
with
6 additions
and
6 deletions
+6
-6
src/components/formFields/treeSelect/index.tsx
+
6
-
6
View file @
3f66233f
...
...
@@ -59,20 +59,20 @@ export interface InterfaceOptionsListConfig {
childrenField
?:
string
}
export
interface
I
SelectFieldOption
{
export
interface
Tree
SelectFieldOption
{
key
:
any
value
:
any
title
:
ReactNode
children
?:
Array
<
I
SelectFieldOption
>
children
?:
Array
<
Tree
SelectFieldOption
>
}
interface
TreeSelectFieldState
{
interfaceOptionsData
:
I
SelectFieldOption
[]
interfaceOptionsData
:
Tree
SelectFieldOption
[]
}
export
interface
ITreeSelectField
{
value
?:
any
,
treeData
:
Array
<
I
SelectFieldOption
>
treeData
:
Array
<
Tree
SelectFieldOption
>
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
:
I
SelectFieldOption
[]
=
[]
const
rsMenu
:
Tree
SelectFieldOption
[]
=
[]
treeList
.
forEach
((
val
:
any
)
=>
{
const
theMenu
:
I
SelectFieldOption
=
{
const
theMenu
:
Tree
SelectFieldOption
=
{
title
:
''
,
value
:
null
,
key
:
null
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help